case CALLBACKTYPE_failsafe:
curr->arch.pv_vcpu.failsafe_callback_eip = reg->address;
if ( reg->flags & CALLBACKF_mask_events )
- set_bit(_VGCF_failsafe_disables_events,
- &curr->arch.vgc_flags);
+ curr->arch.vgc_flags |= VGCF_failsafe_disables_events;
else
- clear_bit(_VGCF_failsafe_disables_events,
- &curr->arch.vgc_flags);
+ curr->arch.vgc_flags &= ~VGCF_failsafe_disables_events;
break;
case CALLBACKTYPE_syscall:
curr->arch.pv_vcpu.syscall_callback_eip = reg->address;
if ( reg->flags & CALLBACKF_mask_events )
- set_bit(_VGCF_syscall_disables_events,
- &curr->arch.vgc_flags);
+ curr->arch.vgc_flags |= VGCF_syscall_disables_events;
else
- clear_bit(_VGCF_syscall_disables_events,
- &curr->arch.vgc_flags);
+ curr->arch.vgc_flags &= ~VGCF_syscall_disables_events;
break;
case CALLBACKTYPE_syscall32:
curr->arch.pv_vcpu.failsafe_callback_cs = reg->address.cs;
curr->arch.pv_vcpu.failsafe_callback_eip = reg->address.eip;
if ( reg->flags & CALLBACKF_mask_events )
- set_bit(_VGCF_failsafe_disables_events,
- &curr->arch.vgc_flags);
+ curr->arch.vgc_flags |= VGCF_failsafe_disables_events;
else
- clear_bit(_VGCF_failsafe_disables_events,
- &curr->arch.vgc_flags);
+ curr->arch.vgc_flags &= ~VGCF_failsafe_disables_events;
break;
case CALLBACKTYPE_syscall32: