Commit e87e46d
KVM: X86: Use kvm_get_linear_rip() in single-step and #DB/#BP interception
The kvm_get_linear_rip() handles x86/long mode cases well and has
better readability, __kvm_set_rflags() also use the paired
function kvm_is_linear_rip() to check the vcpu->arch.singlestep_rip
set in kvm_arch_vcpu_ioctl_set_guest_debug(), so change the
"CS.BASE + RIP" code in kvm_arch_vcpu_ioctl_set_guest_debug() and
handle_exception_nmi() to this one.
Signed-off-by: Yuan Yao <yuan.yao@intel.com>
Message-Id: <20210526063828.1173-1-yuan.yao@linux.intel.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent bedd919 commit e87e46d
2 files changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4843 | 4843 | | |
4844 | 4844 | | |
4845 | 4845 | | |
4846 | | - | |
| 4846 | + | |
4847 | 4847 | | |
4848 | 4848 | | |
4849 | 4849 | | |
| |||
4933 | 4933 | | |
4934 | 4934 | | |
4935 | 4935 | | |
4936 | | - | |
4937 | | - | |
| 4936 | + | |
4938 | 4937 | | |
4939 | 4938 | | |
4940 | 4939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10120 | 10120 | | |
10121 | 10121 | | |
10122 | 10122 | | |
10123 | | - | |
10124 | | - | |
| 10123 | + | |
10125 | 10124 | | |
10126 | 10125 | | |
10127 | 10126 | | |
| |||
0 commit comments