Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255274
b: refs/heads/master
c: a2be65f
h: refs/heads/master
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk committed Jul 20, 2011
1 parent 39ba918 commit 10b9b5d
Show file tree
Hide file tree
Showing 2 changed files with 9 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: fd5b221b348adf63d413de9adad030e4f13664b7
refs/heads/master: a2be65fd363831502afdf0babdf48149b3959cde
8 changes: 8 additions & 0 deletions trunk/drivers/xen/xen-pciback/pciback_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ void pciback_reset_device(struct pci_dev *dev)

/* Disable devices (but not bridges) */
if (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) {
#ifdef CONFIG_PCI_MSI
/* The guest could have been abruptly killed without
* disabling MSI/MSI-X interrupts.*/
if (dev->msix_enabled)
pci_disable_msix(dev);
if (dev->msi_enabled)
pci_disable_msi(dev);
#endif
pci_disable_device(dev);

pci_write_config_word(dev, PCI_COMMAND, 0);
Expand Down

0 comments on commit 10b9b5d

Please sign in to comment.