diff options
author | Joerg Roedel <jroedel@suse.de> | 2016-02-29 16:04:44 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-03 14:36:18 +0100 |
commit | 9daa50076f585854f0040aa8403eac020d6f5d64 (patch) | |
tree | 0989ff6a2ff82271d2f79df0eb7f386944e47461 /arch/x86/kvm/lapic.c | |
parent | 9e4aabe2bb3454c83dac8139cf9974503ee044db (diff) | |
download | talos-obmc-linux-9daa50076f585854f0040aa8403eac020d6f5d64.tar.gz talos-obmc-linux-9daa50076f585854f0040aa8403eac020d6f5d64.zip |
kvm: x86: Track irq vectors in ioapic->rtc_status.dest_map
This allows backtracking later in case the rtc irq has been
moved to another vcpu/vector.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r-- | arch/x86/kvm/lapic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index e085695e6b5a..d9ae1ce2a6a0 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -914,8 +914,10 @@ static int __apic_accept_irq(struct kvm_lapic *apic, int delivery_mode, result = 1; - if (dest_map) + if (dest_map) { __set_bit(vcpu->vcpu_id, dest_map->map); + dest_map->vectors[vcpu->vcpu_id] = vector; + } if (apic_test_vector(vector, apic->regs + APIC_TMR) != !!trig_mode) { if (trig_mode) |