* [stable,master] [PATCH] qemu-kvm: Don't break device assignment INTx
@ 2011-03-23 17:38 Alex Williamson
2011-03-24 7:13 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Alex Williamson @ 2011-03-23 17:38 UTC (permalink / raw)
To: kvm; +Cc: alex.williamson, jan.kiszka, franxisco1988, extmaillist,
yongjie.ren
Commit 1a836445 moved pci.o from a target object to a generic hardware
object, which drops CONFIG_KVM_DEVICE_ASSIGNMENT. This results in
the device assignment kludge to update INTx vectors on interrupt
routing changes never getting called, which means device assignment
level triggered interrupts don't work. This mostly reverts that
commit, but makes pci.o conditional on CONFIG_PCI, which hopefully
addresses the original intent of the change. Fixes:
https://bugs.launchpad.net/qemu/+bug/730441
Reported-by: Yongjie Ren <yongjie.ren@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
Makefile.objs | 2 +-
Makefile.target | 1 +
hw/pci.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile.objs b/Makefile.objs
index d1a2264..6080db0 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -172,7 +172,7 @@ hw-obj-y =
hw-obj-y += loader.o
hw-obj-$(CONFIG_VIRTIO) += virtio.o virtio-console.o
hw-obj-y += fw_cfg.o
-hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
+hw-obj-$(CONFIG_PCI) += pci_bridge.o
hw-obj-$(CONFIG_PCI) += msix.o msi.o
hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
diff --git a/Makefile.target b/Makefile.target
index fdbdc6c..95597e7 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -199,6 +199,7 @@ obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o vl.o balloon.o
# virtio has to be here due to weird dependency between PCI and virtio-net.
# need to fix this properly
obj-$(CONFIG_NO_PCI) += pci-stub.o
+obj-$(CONFIG_PCI) += pci.o
obj-$(CONFIG_VIRTIO) += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
obj-y += vhost_net.o
diff --git a/hw/pci.c b/hw/pci.c
index 730df5f..51bf98d 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -29,8 +29,8 @@
#include "net.h"
#include "sysemu.h"
#include "loader.h"
+#include "qemu-kvm.h"
#include "hw/pc.h"
-#include "kvm.h"
#include "device-assignment.h"
#include "qemu-objects.h"
#include "range.h"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [stable,master] [PATCH] qemu-kvm: Don't break device assignment INTx
2011-03-23 17:38 [stable,master] [PATCH] qemu-kvm: Don't break device assignment INTx Alex Williamson
@ 2011-03-24 7:13 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2011-03-24 7:13 UTC (permalink / raw)
To: Alex Williamson; +Cc: kvm, franxisco1988, extmaillist, yongjie.ren
[-- Attachment #1: Type: text/plain, Size: 2434 bytes --]
On 2011-03-23 18:38, Alex Williamson wrote:
> Commit 1a836445 moved pci.o from a target object to a generic hardware
> object, which drops CONFIG_KVM_DEVICE_ASSIGNMENT. This results in
> the device assignment kludge to update INTx vectors on interrupt
> routing changes never getting called, which means device assignment
> level triggered interrupts don't work. This mostly reverts that
> commit, but makes pci.o conditional on CONFIG_PCI, which hopefully
> addresses the original intent of the change. Fixes:
What a mess - but a still required one.
>
> https://bugs.launchpad.net/qemu/+bug/730441
>
> Reported-by: Yongjie Ren <yongjie.ren@intel.com>
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---
>
> Makefile.objs | 2 +-
> Makefile.target | 1 +
> hw/pci.c | 2 +-
> 3 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile.objs b/Makefile.objs
> index d1a2264..6080db0 100644
> --- a/Makefile.objs
> +++ b/Makefile.objs
> @@ -172,7 +172,7 @@ hw-obj-y =
> hw-obj-y += loader.o
> hw-obj-$(CONFIG_VIRTIO) += virtio.o virtio-console.o
> hw-obj-y += fw_cfg.o
> -hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
> +hw-obj-$(CONFIG_PCI) += pci_bridge.o
> hw-obj-$(CONFIG_PCI) += msix.o msi.o
> hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
> hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
> diff --git a/Makefile.target b/Makefile.target
> index fdbdc6c..95597e7 100644
> --- a/Makefile.target
> +++ b/Makefile.target
> @@ -199,6 +199,7 @@ obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o vl.o balloon.o
> # virtio has to be here due to weird dependency between PCI and virtio-net.
> # need to fix this properly
> obj-$(CONFIG_NO_PCI) += pci-stub.o
> +obj-$(CONFIG_PCI) += pci.o
> obj-$(CONFIG_VIRTIO) += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
> obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
> obj-y += vhost_net.o
> diff --git a/hw/pci.c b/hw/pci.c
> index 730df5f..51bf98d 100644
> --- a/hw/pci.c
> +++ b/hw/pci.c
> @@ -29,8 +29,8 @@
> #include "net.h"
> #include "sysemu.h"
> #include "loader.h"
> +#include "qemu-kvm.h"
> #include "hw/pc.h"
> -#include "kvm.h"
> #include "device-assignment.h"
> #include "qemu-objects.h"
> #include "range.h"
However, this hunk remains obsolete (kvm.h includes qemu-kvm.h), just
drop it.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-24 7:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 17:38 [stable,master] [PATCH] qemu-kvm: Don't break device assignment INTx Alex Williamson
2011-03-24 7:13 ` Jan Kiszka
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).