aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2009-02-11 03:03:39 -0500
committerAvi Kivity <avi@redhat.com>2009-06-10 04:48:22 -0400
commit110c2faeba1f1994bcb1de55b9c31f4147dbfdb6 (patch)
tree09e385a29bd2877a8099284ebbb225cf4da7eb64 /virt/kvm
parente5871be0f5d6847bc9585c997acb1b917c168f03 (diff)
KVM: Update intr delivery func to accept unsigned long* bitmap
Would be used with bit ops, and would be easily extended if KVM_MAX_VCPUS is increased. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/ioapic.h2
-rw-r--r--virt/kvm/irq_comm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/ioapic.h b/virt/kvm/ioapic.h
index f395798bc1d1..7275f87a11cd 100644
--- a/virt/kvm/ioapic.h
+++ b/virt/kvm/ioapic.h
@@ -65,7 +65,7 @@ static inline struct kvm_ioapic *ioapic_irqchip(struct kvm *kvm)
65} 65}
66 66
67struct kvm_vcpu *kvm_get_lowest_prio_vcpu(struct kvm *kvm, u8 vector, 67struct kvm_vcpu *kvm_get_lowest_prio_vcpu(struct kvm *kvm, u8 vector,
68 unsigned long bitmap); 68 unsigned long *bitmap);
69void kvm_ioapic_update_eoi(struct kvm *kvm, int vector, int trigger_mode); 69void kvm_ioapic_update_eoi(struct kvm *kvm, int vector, int trigger_mode);
70int kvm_ioapic_init(struct kvm *kvm); 70int kvm_ioapic_init(struct kvm *kvm);
71int kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level); 71int kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level);
diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c
index e8ff89c3cca7..d4421cd6d663 100644
--- a/virt/kvm/irq_comm.c
+++ b/virt/kvm/irq_comm.c
@@ -55,7 +55,7 @@ void kvm_get_intr_delivery_bitmask(struct kvm_ioapic *ioapic,
55 switch (entry->fields.delivery_mode) { 55 switch (entry->fields.delivery_mode) {
56 case IOAPIC_LOWEST_PRIORITY: 56 case IOAPIC_LOWEST_PRIORITY:
57 vcpu = kvm_get_lowest_prio_vcpu(ioapic->kvm, 57 vcpu = kvm_get_lowest_prio_vcpu(ioapic->kvm,
58 entry->fields.vector, *deliver_bitmask); 58 entry->fields.vector, deliver_bitmask);
59 *deliver_bitmask = 1 << vcpu->vcpu_id; 59 *deliver_bitmask = 1 << vcpu->vcpu_id;
60 break; 60 break;
61 case IOAPIC_FIXED: 61 case IOAPIC_FIXED: