diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-10-05 07:07:21 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:14 -0500 |
commit | 91586a3b7d79432772a3cdcb81473cd08a237c79 (patch) | |
tree | 3d5955b02c81485f0fe446649e969251598972c6 /arch/x86/include/asm/kvm_host.h | |
parent | a68a6a7282373bedba8a2ed751b6384edb983a64 (diff) |
KVM: x86: Rework guest single-step flag injection and filtering
Push TF and RF injection and filtering on guest single-stepping into the
vender get/set_rflags callbacks. This makes the whole mechanism more
robust wrt user space IOCTL order and instruction emulations.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index e7f870832603..179a919f53a4 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -614,6 +614,9 @@ void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l); | |||
614 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); | 614 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); |
615 | int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data); | 615 | int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data); |
616 | 616 | ||
617 | unsigned long kvm_get_rflags(struct kvm_vcpu *vcpu); | ||
618 | void kvm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags); | ||
619 | |||
617 | void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr); | 620 | void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr); |
618 | void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code); | 621 | void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code); |
619 | void kvm_inject_page_fault(struct kvm_vcpu *vcpu, unsigned long cr2, | 622 | void kvm_inject_page_fault(struct kvm_vcpu *vcpu, unsigned long cr2, |