mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-06 00:00:42 -07:00
i386/tdx: Force exposing CPUID 0x1f
TDX uses CPUID 0x1f to configure TD guest's CPU topology. So set enable_cpuid_0x1f for TDs. Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250508150002.689633-35-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ab8bd85adf
commit
9002494f80
1 changed files with 4 additions and 0 deletions
|
|
@ -400,7 +400,11 @@ static int tdx_kvm_type(X86ConfidentialGuest *cg)
|
|||
|
||||
static void tdx_cpu_instance_init(X86ConfidentialGuest *cg, CPUState *cpu)
|
||||
{
|
||||
X86CPU *x86cpu = X86_CPU(cpu);
|
||||
|
||||
object_property_set_bool(OBJECT(cpu), "pmu", false, &error_abort);
|
||||
|
||||
x86cpu->enable_cpuid_0x1f = true;
|
||||
}
|
||||
|
||||
static int tdx_validate_attributes(TdxGuest *tdx, Error **errp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue