]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:55 +0000 (10:29 +0200)
commitff4a50a455ecd99c1890a5a35e19c276a271adbf
tree41c11cc1014a0ee359d4d1f44c156e79a1bff7ab
parent5fc7a3a1e9d3dbdaec6685a5d89d5f16a9b9cfcc
KVM: x86: Move RDPID emulation intercept to its own enum

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>
arch/x86/kvm/emulate.c
arch/x86/kvm/kvm_emulate.h
arch/x86/kvm/vmx/vmx.c