diff options
author | 2025-01-31 17:55:10 -0800 | |
---|---|---|
committer | 2025-02-24 09:01:06 -0800 | |
commit | 3244616aac8dc69b3d7e4a4ee541e767b974af43 (patch) | |
tree | f90993c0113858263946a4d9d8f2359c193bed94 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: nSVM: Pass next RIP, not current RIP, for nested VM-Exit on emulation (diff) | |
download | linux-rng-3244616aac8dc69b3d7e4a4ee541e767b974af43.tar.xz linux-rng-3244616aac8dc69b3d7e4a4ee541e767b974af43.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions