From 9f5325fd52ce266f53347c3065df7ef8b9a08cd7 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 1 Jun 2021 15:17:54 +0000 Subject: [PATCH] hypervisor: tdx: Unconditionally enable TDX debug For now enable the TDX attribute for TDX debug. Signed-off-by: Rob Bradford --- hypervisor/src/kvm/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/src/kvm/mod.rs b/hypervisor/src/kvm/mod.rs index 3eee7dae0..4a781939e 100644 --- a/hypervisor/src/kvm/mod.rs +++ b/hypervisor/src/kvm/mod.rs @@ -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, };