Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360729
b: refs/heads/master
c: 884ac29
h: refs/heads/master
i:
  360727: f5f9609
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk committed Mar 1, 2013
1 parent 979e6fd commit f2567a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c79c49826270b8b0061b2fca840fc3f013c8a78a
refs/heads/master: 884ac2978a295b7df3c4a686d3bff6932bbbb460
9 changes: 9 additions & 0 deletions trunk/arch/x86/pci/xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
struct msi_desc *msidesc;
int *v;

if (type == PCI_CAP_ID_MSI && nvec > 1)
return 1;

v = kzalloc(sizeof(int) * max(1, nvec), GFP_KERNEL);
if (!v)
return -ENOMEM;
Expand Down Expand Up @@ -220,6 +223,9 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
struct msi_desc *msidesc;
struct msi_msg msg;

if (type == PCI_CAP_ID_MSI && nvec > 1)
return 1;

list_for_each_entry(msidesc, &dev->msi_list, list) {
__read_msi_msg(msidesc, &msg);
pirq = MSI_ADDR_EXT_DEST_ID(msg.address_hi) |
Expand Down Expand Up @@ -263,6 +269,9 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
int ret = 0;
struct msi_desc *msidesc;

if (type == PCI_CAP_ID_MSI && nvec > 1)
return 1;

list_for_each_entry(msidesc, &dev->msi_list, list) {
struct physdev_map_pirq map_irq;
domid_t domid;
Expand Down

0 comments on commit f2567a9

Please sign in to comment.