]> xenbits.xensource.com Git - xen.git/commitdiff
Correct X2-APIC HVM emulation
authorJuergen Gross <juergen.gross@ts.fujitsu.com>
Thu, 22 Aug 2013 09:32:00 +0000 (11:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Aug 2013 09:32:00 +0000 (11:32 +0200)
commit 6859874b61d5ddaf5289e72ed2b2157739b72ca5 ("x86/HVM: fix x2APIC
APIC_ID read emulation") introduced an error for the hvm emulation of
x2apic. Any try to write to APIC_ICR MSR will result in a GP fault.

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
master commit: 69962e19ed432570f6cdcfdb5f6f22d6e3c54e6c
master date: 2013-08-22 11:24:00 +0200

xen/arch/x86/hvm/vlapic.c

index 1ed0d43b681283e48ca0194bf326e2f49f23b674..f55407fdee0d32c39970f8c3de4a290e5f9fa689 100644 (file)
@@ -843,6 +843,7 @@ int hvm_x2apic_msr_write(struct vcpu *v, unsigned int msr, uint64_t msr_content)
         rc = vlapic_reg_write(v, APIC_ICR2, (uint32_t)(msr_content >> 32));
         if ( rc )
             return rc;
+        break;
 
     case APIC_ICR2:
         return X86EMUL_UNHANDLEABLE;