Re: [PATCH 00/16] x86/tsc: Try to wrangle PV clocks vs. TSC

2025-02-11 Thread Sean Christopherson
On Tue, Feb 11, 2025, Borislav Petkov wrote: > On Fri, Jan 31, 2025 at 06:17:02PM -0800, Sean Christopherson wrote: > > And if the host provides the core crystal frequency in CPUID.0x15, then KVM > > guests can use that for the APIC timer period instead of manually > > calibrating the frequency. >

Re: [PATCH 00/16] x86/tsc: Try to wrangle PV clocks vs. TSC

2025-02-11 Thread Borislav Petkov
On Fri, Jan 31, 2025 at 06:17:02PM -0800, Sean Christopherson wrote: > And if the host provides the core crystal frequency in CPUID.0x15, then KVM > guests can use that for the APIC timer period instead of manually > calibrating the frequency. Hmm, so that part: what's stopping the host from fakin

[PATCH 00/16] x86/tsc: Try to wrangle PV clocks vs. TSC

2025-01-31 Thread Sean Christopherson
Attempt to bring some amount of order to the PV clocks vs. TSC madness in the kernel. The primary goal of this series is to fix flaws with SNP and TDX guests where a PV clock provided by the untrusted hypervisor is used instead of the secure/trusted TSC that is controlled by trusted firmware. The