* [PATCH] qemu-kvm: Fix INTx assigned device can't work bug
@ 2009-11-24 10:17 Sheng Yang
2009-11-25 13:00 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Sheng Yang @ 2009-11-24 10:17 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: kvm, Sheng Yang, Gerd Hoffmann
Commit 6b5bbd04 "qdev-ify device assignment" forgot to put assigned devices
to "devs" list. So when IRQ routing changed in pci configure space, calling to
assigned_dev_update_irqs() won't update device guest IRQ, then assigned INTx
devices fail to work.
(OK, I am now aware of the fact that people don't use INTx these days...)
CC: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
---
hw/device-assignment.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index 516cf14..64f3dc2 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -1180,6 +1180,7 @@ static int assigned_initfn(struct PCIDevice *pci_dev)
goto assigned_out;
assigned_dev_load_option_rom(dev);
+ QLIST_INSERT_HEAD(&devs, dev, next);
return 0;
assigned_out:
--
1.5.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] qemu-kvm: Fix INTx assigned device can't work bug
2009-11-24 10:17 [PATCH] qemu-kvm: Fix INTx assigned device can't work bug Sheng Yang
@ 2009-11-25 13:00 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2009-11-25 13:00 UTC (permalink / raw)
To: Sheng Yang; +Cc: Avi Kivity, kvm, Gerd Hoffmann
On Tue, Nov 24, 2009 at 06:17:42PM +0800, Sheng Yang wrote:
> Commit 6b5bbd04 "qdev-ify device assignment" forgot to put assigned devices
> to "devs" list. So when IRQ routing changed in pci configure space, calling to
> assigned_dev_update_irqs() won't update device guest IRQ, then assigned INTx
> devices fail to work.
>
> (OK, I am now aware of the fact that people don't use INTx these days...)
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-25 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24 10:17 [PATCH] qemu-kvm: Fix INTx assigned device can't work bug Sheng Yang
2009-11-25 13:00 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox