vmm: tdx: Clear unsupported KVM PV features

This matches with the features that QEMU clears as they are not
supported with TDX.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-06-01 15:11:49 +00:00
committed by Sebastien Boeuf
parent 9f5325fd52
commit c357adae44
2 changed files with 26 additions and 0 deletions
+2
View File
@@ -558,6 +558,8 @@ impl Vm {
hypervisor,
seccomp_action.clone(),
vm_ops,
#[cfg(feature = "tdx")]
config.lock().unwrap().tdx.is_some(),
)
.map_err(Error::CpuManager)?;