]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: x86: Move RDPID emulation intercept to its own enum
authorSean Christopherson <seanjc@google.com>
Tue, 4 May 2021 17:17:23 +0000 (10:17 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:07:34 +0000 (11:07 +0200)
commitb06e5dd891486a09a8547590ab4c31245626724f
tree6b234021956b554e524c76fc36d9248a0ad3b530
parent6176d6b6e44d1bcbe10e84157e79c8c53247857e
KVM: x86: Move RDPID emulation intercept to its own enum

BugLink: https://bugs.launchpad.net/bugs/1931292
commit 2183de4161b90bd3851ccd3910c87b2c9adfc6ed upstream.

Add a dedicated intercept enum for RDPID instead of piggybacking RDTSCP.
Unlike VMX's ENABLE_RDTSCP, RDPID is not bound to SVM's RDTSCP intercept.

Fixes: fb6d4d340e05 ("KVM: x86: emulate RDPID")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210504171734.1434054-5-seanjc@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/kvm_emulate.h
arch/x86/kvm/vmx/vmx.c