aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/dma.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2025-04-15 10:48:21 +0000
committerPaolo Bonzini <[email protected]>2025-04-24 13:52:32 +0000
commit38e93267ca6807fc34288ce1a9c610bf219fc0e0 (patch)
tree5925d147a156075e464655ea350ed22b6db8135e /rust/helpers/dma.c
parentKVM: x86: Do not use kvm_rip_read() unconditionally in KVM tracepoints (diff)
downloadkernel-38e93267ca6807fc34288ce1a9c610bf219fc0e0.tar.gz
kernel-38e93267ca6807fc34288ce1a9c610bf219fc0e0.zip
KVM: x86: Do not use kvm_rip_read() unconditionally for KVM_PROFILING
Not all VMs allow access to RIP. Check guest_state_protected before calling kvm_rip_read(). This avoids, for example, hitting WARN_ON_ONCE in vt_cache_reg() for TDX VMs. Fixes: 81bf912b2c15 ("KVM: TDX: Implement TDX vcpu enter/exit path") Signed-off-by: Adrian Hunter <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'rust/helpers/dma.c')
0 files changed, 0 insertions, 0 deletions