mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86/hvm: check HAP before enabling nested VMX
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>
This commit is contained in:
1 parent
2f0691862c
commit
77751ed79e
1 file changed
+1
-1
@@ -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] )
|
||||
|
||||