Re: [PATCH] KVM: TDX: Fix APIC MSR ranges in tdx_has_emulated_msr()

Dave Hansen
2026-03-19T01:48:50Z

On 3/18/26 18:14, Binbin Wu wrote:
> The bug doesn't cause problems for TDs because:
> - These x2apic MSRs (TASKPRI, PROCPRI, EOI, ISRx, TMRx, IRRx) are virtualized by CPU,
> when a TD accesses these MSRs, it doesn't cause #VE, thus no TDVMCALL from the TD to
> request the emulation of these MSRs.
> - The bug make the "false" range of APIC MSRs smaller, so it doesn't impact the result
> for the rest of the APIC MSRs.

Could we fix this up so that the code that's there is actually usable
and testable, please?