49 lines
1.9 KiB
Diff
49 lines
1.9 KiB
Diff
From c0f849d9cc9b60aff17fd9a1349788856c0e98b9 Mon Sep 17 00:00:00 2001
|
|
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
Date: Fri, 18 Jul 2025 18:03:46 +0200
|
|
Subject: [PATCH 039/115] i386/tdx: Make sept_ve_disable set by default
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
RH-MergeRequest: 391: TDX support, including attestation and device assignment
|
|
RH-Jira: RHEL-15710 RHEL-20798 RHEL-49728
|
|
RH-Acked-by: Yash Mankad <None>
|
|
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
RH-Commit: [39/115] ccfc985bc607ff9d1c91e65d810003347d410088 (bonzini/rhel-qemu-kvm)
|
|
|
|
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 <isaku.yamahata@intel.com>
|
|
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
|
|
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
|
|
Link: https://lore.kernel.org/r/20250508150002.689633-11-xiaoyao.li@intel.com
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
(cherry picked from commit 714af52276e74a1829674d180ef26ecb6261834c)
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
---
|
|
target/i386/kvm/tdx.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/target/i386/kvm/tdx.c b/target/i386/kvm/tdx.c
|
|
index 370bd86f2c..2ed40b7614 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);
|
|
--
|
|
2.50.1
|
|
|