hypervisor: tdx: Unconditionally enable TDX debug

For now enable the TDX attribute for TDX debug.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-06-01 15:17:54 +00:00 committed by Bo Chen
parent 7f3fa39d81
commit 9f5325fd52

View File

@ -373,7 +373,7 @@ impl vm::Vm for KvmVm {
let data = TdxInitVm {
max_vcpus,
reserved: 0,
attributes: 0,
attributes: 1, // TDX1_TD_ATTRIBUTE_DEBUG,
cpuid: cpuid.as_fam_struct_ptr() as u64,
};