Li, Xin B
2005-Dec-15 08:24 UTC
[Xen-devel] [PATCH] check before relinquishing vlapic because VMX domain may crash very early
check before relinquishing vlapic because VMX domain may crash very early. Signed-off-by: Xin Li <xin.b.li@intel.com> Also pls push to xen-3.0-testing.hg. thanks diff -r dc8122d90670 xen/arch/x86/vmx.c --- a/xen/arch/x86/vmx.c Wed Dec 14 18:47:16 2005 +++ b/xen/arch/x86/vmx.c Thu Dec 15 16:18:14 2005 @@ -113,9 +113,10 @@ if ( active_ac_timer(&v->arch.arch_vmx.hlt_timer) ) { rem_ac_timer(&v->arch.arch_vmx.hlt_timer); } - if ( vmx_apic_support(v->domain) ) { - rem_ac_timer( &(VLAPIC(v)->vlapic_timer) ); - xfree( VLAPIC(v) ); + if ( vmx_apic_support(v->domain) && (VLAPIC(v) != NULL) ) { + if ( active_ac_timer(&(VLAPIC(v)->vlapic_timer)) ) + rem_ac_timer(&(VLAPIC(v)->vlapic_timer)); + xfree(VLAPIC(v)); } } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Maybe Matching Threads
- [PATCH]x86:vlapic: Fix possible guest tick losing after save/restore
- [ PATCH v3 2/3] xen: enable Virtual-interrupt delivery
- [PATCH][SVM] 32bit msr support/enable 64bit vlapic
- HVM vLAPIC timer interrupts intermittently disappearing
- [HVM] Fix interrupt routing