From: "Jan Beulich" Subject: [PATCH v3 1/3] x86/HVM: fix miscellaneous aspects of x2APIC emulation Date: Fri, 12 Sep 2014 13:52:46 +0100 Message-ID: <541308BE0200007800034802@mail.emea.novell.com> References: <5413077902000078000347F7@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part4C79078E.0__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XSQLH-0003VN-DJ for xen-devel@lists.xenproject.org; Fri, 12 Sep 2014 12:52:47 +0000 In-Reply-To: <5413077902000078000347F7@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part4C79078E.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline - generate #GP on invalid APIC base MSR transitions - fail reads from the EOI and self-IPI registers (which are write-only) - handle self-IPI writes and the ICR2 half of ICR writes largely in hvm_x2apic_msr_write() and (for self-IPI only) vlapic_apicv_write() - don't permit MMIO-based access in x2APIC mode - filter writes to read-only registers in hvm_x2apic_msr_write(), allowing conditionals to be dropped from vlapic_reg_write() - don't ignore upper half of MSR-based write to ESR being non-zero - VMX's EXIT_REASON_APIC_WRITE must not result in #GP (this exit being trap-like, this exception would get raised on the wrong RIP) - make hvm_x2apic_msr_read() produce X86EMUL_* return codes just like hvm_x2apic_msr_write() does (benign to the only caller) Signed-off-by: Jan Beulich --- v3: Also handle APIC_EOI in hvm_x2apic_msr_read() as pointed out by Andrew. Filter MMIO-based accesses in vlapic_range() when in x2APIC mode. Move x2APIC special casing from vlapic_reg_write() to hvm_x2apic_msr_write(). Don't open-code vlapic_x2apic_mode(). v2: Split from main patch. --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -4499,7 +4499,8 @@ int hvm_msr_write_intercept(unsigned int break; =20 case MSR_IA32_APICBASE: - vlapic_msr_set(vcpu_vlapic(v), msr_content); + if ( !vlapic_msr_set(vcpu_vlapic(v), msr_content) ) + goto gp_fault; break; =20 case MSR_IA32_TSC_DEADLINE: --- a/xen/arch/x86/hvm/vlapic.c +++ b/xen/arch/x86/hvm/vlapic.c @@ -588,7 +588,7 @@ int hvm_x2apic_msr_read(struct vcpu *v,=20 uint32_t low, high =3D 0, offset =3D (msr - MSR_IA32_APICBASE_MSR) << = 4; =20 if ( !vlapic_x2apic_mode(vlapic) ) - return 1; + return X86EMUL_UNHANDLEABLE; =20 vlapic_read_aligned(vlapic, offset, &low); switch ( offset ) @@ -601,12 +601,15 @@ int hvm_x2apic_msr_read(struct vcpu *v,=20 vlapic_read_aligned(vlapic, APIC_ICR2, &high); break; =20 + case APIC_EOI: case APIC_ICR2: - return 1; + case APIC_SELF_IPI: + return X86EMUL_UNHANDLEABLE; } =20 *msr_content =3D (((uint64_t)high) << 32) | low; - return 0; + + return X86EMUL_OKAY; } =20 static void vlapic_pt_cb(struct vcpu *v, void *data) @@ -630,10 +633,7 @@ static int vlapic_reg_write(struct vcpu=20 switch ( offset ) { case APIC_ID: - if ( !vlapic_x2apic_mode(vlapic) ) - vlapic_set_reg(vlapic, APIC_ID, val); - else - rc =3D X86EMUL_UNHANDLEABLE; + vlapic_set_reg(vlapic, APIC_ID, val); break; =20 case APIC_TASKPRI: @@ -645,17 +645,11 @@ static int vlapic_reg_write(struct vcpu=20 break; =20 case APIC_LDR: - if ( !vlapic_x2apic_mode(vlapic) ) - vlapic_set_reg(vlapic, APIC_LDR, val & APIC_LDR_MASK); - else - rc =3D X86EMUL_UNHANDLEABLE; + vlapic_set_reg(vlapic, APIC_LDR, val & APIC_LDR_MASK); break; =20 case APIC_DFR: - if ( !vlapic_x2apic_mode(vlapic) ) - vlapic_set_reg(vlapic, APIC_DFR, val | 0x0FFFFFFF); - else - rc =3D X86EMUL_UNHANDLEABLE; + vlapic_set_reg(vlapic, APIC_DFR, val | 0x0FFFFFFF); break; =20 case APIC_SPIV: @@ -682,21 +676,6 @@ static int vlapic_reg_write(struct vcpu=20 } break; =20 - case APIC_ESR: - if ( vlapic_x2apic_mode(vlapic) && (val !=3D 0) ) - { - gdprintk(XENLOG_ERR, "Local APIC write ESR with non-zero = %lx\n", - val); - rc =3D X86EMUL_UNHANDLEABLE; - } - break; - - case APIC_SELF_IPI: - rc =3D vlapic_x2apic_mode(vlapic) - ? vlapic_reg_write(v, APIC_ICR, 0x40000 | (val & 0xff)) - : X86EMUL_UNHANDLEABLE; - break; - case APIC_ICR: val &=3D ~(1 << 12); /* always clear the pending bit */ vlapic_ipi(vlapic, val, vlapic_get_reg(vlapic, APIC_ICR2)); @@ -704,9 +683,7 @@ static int vlapic_reg_write(struct vcpu=20 break; =20 case APIC_ICR2: - if ( !vlapic_x2apic_mode(vlapic) ) - val &=3D 0xff000000; - vlapic_set_reg(vlapic, APIC_ICR2, val); + vlapic_set_reg(vlapic, APIC_ICR2, val & 0xff000000); break; =20 case APIC_LVTT: /* LVT Timer Reg */ @@ -851,8 +828,16 @@ static int vlapic_write(struct vcpu *v,=20 =20 int vlapic_apicv_write(struct vcpu *v, unsigned int offset) { - uint32_t val =3D vlapic_get_reg(vcpu_vlapic(v), offset); - return vlapic_reg_write(v, offset, val); + struct vlapic *vlapic =3D vcpu_vlapic(v); + uint32_t val =3D vlapic_get_reg(vlapic, offset); + + if ( !vlapic_x2apic_mode(vlapic) ) + return vlapic_reg_write(v, offset, val); + + if ( offset !=3D APIC_SELF_IPI ) + return X86EMUL_UNHANDLEABLE; + + return vlapic_reg_write(v, APIC_ICR, APIC_DEST_SELF | (uint8_t)val); } =20 int hvm_x2apic_msr_write(struct vcpu *v, unsigned int msr, uint64_t = msr_content) @@ -865,16 +850,33 @@ int hvm_x2apic_msr_write(struct vcpu *v, =20 switch ( offset ) { - int rc; + case APIC_TASKPRI: + case APIC_EOI: + case APIC_SPIV: + case APIC_CMCI: + case APIC_LVTT ... APIC_LVTERR: + case APIC_TMICT: + case APIC_TMCCT: + case APIC_TDCR: + break; =20 case APIC_ICR: - rc =3D vlapic_reg_write(v, APIC_ICR2, (uint32_t)(msr_content >> = 32)); - if ( rc ) - return rc; + vlapic_set_reg(vlapic, APIC_ICR2, msr_content >> 32); break; =20 - case APIC_ICR2: - return X86EMUL_UNHANDLEABLE; + case APIC_SELF_IPI: + offset =3D APIC_ICR; + msr_content =3D APIC_DEST_SELF | (uint8_t)msr_content; + break; + + case APIC_ESR: + if ( msr_content ) + { + printk(XENLOG_G_WARNING "%pv: non-zero (%lx) LAPIC ESR = write\n", + v, msr_content); + default: + return X86EMUL_UNHANDLEABLE; + } } =20 return vlapic_reg_write(v, offset, (uint32_t)msr_content); @@ -884,7 +886,10 @@ static int vlapic_range(struct vcpu *v,=20 { struct vlapic *vlapic =3D vcpu_vlapic(v); unsigned long offset =3D addr - vlapic_base_address(vlapic); - return (!vlapic_hw_disabled(vlapic) && (offset < PAGE_SIZE)); + + return !vlapic_hw_disabled(vlapic) && + !vlapic_x2apic_mode(vlapic) && + (offset < PAGE_SIZE); } =20 const struct hvm_mmio_handler vlapic_mmio_handler =3D { @@ -893,10 +898,12 @@ const struct hvm_mmio_handler vlapic_mmi .write_handler =3D vlapic_write }; =20 -void vlapic_msr_set(struct vlapic *vlapic, uint64_t value) +bool_t vlapic_msr_set(struct vlapic *vlapic, uint64_t value) { if ( (vlapic->hw.apic_base_msr ^ value) & MSR_IA32_APICBASE_ENABLE ) { + if ( unlikely(value & MSR_IA32_APICBASE_EXTD) ) + return 0; if ( value & MSR_IA32_APICBASE_ENABLE ) { vlapic_reset(vlapic); @@ -905,10 +912,15 @@ void vlapic_msr_set(struct vlapic *vlapi } else { + if ( unlikely(vlapic_x2apic_mode(vlapic)) ) + return 0; vlapic->hw.disabled |=3D VLAPIC_HW_DISABLED; pt_may_unmask_irq(vlapic_domain(vlapic), NULL); } } + else if ( !(value & MSR_IA32_APICBASE_ENABLE) && + unlikely(value & MSR_IA32_APICBASE_EXTD) ) + return 0; =20 vlapic->hw.apic_base_msr =3D value; =20 @@ -923,6 +935,8 @@ void vlapic_msr_set(struct vlapic *vlapi =20 HVM_DBG_LOG(DBG_LEVEL_VLAPIC, "apic base msr is 0x%016"PRIx64, vlapic->hw.apic_base_msr)= ; + + return 1; } =20 uint64_t vlapic_tdt_msr_get(struct vlapic *vlapic) @@ -1206,6 +1220,10 @@ static int lapic_load_hidden(struct doma if ( hvm_load_entry_zeroextend(LAPIC, h, &s->hw) !=3D 0 )=20 return -EINVAL; =20 + if ( !(s->hw.apic_base_msr & MSR_IA32_APICBASE_ENABLE) && + unlikely(vlapic_x2apic_mode(s)) ) + return -EINVAL; + vmx_vlapic_msr_changed(v); =20 return 0; --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3096,8 +3096,7 @@ void vmx_vmexit_handler(struct cpu_user_ break; =20 case EXIT_REASON_APIC_WRITE: - if ( vmx_handle_apic_write() ) - hvm_inject_hw_exception(TRAP_gp_fault, 0); + vmx_handle_apic_write(); break; =20 case EXIT_REASON_ACCESS_GDTR_OR_IDTR: --- a/xen/include/asm-x86/hvm/vlapic.h +++ b/xen/include/asm-x86/hvm/vlapic.h @@ -106,7 +106,7 @@ void vlapic_destroy(struct vcpu *v); =20 void vlapic_reset(struct vlapic *vlapic); =20 -void vlapic_msr_set(struct vlapic *vlapic, uint64_t value); +bool_t vlapic_msr_set(struct vlapic *vlapic, uint64_t value); void vlapic_tdt_msr_set(struct vlapic *vlapic, uint64_t value); uint64_t vlapic_tdt_msr_get(struct vlapic *vlapic); =20 --=__Part4C79078E.0__= Content-Type: text/plain; name="x86-HVM-x2APIC-misc.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-HVM-x2APIC-misc.patch" x86/HVM: fix miscellaneous aspects of x2APIC emulation=0A=0A- generate #GP = on invalid APIC base MSR transitions=0A- fail reads from the EOI and = self-IPI registers (which are write-only)=0A- handle self-IPI writes and = the ICR2 half of ICR writes largely in=0A hvm_x2apic_msr_write() and (for = self-IPI only) vlapic_apicv_write()=0A- don't permit MMIO-based access in = x2APIC mode=0A- filter writes to read-only registers in hvm_x2apic_msr_writ= e(),=0A allowing conditionals to be dropped from vlapic_reg_write()=0A- = don't ignore upper half of MSR-based write to ESR being non-zero=0A- VMX's = EXIT_REASON_APIC_WRITE must not result in #GP (this exit being=0A = trap-like, this exception would get raised on the wrong RIP)=0A- make = hvm_x2apic_msr_read() produce X86EMUL_* return codes just like=0A = hvm_x2apic_msr_write() does (benign to the only caller)=0A=0ASigned-off-by:= Jan Beulich =0A---=0Av3: Also handle APIC_EOI in = hvm_x2apic_msr_read() as pointed out by=0A Andrew. Filter MMIO-based = accesses in vlapic_range() when in x2APIC=0A mode. Move x2APIC special = casing from vlapic_reg_write() to=0A hvm_x2apic_msr_write(). Don't = open-code vlapic_x2apic_mode().=0Av2: Split from main patch.=0A=0A--- = a/xen/arch/x86/hvm/hvm.c=0A+++ b/xen/arch/x86/hvm/hvm.c=0A@@ -4499,7 = +4499,8 @@ int hvm_msr_write_intercept(unsigned int=0A break;=0A = =0A case MSR_IA32_APICBASE:=0A- vlapic_msr_set(vcpu_vlapic(v), = msr_content);=0A+ if ( !vlapic_msr_set(vcpu_vlapic(v), msr_content) = )=0A+ goto gp_fault;=0A break;=0A =0A case = MSR_IA32_TSC_DEADLINE:=0A--- a/xen/arch/x86/hvm/vlapic.c=0A+++ b/xen/arch/x= 86/hvm/vlapic.c=0A@@ -588,7 +588,7 @@ int hvm_x2apic_msr_read(struct vcpu = *v, =0A uint32_t low, high =3D 0, offset =3D (msr - MSR_IA32_APICBASE_M= SR) << 4;=0A =0A if ( !vlapic_x2apic_mode(vlapic) )=0A- return = 1;=0A+ return X86EMUL_UNHANDLEABLE;=0A =0A vlapic_read_aligned(v= lapic, offset, &low);=0A switch ( offset )=0A@@ -601,12 +601,15 @@ int = hvm_x2apic_msr_read(struct vcpu *v, =0A vlapic_read_aligned(vlapic,= APIC_ICR2, &high);=0A break;=0A =0A+ case APIC_EOI:=0A = case APIC_ICR2:=0A- return 1;=0A+ case APIC_SELF_IPI:=0A+ = return X86EMUL_UNHANDLEABLE;=0A }=0A =0A *msr_content =3D = (((uint64_t)high) << 32) | low;=0A- return 0;=0A+=0A+ return = X86EMUL_OKAY;=0A }=0A =0A static void vlapic_pt_cb(struct vcpu *v, void = *data)=0A@@ -630,10 +633,7 @@ static int vlapic_reg_write(struct vcpu =0A = switch ( offset )=0A {=0A case APIC_ID:=0A- if ( = !vlapic_x2apic_mode(vlapic) )=0A- vlapic_set_reg(vlapic, = APIC_ID, val);=0A- else=0A- rc =3D X86EMUL_UNHANDLEABLE;= =0A+ vlapic_set_reg(vlapic, APIC_ID, val);=0A break;=0A =0A = case APIC_TASKPRI:=0A@@ -645,17 +645,11 @@ static int vlapic_reg_write(= struct vcpu =0A break;=0A =0A case APIC_LDR:=0A- if ( = !vlapic_x2apic_mode(vlapic) )=0A- vlapic_set_reg(vlapic, = APIC_LDR, val & APIC_LDR_MASK);=0A- else=0A- rc =3D = X86EMUL_UNHANDLEABLE;=0A+ vlapic_set_reg(vlapic, APIC_LDR, val & = APIC_LDR_MASK);=0A break;=0A =0A case APIC_DFR:=0A- if = ( !vlapic_x2apic_mode(vlapic) )=0A- vlapic_set_reg(vlapic, = APIC_DFR, val | 0x0FFFFFFF);=0A- else=0A- rc =3D = X86EMUL_UNHANDLEABLE;=0A+ vlapic_set_reg(vlapic, APIC_DFR, val | = 0x0FFFFFFF);=0A break;=0A =0A case APIC_SPIV:=0A@@ -682,21 = +676,6 @@ static int vlapic_reg_write(struct vcpu =0A }=0A = break;=0A =0A- case APIC_ESR:=0A- if ( vlapic_x2apic_mode(vlapic)= && (val !=3D 0) )=0A- {=0A- gdprintk(XENLOG_ERR, "Local = APIC write ESR with non-zero %lx\n",=0A- val);=0A- = rc =3D X86EMUL_UNHANDLEABLE;=0A- }=0A- break;=0A-=0A- = case APIC_SELF_IPI:=0A- rc =3D vlapic_x2apic_mode(vlapic)=0A- = ? vlapic_reg_write(v, APIC_ICR, 0x40000 | (val & 0xff))=0A- = : X86EMUL_UNHANDLEABLE;=0A- break;=0A-=0A case APIC_ICR:=0A = val &=3D ~(1 << 12); /* always clear the pending bit */=0A = vlapic_ipi(vlapic, val, vlapic_get_reg(vlapic, APIC_ICR2));=0A@@ -704,9 = +683,7 @@ static int vlapic_reg_write(struct vcpu =0A break;=0A = =0A case APIC_ICR2:=0A- if ( !vlapic_x2apic_mode(vlapic) )=0A- = val &=3D 0xff000000;=0A- vlapic_set_reg(vlapic, APIC_ICR2,= val);=0A+ vlapic_set_reg(vlapic, APIC_ICR2, val & 0xff000000);=0A = break;=0A =0A case APIC_LVTT: /* LVT Timer Reg */=0A@@ = -851,8 +828,16 @@ static int vlapic_write(struct vcpu *v, =0A =0A int = vlapic_apicv_write(struct vcpu *v, unsigned int offset)=0A {=0A- = uint32_t val =3D vlapic_get_reg(vcpu_vlapic(v), offset);=0A- return = vlapic_reg_write(v, offset, val);=0A+ struct vlapic *vlapic =3D = vcpu_vlapic(v);=0A+ uint32_t val =3D vlapic_get_reg(vlapic, offset);=0A+= =0A+ if ( !vlapic_x2apic_mode(vlapic) )=0A+ return vlapic_reg_wri= te(v, offset, val);=0A+=0A+ if ( offset !=3D APIC_SELF_IPI )=0A+ = return X86EMUL_UNHANDLEABLE;=0A+=0A+ return vlapic_reg_write(v, = APIC_ICR, APIC_DEST_SELF | (uint8_t)val);=0A }=0A =0A int hvm_x2apic_msr_wr= ite(struct vcpu *v, unsigned int msr, uint64_t msr_content)=0A@@ -865,16 = +850,33 @@ int hvm_x2apic_msr_write(struct vcpu *v,=0A =0A switch ( = offset )=0A {=0A- int rc;=0A+ case APIC_TASKPRI:=0A+ case = APIC_EOI:=0A+ case APIC_SPIV:=0A+ case APIC_CMCI:=0A+ case = APIC_LVTT ... APIC_LVTERR:=0A+ case APIC_TMICT:=0A+ case APIC_TMCCT:= =0A+ case APIC_TDCR:=0A+ break;=0A =0A case APIC_ICR:=0A- = rc =3D vlapic_reg_write(v, APIC_ICR2, (uint32_t)(msr_content >> = 32));=0A- if ( rc )=0A- return rc;=0A+ vlapic_set_= reg(vlapic, APIC_ICR2, msr_content >> 32);=0A break;=0A =0A- = case APIC_ICR2:=0A- return X86EMUL_UNHANDLEABLE;=0A+ case = APIC_SELF_IPI:=0A+ offset =3D APIC_ICR;=0A+ msr_content =3D = APIC_DEST_SELF | (uint8_t)msr_content;=0A+ break;=0A+=0A+ case = APIC_ESR:=0A+ if ( msr_content )=0A+ {=0A+ = printk(XENLOG_G_WARNING "%pv: non-zero (%lx) LAPIC ESR write\n",=0A+ = v, msr_content);=0A+ default:=0A+ return = X86EMUL_UNHANDLEABLE;=0A+ }=0A }=0A =0A return vlapic_reg_wr= ite(v, offset, (uint32_t)msr_content);=0A@@ -884,7 +886,10 @@ static int = vlapic_range(struct vcpu *v, =0A {=0A struct vlapic *vlapic =3D = vcpu_vlapic(v);=0A unsigned long offset =3D addr - vlapic_base_address= (vlapic);=0A- return (!vlapic_hw_disabled(vlapic) && (offset < = PAGE_SIZE));=0A+=0A+ return !vlapic_hw_disabled(vlapic) &&=0A+ = !vlapic_x2apic_mode(vlapic) &&=0A+ (offset < PAGE_SIZE);=0A = }=0A =0A const struct hvm_mmio_handler vlapic_mmio_handler =3D {=0A@@ = -893,10 +898,12 @@ const struct hvm_mmio_handler vlapic_mmi=0A = .write_handler =3D vlapic_write=0A };=0A =0A-void vlapic_msr_set(struct = vlapic *vlapic, uint64_t value)=0A+bool_t vlapic_msr_set(struct vlapic = *vlapic, uint64_t value)=0A {=0A if ( (vlapic->hw.apic_base_msr ^ = value) & MSR_IA32_APICBASE_ENABLE )=0A {=0A+ if ( unlikely(value= & MSR_IA32_APICBASE_EXTD) )=0A+ return 0;=0A if ( = value & MSR_IA32_APICBASE_ENABLE )=0A {=0A vlapic_reset= (vlapic);=0A@@ -905,10 +912,15 @@ void vlapic_msr_set(struct vlapic = *vlapi=0A }=0A else=0A {=0A+ if ( = unlikely(vlapic_x2apic_mode(vlapic)) )=0A+ return 0;=0A = vlapic->hw.disabled |=3D VLAPIC_HW_DISABLED;=0A = pt_may_unmask_irq(vlapic_domain(vlapic), NULL);=0A }=0A }=0A+ = else if ( !(value & MSR_IA32_APICBASE_ENABLE) &&=0A+ = unlikely(value & MSR_IA32_APICBASE_EXTD) )=0A+ return 0;=0A =0A = vlapic->hw.apic_base_msr =3D value;=0A =0A@@ -923,6 +935,8 @@ void = vlapic_msr_set(struct vlapic *vlapi=0A =0A HVM_DBG_LOG(DBG_LEVEL_VLAPIC= ,=0A "apic base msr is 0x%016"PRIx64, vlapic->hw.apic_base_= msr);=0A+=0A+ return 1;=0A }=0A =0A uint64_t vlapic_tdt_msr_get(struct = vlapic *vlapic)=0A@@ -1206,6 +1220,10 @@ static int lapic_load_hidden(struc= t doma=0A if ( hvm_load_entry_zeroextend(LAPIC, h, &s->hw) !=3D 0 ) = =0A return -EINVAL;=0A =0A+ if ( !(s->hw.apic_base_msr & = MSR_IA32_APICBASE_ENABLE) &&=0A+ unlikely(vlapic_x2apic_mode(s)) = )=0A+ return -EINVAL;=0A+=0A vmx_vlapic_msr_changed(v);=0A =0A = return 0;=0A--- a/xen/arch/x86/hvm/vmx/vmx.c=0A+++ b/xen/arch/x86/hvm/vm= x/vmx.c=0A@@ -3096,8 +3096,7 @@ void vmx_vmexit_handler(struct cpu_user_=0A= break;=0A =0A case EXIT_REASON_APIC_WRITE:=0A- if ( = vmx_handle_apic_write() )=0A- hvm_inject_hw_exception(TRAP_gp_fa= ult, 0);=0A+ vmx_handle_apic_write();=0A break;=0A =0A = case EXIT_REASON_ACCESS_GDTR_OR_IDTR:=0A--- a/xen/include/asm-x86/hvm/vlapi= c.h=0A+++ b/xen/include/asm-x86/hvm/vlapic.h=0A@@ -106,7 +106,7 @@ void = vlapic_destroy(struct vcpu *v);=0A =0A void vlapic_reset(struct vlapic = *vlapic);=0A =0A-void vlapic_msr_set(struct vlapic *vlapic, uint64_t = value);=0A+bool_t vlapic_msr_set(struct vlapic *vlapic, uint64_t value);=0A= void vlapic_tdt_msr_set(struct vlapic *vlapic, uint64_t value);=0A = uint64_t vlapic_tdt_msr_get(struct vlapic *vlapic);=0A =0A --=__Part4C79078E.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part4C79078E.0__=--