Re: [PATCH v9 07/12] KVM: x86/pmu: Emulate RDPMC on performance metrics

From: Jim Mattson

Date: Fri Oct 23 2026 - 14:34:16 EST


On Fri, Sep 18, 2026 at 12:50 PM Zide Chen <zide.chen@xxxxxxxxx> wrote:
>
> If the host has the PERF_METRICS capability but it's not present on
> the guest, RDPMC interception must be enabled and KVM should inject
> an #GP when the guest attempts a PERF_METRICS RDPMC.
>
> If the guest has PERF_METRICS but RDPMC interception is enabled for
> other reasons, KVM needs to emulate RDPMC with type 0x2000.
>
> Signed-off-by: Zide Chen <zide.chen@xxxxxxxxx>
> Reviewed-by: Dapeng Mi <dapeng1.mi@xxxxxxxxxxxxxxx>
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>