x86: fix logical ANDs used to mask bitfields.

Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
This commit is contained in:
Tim Deegan committed 2012-04-11 13:10:33 +01:00
1 parent b656ffb608
commit 5a90fc8ea3
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -752,7 +752,7 @@ static void svm_lwp_interrupt(struct cpu_user_regs *regs)
ack_APIC_irq();
vlapic_set_irq(
vcpu_vlapic(curr),
(curr->arch.hvm_svm.guest_lwp_cfg >> 40) && 0xff,
(curr->arch.hvm_svm.guest_lwp_cfg >> 40) & 0xff,
0);
}
+2 -2
View File
@@ -1382,7 +1382,7 @@ void vmx_inject_extint(int trap)
if ( nestedhvm_vcpu_in_guestmode(v) ) {
pin_based_cntrl = __get_vvmcs(vcpu_nestedhvm(v).nv_vvmcx,
PIN_BASED_VM_EXEC_CONTROL);
if ( pin_based_cntrl && PIN_BASED_EXT_INTR_MASK ) {
if ( pin_based_cntrl & PIN_BASED_EXT_INTR_MASK ) {
nvmx_enqueue_n2_exceptions (v,
INTR_INFO_VALID_MASK | (X86_EVENTTYPE_EXT_INTR<<8) | trap,
HVM_DELIVER_NO_ERROR_CODE);
@@ -1401,7 +1401,7 @@ void vmx_inject_nmi(void)
if ( nestedhvm_vcpu_in_guestmode(v) ) {
pin_based_cntrl = __get_vvmcs(vcpu_nestedhvm(v).nv_vvmcx,
PIN_BASED_VM_EXEC_CONTROL);
if ( pin_based_cntrl && PIN_BASED_NMI_EXITING ) {
if ( pin_based_cntrl & PIN_BASED_NMI_EXITING ) {
nvmx_enqueue_n2_exceptions (v,
INTR_INFO_VALID_MASK | (X86_EVENTTYPE_NMI<<8) | TRAP_nmi,
HVM_DELIVER_NO_ERROR_CODE);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.