Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156589
b: refs/heads/master
c: 5116d8f
h: refs/heads/master
i:
  156587: e7a051e
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Avi Kivity committed Aug 5, 2009
1 parent 54aece6 commit 025a088
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3bc2f91b4761a8d9f96bea167fef2f8c00dea54
refs/heads/master: 5116d8f6b977970ebefc1932c0f313163a6ec91f
1 change: 1 addition & 0 deletions trunk/include/linux/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ struct kvm_memory_slot {

struct kvm_kernel_irq_routing_entry {
u32 gsi;
u32 type;
int (*set)(struct kvm_kernel_irq_routing_entry *e,
struct kvm *kvm, int level);
union {
Expand Down
4 changes: 3 additions & 1 deletion trunk/virt/kvm/irq_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin)
unsigned gsi = pin;

list_for_each_entry(e, &kvm->irq_routing, link)
if (e->irqchip.irqchip == irqchip &&
if (e->type == KVM_IRQ_ROUTING_IRQCHIP &&
e->irqchip.irqchip == irqchip &&
e->irqchip.pin == pin) {
gsi = e->gsi;
break;
Expand Down Expand Up @@ -259,6 +260,7 @@ static int setup_routing_entry(struct kvm_kernel_irq_routing_entry *e,
int delta;

e->gsi = ue->gsi;
e->type = ue->type;
switch (ue->type) {
case KVM_IRQ_ROUTING_IRQCHIP:
delta = 0;
Expand Down

0 comments on commit 025a088

Please sign in to comment.