diff options
| author | Adrian Hunter <[email protected]> | 2025-04-15 10:48:20 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2025-04-24 13:52:31 +0000 |
| commit | ca4f113b0b4c2de6ffb438d5d0ebb7337877c911 (patch) | |
| tree | 380918b10e730e7e6884afb57f3c7db46b27d4da /rust/helpers/dma.c | |
| parent | KVM: SVM: WARN if an invalid posted interrupt IRTE entry is added (diff) | |
| download | kernel-ca4f113b0b4c2de6ffb438d5d0ebb7337877c911.tar.gz kernel-ca4f113b0b4c2de6ffb438d5d0ebb7337877c911.zip | |
KVM: x86: Do not use kvm_rip_read() unconditionally in KVM tracepoints
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
