[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] nestedsvm: fix checks of guest writes to HSAVE_PA MSR
# HG changeset patch # User Christoph Egger <Christoph.Egger@xxxxxxx> # Date 1318504870 -3600 # Node ID c1bd53fac3d5e5868352894d62dbacd6de0b0e7a # Parent eda18b27de6ed873ceb0e2f633d04236c5479f6d nestedsvm: fix checks of guest writes to HSAVE_PA MSR Accessing HSAVE_PA MSR does not require SVM to be enabled nor any special guest paging mode. But accessing HSAVE_PA MSR requires the address to be 4k aligned. Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Committed-by: Tim Deegan <tim@xxxxxxx> --- diff -r eda18b27de6e -r c1bd53fac3d5 xen/arch/x86/hvm/svm/nestedsvm.c --- a/xen/arch/x86/hvm/svm/nestedsvm.c Thu Oct 13 12:21:10 2011 +0100 +++ b/xen/arch/x86/hvm/svm/nestedsvm.c Thu Oct 13 12:21:10 2011 +0100 @@ -51,7 +51,8 @@ static int nestedsvm_vmcb_isvalid(struct vcpu *v, uint64_t vmcxaddr) { - if ( !hvm_svm_enabled(v) || hvm_guest_x86_mode(v) < 2 ) + /* Address must be 4k aligned */ + if ( (vmcxaddr & ~PAGE_MASK) != 0 ) return 0; /* Maximum valid physical address. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |