[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 06/40] i386/tdx: Get tdx_capabilities via KVM_TDX_CAPABILI
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH v1 06/40] i386/tdx: Get tdx_capabilities via KVM_TDX_CAPABILITIES |
Date: |
Thu, 25 Aug 2022 12:12:03 +0200 |
Hi,
> + r = tdx_platform_ioctl(KVM_TDX_CAPABILITIES, 0, caps);
> + if (r == -E2BIG) {
> + g_free(caps);
> + nr_cpuid_configs *= 2;
> + if (nr_cpuid_configs > KVM_MAX_CPUID_ENTRIES) {
> + error_report("KVM TDX seems broken");
Maybe, but IMHO this should still report what exactly the problem is
(number of cpuid entries exceeds limit).
take care,
Gerd
- [PATCH v1 00/40] TDX QEMU support, Xiaoyao Li, 2022/08/02
- [PATCH v1 01/40] *** HACK *** linux-headers: Update headers to pull in TDX API changes, Xiaoyao Li, 2022/08/02
- [PATCH v1 02/40] i386: Introduce tdx-guest object, Xiaoyao Li, 2022/08/02
- [PATCH v1 03/40] target/i386: Implement mc->kvm_type() to get VM type, Xiaoyao Li, 2022/08/02
- [PATCH v1 04/40] target/i386: Introduce kvm_confidential_guest_init(), Xiaoyao Li, 2022/08/02
- [PATCH v1 05/40] i386/tdx: Implement tdx_kvm_init() to initialize TDX VM context, Xiaoyao Li, 2022/08/02
- [PATCH v1 06/40] i386/tdx: Get tdx_capabilities via KVM_TDX_CAPABILITIES, Xiaoyao Li, 2022/08/02
- Re: [PATCH v1 06/40] i386/tdx: Get tdx_capabilities via KVM_TDX_CAPABILITIES,
Gerd Hoffmann <=
- [PATCH v1 07/40] i386/tdx: Introduce is_tdx_vm() helper and cache tdx_guest object, Xiaoyao Li, 2022/08/02
- [PATCH v1 08/40] i386/tdx: Adjust the supported CPUID based on TDX restrictions, Xiaoyao Li, 2022/08/02
- [PATCH v1 09/40] i386/tdx: Update tdx_fixed0/1 bits by tdx_caps.cpuid_config[], Xiaoyao Li, 2022/08/02