]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM/x86: pmu: Fix #GP condition check for RDPMC emulation
authorLike Xu <like.xu@linux.intel.com>
Wed, 8 Jul 2020 07:44:09 +0000 (15:44 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jul 2020 11:08:37 +0000 (07:08 -0400)
commit632a4cf57fd1bfae24f05c71398d367ca51940f1
tree4be0dae19083fedebad26f649a634b9f30f007f0
parent995decb6c43e1d6e9d6a7d590471f2eea74600f4
KVM/x86: pmu: Fix #GP condition check for RDPMC emulation

In guest protected mode, if the current privilege level
is not 0 and the PCE flag in the CR4 register is cleared,
we will inject a #GP for RDPMC usage.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Message-Id: <20200708074409.39028-1-like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/pmu.c