Correct X2-APIC HVM emulation
authorJuergen Gross <juergen.gross@ts.fujitsu.com>
Thu, 22 Aug 2013 09:24:00 +0000 (11:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Aug 2013 09:24:00 +0000 (11:24 +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>
xen/arch/x86/hvm/vlapic.c

index 7b10ab627469126c634af7e62790383ee3fb4960..5c33d3a407a76a55389bff2c213d9be97a95e39a 100644 (file)
@@ -868,6 +868,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;