diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-04 15:57:28 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-04 16:00:43 +0200 |
commit | 290dae4678df9f271dbde5cc5cc7648aff136493 (patch) | |
tree | 4b29ad5be67344cae76274fa922dbd2e9d94c402 /accel/kvm/kvm-all.c | |
parent | a0be0c585f5dcc4d50a37f6a20d3d625c5ef3a2c (diff) | |
download | qemu-290dae4678df9f271dbde5cc5cc7648aff136493.zip qemu-290dae4678df9f271dbde5cc5cc7648aff136493.tar.gz qemu-290dae4678df9f271dbde5cc5cc7648aff136493.tar.bz2 |
cpu: move interrupt handling out of translate-common.c
translate-common.c will not be available anymore with --disable-tcg,
so we cannot leave cpu_interrupt_handler there.
Move the TCG-specific handler to accel/tcg/tcg-all.c, and adopt
KVM's handler as the default one, since it works just as well for
Xen and qtest.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/kvm/kvm-all.c')
-rw-r--r-- | accel/kvm/kvm-all.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index cd71e28..2eef7da 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -981,15 +981,6 @@ static MemoryListener kvm_io_listener = { .priority = 10, }; -static void kvm_handle_interrupt(CPUState *cpu, int mask) -{ - cpu->interrupt_request |= mask; - - if (!qemu_cpu_is_self(cpu)) { - qemu_cpu_kick(cpu); - } -} - int kvm_set_irq(KVMState *s, int irq, int level) { struct kvm_irq_level event; @@ -1774,8 +1765,6 @@ static int kvm_init(MachineState *ms) s->many_ioeventfds = kvm_check_many_ioeventfds(); - cpu_interrupt_handler = kvm_handle_interrupt; - return 0; err: |