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/kvm/x86.c | |
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/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 3c4c327490af..7475b029b2ad 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3178,7 +3178,7 @@ static void inject_pending_irq(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
3178 | kvm_run->request_interrupt_window; | 3178 | kvm_run->request_interrupt_window; |
3179 | 3179 | ||
3180 | if (vcpu->guest_debug & KVM_GUESTDBG_SINGLESTEP) | 3180 | if (vcpu->guest_debug & KVM_GUESTDBG_SINGLESTEP) |
3181 | kvm_x86_ops->drop_interrupt_shadow(vcpu); | 3181 | kvm_x86_ops->set_interrupt_shadow(vcpu, 0); |
3182 | 3182 | ||
3183 | inject_irq(vcpu); | 3183 | inject_irq(vcpu); |
3184 | 3184 | ||