]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hvm: check HAP before enabling nested VMX
authorHaozhong Zhang <haozhong.zhang@intel.com>
Wed, 1 Mar 2017 09:30:32 +0000 (10:30 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 1 Mar 2017 09:30:32 +0000 (10:30 +0100)
The current implementation of nested VMX cannot work without HAP.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c

index 9eeb0a2ff2e82f57025482e57d7549c4762c6b8c..3d623ecc7a404f8cf3d6820b64721d1cfccf0c2c 100644 (file)
@@ -4156,7 +4156,7 @@ static int hvmop_set_param(
          * Remove the check below once we have
          * shadow-on-shadow.
          */
-        if ( cpu_has_svm && !paging_mode_hap(d) && a.value )
+        if ( !paging_mode_hap(d) && a.value )
             rc = -EINVAL;
         if ( a.value &&
              d->arch.hvm_domain.params[HVM_PARAM_ALTP2M] )