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@amd.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
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.