diff options
author | Glauber Costa <glommer@redhat.com> | 2009-05-12 16:21:05 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 04:48:54 -0400 |
commit | 2809f5d2c4cfad171167b131bb2a21ab65eba40f (patch) | |
tree | eee772c1476fb05ababf306d6458f4ccd8b8412a /arch/x86/include/asm/kvm_host.h | |
parent | 547de29e5b1662deb05b5f90917902dc0e9ac182 (diff) |
KVM: Replace ->drop_interrupt_shadow() by ->set_interrupt_shadow()
This patch replaces drop_interrupt_shadow with the more
general set_interrupt_shadow, that can either drop or raise
it, depending on its parameter. It also adds ->get_interrupt_shadow()
for future use.
Signed-off-by: Glauber Costa <glommer@redhat.com>
CC: H. Peter Anvin <hpa@zytor.com>
CC: Gleb Natapov <gleb@redhat.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, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index ab7de4a11955..16d1481aa231 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -508,6 +508,8 @@ struct kvm_x86_ops { | |||
508 | void (*run)(struct kvm_vcpu *vcpu, struct kvm_run *run); | 508 | void (*run)(struct kvm_vcpu *vcpu, struct kvm_run *run); |
509 | int (*handle_exit)(struct kvm_run *run, struct kvm_vcpu *vcpu); | 509 | int (*handle_exit)(struct kvm_run *run, struct kvm_vcpu *vcpu); |
510 | void (*skip_emulated_instruction)(struct kvm_vcpu *vcpu); | 510 | void (*skip_emulated_instruction)(struct kvm_vcpu *vcpu); |
511 | void (*set_interrupt_shadow)(struct kvm_vcpu *vcpu, int mask); | ||
512 | u32 (*get_interrupt_shadow)(struct kvm_vcpu *vcpu, int mask); | ||
511 | void (*patch_hypercall)(struct kvm_vcpu *vcpu, | 513 | void (*patch_hypercall)(struct kvm_vcpu *vcpu, |
512 | unsigned char *hypercall_addr); | 514 | unsigned char *hypercall_addr); |
513 | void (*set_irq)(struct kvm_vcpu *vcpu, int vec); | 515 | void (*set_irq)(struct kvm_vcpu *vcpu, int vec); |
@@ -519,7 +521,6 @@ struct kvm_x86_ops { | |||
519 | void (*enable_nmi_window)(struct kvm_vcpu *vcpu); | 521 | void (*enable_nmi_window)(struct kvm_vcpu *vcpu); |
520 | void (*enable_irq_window)(struct kvm_vcpu *vcpu); | 522 | void (*enable_irq_window)(struct kvm_vcpu *vcpu); |
521 | void (*update_cr8_intercept)(struct kvm_vcpu *vcpu, int tpr, int irr); | 523 | void (*update_cr8_intercept)(struct kvm_vcpu *vcpu, int tpr, int irr); |
522 | void (*drop_interrupt_shadow)(struct kvm_vcpu *vcpu); | ||
523 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); | 524 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); |
524 | int (*get_tdp_level)(void); | 525 | int (*get_tdp_level)(void); |
525 | u64 (*get_mt_mask)(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio); | 526 | u64 (*get_mt_mask)(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio); |