Re: [PATCH] KVM/x86: pmu: Fix #GP condition check for RDPMC emulation

From: Sean Christopherson
Date: Wed Jul 08 2020 - 11:45:24 EST


On Wed, Jul 08, 2020 at 05:31:14PM +0200, Paolo Bonzini wrote:
> The order follows the SDM. I'm tempted to remove the CR0 check
> altogether, since non-protected-mode always runs at CPL0 AFAIK, but let's
> keep it close to what the manual says.

Heh, it wouldn't surprise me in the least if there's a way to get the SS
arbyte to hold a non-zero DPL in real mode :-).