Commit d6d0f39
KVM: nVMX: Allow emulating RDPID on behalf of L2
JIRA: https://issues.redhat.com/browse/RHEL-95318
commit 3244616
Author: Sean Christopherson <seanjc@google.com>
Date: Fri Jan 31 17:55:10 2025 -0800
KVM: nVMX: Allow emulating RDPID on behalf of L2
Return X86EMUL_CONTINUE instead X86EMUL_UNHANDLEABLE when emulating RDPID
on behalf of L2 and L1 _does_ expose RDPID/RDTSCP to L2. When RDPID
emulation was added by commit fb6d4d3 ("KVM: x86: emulate RDPID"),
KVM incorrectly allowed emulation by default. Commit 07721fe ("KVM:
nVMX: Don't emulate instructions in guest mode") fixed that flaw, but
missed that RDPID emulation was relying on the common return path to allow
emulation on behalf of L2.
Fixes: 07721fe ("KVM: nVMX: Don't emulate instructions in guest mode")
Link: https://lore.kernel.org/r/20250201015518.689704-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 8ff80db commit d6d0f39
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7961 | 7961 | | |
7962 | 7962 | | |
7963 | 7963 | | |
7964 | | - | |
7965 | | - | |
7966 | | - | |
7967 | | - | |
7968 | | - | |
7969 | 7964 | | |
| 7965 | + | |
| 7966 | + | |
| 7967 | + | |
| 7968 | + | |
| 7969 | + | |
| 7970 | + | |
7970 | 7971 | | |
7971 | 7972 | | |
7972 | 7973 | | |
7973 | 7974 | | |
7974 | 7975 | | |
7975 | | - | |
| 7976 | + | |
7976 | 7977 | | |
7977 | 7978 | | |
7978 | 7979 | | |
| |||
0 commit comments