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)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 May 2021 10:06:16 +0000 (06:06 -0400)
commit2183de4161b90bd3851ccd3910c87b2c9adfc6ed
treec3e40541bcb213e9cc8317ca22b2327d482e9a59
parent3b195ac9260235624b1c18f7bdaef184479c1d41
KVM: x86: Move RDPID emulation intercept to its own enum

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