* [Qemu-devel] [PATCH] use pci macro in virtio
@ 2011-12-08 5:49 hkran
2011-12-08 10:17 ` Stefan Hajnoczi
2011-12-09 10:56 ` Stefan Hajnoczi
0 siblings, 2 replies; 5+ messages in thread
From: hkran @ 2011-12-08 5:49 UTC (permalink / raw)
To: qemu-devel; +Cc: hkran
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
* Re: [Qemu-devel] [PATCH] use pci macro in virtio
2011-12-08 5:49 [Qemu-devel] [PATCH] use pci macro in virtio hkran
@ 2011-12-08 10:17 ` Stefan Hajnoczi
2011-12-08 14:27 ` Jan Kiszka
2011-12-09 3:24 ` hkran
2011-12-09 10:56 ` Stefan Hajnoczi
1 sibling, 2 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2011-12-08 10:17 UTC (permalink / raw)
To: hkran; +Cc: qemu-devel
On Thu, Dec 8, 2011 at 5:49 AM, hkran <hkran@linux.vnet.ibm.com> wrote:
>
> Signed-off-by: hkran <hkran@linux.vnet.ibm.com>
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 <hkran@linux.vnet.ibm.com>
Thanks,
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] use pci macro in virtio
2011-12-08 10:17 ` Stefan Hajnoczi
@ 2011-12-08 14:27 ` Jan Kiszka
2011-12-09 3:24 ` hkran
1 sibling, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2011-12-08 14:27 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: hkran, qemu-devel
On 2011-12-08 11:17, Stefan Hajnoczi wrote:
> On Thu, Dec 8, 2011 at 5:49 AM, hkran <hkran@linux.vnet.ibm.com> wrote:
>>
>> Signed-off-by: hkran <hkran@linux.vnet.ibm.com>
>
> 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 <hkran@linux.vnet.ibm.com>
Resending would provide a chance to fix checkpatch.pl complaints. :)
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] use pci macro in virtio
2011-12-08 10:17 ` Stefan Hajnoczi
2011-12-08 14:27 ` Jan Kiszka
@ 2011-12-09 3:24 ` hkran
1 sibling, 0 replies; 5+ messages in thread
From: hkran @ 2011-12-09 3:24 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: qemu-devel
On 12/08/2011 06:17 PM, Stefan Hajnoczi wrote:
> On Thu, Dec 8, 2011 at 5:49 AM, hkran<hkran@linux.vnet.ibm.com> wrote:
>> Signed-off-by: hkran<hkran@linux.vnet.ibm.com>
> 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<hkran@linux.vnet.ibm.com>
>
> Thanks,
> Stefan
>
Signed-off-by: Hui Kai Ran<hkran@linux.vnet.ibm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] use pci macro in virtio
2011-12-08 5:49 [Qemu-devel] [PATCH] use pci macro in virtio hkran
2011-12-08 10:17 ` Stefan Hajnoczi
@ 2011-12-09 10:56 ` Stefan Hajnoczi
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2011-12-09 10:56 UTC (permalink / raw)
To: hkran; +Cc: qemu-devel
On Thu, Dec 08, 2011 at 01:49:13PM +0800, hkran wrote:
>
> Signed-off-by: hkran <hkran@linux.vnet.ibm.com>
> ---
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-09 10:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08 5:49 [Qemu-devel] [PATCH] use pci macro in virtio hkran
2011-12-08 10:17 ` Stefan Hajnoczi
2011-12-08 14:27 ` Jan Kiszka
2011-12-09 3:24 ` hkran
2011-12-09 10:56 ` Stefan Hajnoczi
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).