[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 58/66] i386/tdx: Don't allow system reset for TDX VMs
From: |
Xiaoyao Li |
Subject: |
[PATCH v4 58/66] i386/tdx: Don't allow system reset for TDX VMs |
Date: |
Wed, 24 Jan 2024 22:23:20 -0500 |
TDX CPU state is protected and thus vcpu state cann't be reset by VMM.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
---
target/i386/kvm/kvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index e36ece874246..0ec0584d22ca 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -5686,7 +5686,7 @@ bool kvm_has_waitpkg(void)
bool kvm_arch_cpu_check_are_resettable(void)
{
- return !sev_es_enabled();
+ return !sev_es_enabled() && !is_tdx_vm();
}
#define ARCH_REQ_XCOMP_GUEST_PERM 0x1025
--
2.34.1
- [PATCH v4 49/66] i386/tdx: handle TDG.VP.VMCALL<SetupEventNotifyInterrupt>, (continued)
- [PATCH v4 49/66] i386/tdx: handle TDG.VP.VMCALL<SetupEventNotifyInterrupt>, Xiaoyao Li, 2024/01/24
- [PATCH v4 47/66] i386/tdx: Call KVM_TDX_INIT_VCPU to initialize TDX vcpu, Xiaoyao Li, 2024/01/24
- [PATCH v4 46/66] i386/tdx: register TDVF as private memory, Xiaoyao Li, 2024/01/24
- [PATCH v4 52/66] i386/tdx: Handle TDG.VP.VMCALL<REPORT_FATAL_ERROR>, Xiaoyao Li, 2024/01/24
- [PATCH v4 51/66] i386/tdx: handle TDG.VP.VMCALL<MapGPA> hypercall, Xiaoyao Li, 2024/01/24
- [PATCH v4 50/66] i386/tdx: handle TDG.VP.VMCALL<GetQuote>, Xiaoyao Li, 2024/01/24
- [PATCH v4 54/66] pci-host/q35: Move PAM initialization above SMRAM initialization, Xiaoyao Li, 2024/01/24
- [PATCH v4 55/66] q35: Introduce smm_ranges property for q35-pci-host, Xiaoyao Li, 2024/01/24
- [PATCH v4 53/66] i386/tdx: Wire TDX_REPORT_FATAL_ERROR with GuestPanic facility, Xiaoyao Li, 2024/01/24
- [PATCH v4 57/66] i386/tdx: Disable PIC for TDX VMs, Xiaoyao Li, 2024/01/24
- [PATCH v4 58/66] i386/tdx: Don't allow system reset for TDX VMs,
Xiaoyao Li <=
- [PATCH v4 56/66] i386/tdx: Disable SMM for TDX VMs, Xiaoyao Li, 2024/01/24
- [PATCH v4 59/66] i386/tdx: LMCE is not supported for TDX, Xiaoyao Li, 2024/01/24
- [PATCH v4 60/66] hw/i386: add eoi_intercept_unsupported member to X86MachineState, Xiaoyao Li, 2024/01/24
- [PATCH v4 61/66] hw/i386: add option to forcibly report edge trigger in acpi tables, Xiaoyao Li, 2024/01/24
- [PATCH v4 62/66] i386/tdx: Don't synchronize guest tsc for TDs, Xiaoyao Li, 2024/01/24
- [PATCH v4 63/66] i386/tdx: Only configure MSR_IA32_UCODE_REV in kvm_init_msrs() for TDs, Xiaoyao Li, 2024/01/24
- [PATCH v4 64/66] i386/tdx: Skip kvm_put_apicbase() for TDs, Xiaoyao Li, 2024/01/24
- [PATCH v4 65/66] i386/tdx: Don't get/put guest state for TDX VMs, Xiaoyao Li, 2024/01/24
- [PATCH v4 66/66] docs: Add TDX documentation, Xiaoyao Li, 2024/01/24