qemu-kvm: move msi-x to Makefile.target
PATCH 1/1 qemu-kvm: move msi-x to Makefile.target
KVM interrupt injection support depends on target, so MSI-X needs to be in Makefile.target for interrupt injection to work. We'll be able to clean it up once interrupt injection is upstream.
This fixes virtio breakage with kvm caused by 263b7947327e13.
--- Makefile.hw | 4 +++- Makefile.target | 3 +++ 2 files changed, 6 insertions(+), 1 deletions(-)
Makefile.hw +3 -1
@@ -22,7 +22,9 @@ obj-y += m48t59.o escc.o # PCI watchdog devices obj-y += wdt_i6300esb.o -obj-y += msix.o +# MSI-X depends on kvm for interrupt injection, +# so moved it from Makefile.hw to Makefile.target for now +# obj-y += msix.o # PCI network cards obj-y += ne2000.o
Makefile.target +3 -0
@@ -162,6 +162,9 @@ obj-y = vl.o monitor.o pci.o isa_mmio.o machine.o \ # need to fix this properly obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o virtio-pci.o obj-$(CONFIG_KVM) += kvm.o kvm-all.o +# MSI-X depends on kvm for interrupt injection, +# so moved it from Makefile.hw to Makefile.target for now +obj-y += msix.o LIBS+=-lz
Signature · 1 line
1.6.5.rc2
Avi Kivity
AppliedQuoted 8 lines · Michael S. Tsirkin
KVM interrupt injection support depends on target, so MSI-X needs to be in Makefile.target for interrupt injection to work. We'll be able to clean it up once interrupt injection is upstream.
This fixes virtio breakage with kvm caused by
263b7947327e13.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 11 lines · Avi Kivity
Quoted 7 lines · Michael S. Tsirkin
KVM interrupt injection support depends on target, so MSI-X needs to be in Makefile.target for interrupt injection to work. We'll be able to clean it up once interrupt injection is upstream.
This fixes virtio breakage with kvm caused by
263b7947327e13.Applied, thanks.
Er, this doesn't build:
In file included from /home/avi/qemu-kvm/hw/msix.c:18:/home/avi/qemu-kvm/qemu-kvm.h:1234: error: field ‘kvm_sw_breakpoints’ has incomplete type
Dropped.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 13 lines · Avi Kivity
Quoted 11 lines · Avi Kivity
Quoted 7 lines · Michael S. Tsirkin
KVM interrupt injection support depends on target, so MSI-X needs to be in Makefile.target for interrupt injection to work. We'll be able to clean it up once interrupt injection is upstream.
This fixes virtio breakage with kvm caused by
263b7947327e13.Applied, thanks.
Quoted 7 lines
Er, this doesn't build:
In file included from
/home/avi/qemu-kvm/hw/msix.c:18:/home/avi/qemu-kvm/qemu-kvm.h:1234: error: field ‘kvm_sw_breakpoints’ has incomplete typeDropped.
And re-applied, after seeing your previous fix.
Signature · 1 line
error compiling committee.c: too many arguments to function