Commit 38e9326
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: 81bf912 ("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]>1 parent ca4f113 commit 38e9326
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11098 | 11098 | | |
11099 | 11099 | | |
11100 | 11100 | | |
11101 | | - | |
| 11101 | + | |
| 11102 | + | |
11102 | 11103 | | |
11103 | 11104 | | |
11104 | 11105 | | |
| |||
0 commit comments