mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-04 15:20:41 -07:00
i386/tdx: Make invtsc default on
Because it's fixed1 bit that enforced by TDX module. 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-54-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
deb9db6fb7
commit
ea4867b911
1 changed files with 3 additions and 0 deletions
|
|
@ -742,6 +742,9 @@ static void tdx_cpu_instance_init(X86ConfidentialGuest *cg, CPUState *cpu)
|
|||
|
||||
object_property_set_bool(OBJECT(cpu), "pmu", false, &error_abort);
|
||||
|
||||
/* invtsc is fixed1 for TD guest */
|
||||
object_property_set_bool(OBJECT(cpu), "invtsc", true, &error_abort);
|
||||
|
||||
x86cpu->enable_cpuid_0x1f = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue