diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-02-23 11:47:55 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-04-25 06:00:40 -0400 |
commit | f92653eeb496fe8624ac4b0d628c916a06a3d25c (patch) | |
tree | 114da40a81c70bc10efca3b633be98b7d4d70c73 /arch/x86/include/asm/kvm_host.h | |
parent | 116a4752c82f767a59c27b2630a8474b936a776a (diff) |
KVM: x86: Add kvm_is_linear_rip
Based on Gleb's suggestion: Add a helper kvm_is_linear_rip that matches
a given linear RIP against the current one. Use this for guest
single-stepping, more users will follow.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index d46e791de129..502fff123e29 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -362,8 +362,8 @@ struct kvm_vcpu_arch { | |||
362 | u64 *mce_banks; | 362 | u64 *mce_banks; |
363 | 363 | ||
364 | /* used for guest single stepping over the given code position */ | 364 | /* used for guest single stepping over the given code position */ |
365 | u16 singlestep_cs; | ||
366 | unsigned long singlestep_rip; | 365 | unsigned long singlestep_rip; |
366 | |||
367 | /* fields used by HYPER-V emulation */ | 367 | /* fields used by HYPER-V emulation */ |
368 | u64 hv_vapic; | 368 | u64 hv_vapic; |
369 | }; | 369 | }; |
@@ -820,4 +820,6 @@ int kvm_cpu_get_interrupt(struct kvm_vcpu *v); | |||
820 | void kvm_define_shared_msr(unsigned index, u32 msr); | 820 | void kvm_define_shared_msr(unsigned index, u32 msr); |
821 | void kvm_set_shared_msr(unsigned index, u64 val, u64 mask); | 821 | void kvm_set_shared_msr(unsigned index, u64 val, u64 mask); |
822 | 822 | ||
823 | bool kvm_is_linear_rip(struct kvm_vcpu *vcpu, unsigned long linear_rip); | ||
824 | |||
823 | #endif /* _ASM_X86_KVM_HOST_H */ | 825 | #endif /* _ASM_X86_KVM_HOST_H */ |