From: Isaku Yamahata Date: Thu, 8 May 2025 14:59:16 +0000 (-0400) Subject: i386/tdx: Make sept_ve_disable set by default X-Git-Tag: v10.1.0-rc0~69^2~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=714af52276e74a1829674d180ef26ecb6261834c;p=thirdparty%2Fqemu.git i386/tdx: Make sept_ve_disable set by default For TDX KVM use case, Linux guest is the most major one. It requires sept_ve_disable set. Make it default for the main use case. For other use case, it can be enabled/disabled via qemu command line. Signed-off-by: Isaku Yamahata Signed-off-by: Xiaoyao Li Reviewed-by: Daniel P. Berrangé Reviewed-by: Zhao Liu Link: https://lore.kernel.org/r/20250508150002.689633-11-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/kvm/tdx.c b/target/i386/kvm/tdx.c index 32ba3982ff1..a30731b1a3b 100644 --- a/target/i386/kvm/tdx.c +++ b/target/i386/kvm/tdx.c @@ -288,7 +288,7 @@ static void tdx_guest_init(Object *obj) qemu_mutex_init(&tdx->lock); cgs->require_guest_memfd = true; - tdx->attributes = 0; + tdx->attributes = TDX_TD_ATTRIBUTES_SEPT_VE_DISABLE; object_property_add_uint64_ptr(obj, "attributes", &tdx->attributes, OBJ_PROP_FLAG_READWRITE);