summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/ioapic.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2016-02-29 16:04:44 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-03 14:36:18 +0100
commit9daa50076f585854f0040aa8403eac020d6f5d64 (patch)
tree0989ff6a2ff82271d2f79df0eb7f386944e47461 /arch/x86/kvm/ioapic.h
parent9e4aabe2bb3454c83dac8139cf9974503ee044db (diff)
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/ioapic.h')
-rw-r--r--arch/x86/kvm/ioapic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/ioapic.h b/arch/x86/kvm/ioapic.h
index af729890f6f5..7d2692a49657 100644
--- a/arch/x86/kvm/ioapic.h
+++ b/arch/x86/kvm/ioapic.h
@@ -41,7 +41,14 @@ struct kvm_vcpu;
#endif
struct dest_map {
+ /* vcpu bitmap where IRQ has been sent */
DECLARE_BITMAP(map, KVM_MAX_VCPUS);
+
+ /*
+ * Vector sent to a given vcpu, only valid when
+ * the vcpu's bit in map is set
+ */
+ u8 vectors[KVM_MAX_VCPUS];
};