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:
Haozhong Zhang authored and Jan Beulich committed 2017-03-01 10:30:32 +01:00
1 parent 2f0691862c
commit 77751ed79e
1 file changed
+1 -1
+1 -1
View 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] )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.