qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] use PCI MACRO in virtio-pci
@ 2011-12-07  9:39 hkran
  2011-12-07 10:18 ` Stefan Hajnoczi
  2011-12-08  2:30 ` Anthony Liguori
  0 siblings, 2 replies; 5+ messages in thread
From: hkran @ 2011-12-07  9:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori

Signed-off-by: hkran <hkran@linux.vnet.ibm.com>
---
  hw/virtio-pci.c |    6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index c665f5c..f8ee772 100644
--- a/hw/virtio-pci.c
+++ b/hw/virtio-pci.c
@@ -627,9 +627,9 @@ void virtio_init_pci(VirtIOPCIProxy *proxy, 
VirtIODevice *vdev)
      if (proxy->class_code) {
          pci_config_set_class(config, proxy->class_code);
      }
-    pci_set_word(config + 0x2c, pci_get_word(config + PCI_VENDOR_ID));
-    pci_set_word(config + 0x2e, vdev->device_id);
-    config[0x3d] = 1;
+    pci_set_word(config + PCI_SUBSYSTEM_VENDOR_ID, pci_get_word(config 
+ PCI_VENDOR_ID));
+    pci_set_word(config + PCI_SUBSYSTEM_ID, vdev->device_id);
+    config[PCI_INTERRUPT_PIN] = 1;

      memory_region_init(&proxy->msix_bar, "virtio-msix", 4096);
      if (vdev->nvectors && !msix_init(&proxy->pci_dev, vdev->nvectors,
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-09  3:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07  9:39 [Qemu-devel] [PATCH] use PCI MACRO in virtio-pci hkran
2011-12-07 10:18 ` Stefan Hajnoczi
2011-12-08  2:28   ` hkran
2011-12-08  2:30 ` Anthony Liguori
2011-12-09  3:32   ` hkran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).