On 4/2/2025 7:56 PM, Daniel P. Berrangé wrote:
On Tue, Apr 01, 2025 at 09:01:24AM -0400, Xiaoyao Li wrote:
TDX advertises core crystal clock with cpuid[0x15] as 25MHz for TD
guests and it's unchangeable from VMM. As a result, TDX guest reads
the APIC timer as the same frequency, 25MHz.

Did you mean    s/as/at/  ?

yes, thanks for catching it!

While KVM's default emulated frequency for APIC bus is 1GHz, set the
APIC bus rate to match with TDX explicitly to ensure KVM provide correct
emulated APIC timer for TD guest.

Signed-off-by: Xiaoyao Li <xiaoyao...@intel.com>
---
Changes in v6:
  - new patch;
---
  target/i386/kvm/tdx.c | 13 +++++++++++++
  target/i386/kvm/tdx.h |  3 +++
  2 files changed, 16 insertions(+)

Reviewed-by: Daniel P. Berrangé <berra...@redhat.com>


With regards,
Daniel


Reply via email to