diff options
author | Sean Christopherson <seanjc@google.com> | 2025-02-01 04:55:10 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-02-24 20:01:06 +0300 |
commit | 3244616aac8dc69b3d7e4a4ee541e767b974af43 (patch) | |
tree | f90993c0113858263946a4d9d8f2359c193bed94 /scripts/generate_rust_analyzer.py | |
parent | c8e612bfedff67da0dd4abdf4de9ce7671b89f71 (diff) | |
download | linux-3244616aac8dc69b3d7e4a4ee541e767b974af43.tar.xz |
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 fb6d4d340e05 ("KVM: x86: emulate RDPID"),
KVM incorrectly allowed emulation by default. Commit 07721feee46b ("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: 07721feee46b ("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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions