use pci macro in virtio
PATCH 1/1 use pci macro in virtio
--- hw/virtio-pci.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
hw/virtio-pci.c +3 -3
@@ -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,
Signature · 1 line
1.7.1
Quoted 2 lines · hkran
Signed-off-by hkran <[email protected]>
Anthony asked that you put your real name in the Signed-off-by. You don't need to resend the patch, please just reply to this mail with:
Thanks,
Stefan
Quoted 7 lines · Stefan Hajnoczi
Quoted 2 lines · hkran
Signed-off-by hkran <[email protected]>Anthony asked that you put your real name in the Signed-off-by. You don't need to resend the patch, please just reply to this mail with:
Signed-off-by $YOUR_NAME <[email protected]>
Resending would provide a chance to fix checkpatch.pl complaints. :)
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 9 lines · Stefan Hajnoczi
Quoted 1 line · hkran
Signed-off-by hkran<[email protected]>Anthony asked that you put your real name in the Signed-off-by. You don't need to resend the patch, please just reply to this mail with:
Signed-off-by $YOUR_NAME<[email protected]>Thanks,
Stefan
Stefan Hajnoczi
AppliedQuoted 5 lines · hkran
Signed-off-by hkran <[email protected]>--- hw/virtio-pci.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Thanks, applied to the trivial patches -next tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches-next
I have updated author and signed-off-by with what you posted. Also fixed the 80 chars limit that Jan mentioned with checkpatch.pl. Please run checkpatch.pl on all patches you submit.
I wrote up how to automatically run checkpatch.pl here:
http://blog.vmsplice.net/2011/03/how-to-automatically-run-checkpatchpl.html
Stefan