xen: explicitly zero CR[1] in getvcpucontext for guests with no User PT
PATCH 1/1 xen: explicitly zero CR[1] in getvcpucontext for guests with no User PT
Some recent guests (SLES11 & PVOPS) set this to NULL when running idle/kernel threads and the uninitialised value can confuse suspend/resume.
Signed-off-by Ian Campbell <[email protected]>
xen/arch/x86/domctl.c +2 -0
@@ -1151,6 +1151,8 @@if ( !pagetable_is_null (v->arch.guest_table_user) ) c.nat->ctrlreg[1 ] =xen_pfn_to_cr3 (pagetable_get_pfn (v->arch.guest_table_user)); +else + c.nat->ctrlreg[1 ] =0UL ;#endif /* Merge shadow DR7 bits into real DR7. */