Changes for 2017-11-05
The following changes since commit b33afc415622e5eb26e0f14fd27eb86e32a5472e:
Merge remote-tracking branch 'remotes/stsquad/tags/pull-ci-updates-for-softfreeze-021117-2' into staging (2017-11-03 10:08:34 +0000)
are available in the Git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 20bc94a2b8449b7700b6bfa25a87ce2320a1c649:
build: disable -Wmissing-braces on older compilers (2017-11-05 14:52:10 +0100)
(I see some brokenness in check-qtest-sparc, but not caused by my two patches of course).
----------------------------------------------------------------
* Remove legacy KVM PCI device assignment
* Fix qemu-pr-helper.c compilation on older compilers
----------------------------------------------------------------
Paolo Bonzini (2):
pci-assign: Remove
build: disable -Wmissing-braces on older compilers
configure | 13 +
docs/qdev-device-use.txt | 12 +-
hw/i386/Makefile.objs | 1 -
hw/i386/kvm/Makefile.objs | 2 +-
hw/i386/kvm/pci-assign.c | 1887 --------------------
hw/xen/Makefile.objs | 1 +
.../xen_pt_load_rom.c} | 4 +-
include/hw/pci/pci-assign.h | 27 -
qdev-monitor.c | 1 -
scripts/device-crash-test | 2 -
10 files changed, 19 insertions(+), 1931 deletions(-)
delete mode 100644 hw/i386/kvm/pci-assign.c
rename hw/{i386/pci-assign-load-rom.c => xen/xen_pt_load_rom.c} (96%)
delete mode 100644 include/hw/pci/pci-assign.hSignature · 1 line
2.14.3
[Qemu-devel] [PULL 2/2] build: disable -Wmissing-braces on older compilers
GCC 4.9 and newer stopped warning for missing braces around the "universal" C zero initializer {0}. One such initializer sneaked into scsi/qemu-pr-helper.c and is breaking the build with such older GCC versions.
Detect the lack of support for the idiom, and disable the warning in that case.
--- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+)
configure +13 -0
@@ -1669,6 +1669,19 @@ EOF fi fi +# Disable -Wmissing-braces on older compilers that warn even for +# the "universal" C zero initializer {0}. +cat > $TMPC << EOF +struct { + int a[2]; +} x = {0}; +EOF +if compile_object "-Werror" "" ; then + : +else + QEMU_CFLAGS="$QEMU_CFLAGS -Wno-missing-braces" +fi + # Workaround for http://gcc.gnu.org/PR55489. Happens with -fPIE/-fPIC and # large functions that use global variables. The bug is in all releases of # GCC, but it became particularly acute in 4.6.x and 4.7.x. It is fixed in
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 1/2] pci-assign: Remove
In reply to Paolo BonziniLegacy PCI device assignment has been removed from Linux in 4.12, and had been deprecated 2 years ago there. We can remove it from QEMU as well.
The ROM loading code was shared with Xen PCI passthrough, so move it to hw/xen.
---
docs/qdev-device-use.txt | 12 +-
hw/i386/Makefile.objs | 1 -
hw/i386/kvm/Makefile.objs | 2 +-
hw/i386/kvm/pci-assign.c | 1887 --------------------
hw/xen/Makefile.objs | 1 +
.../xen_pt_load_rom.c} | 4 +-
include/hw/pci/pci-assign.h | 27 -
qdev-monitor.c | 1 -
scripts/device-crash-test | 2 -
9 files changed, 6 insertions(+), 1931 deletions(-)
delete mode 100644 hw/i386/kvm/pci-assign.c
rename hw/{i386/pci-assign-load-rom.c => xen/xen_pt_load_rom.c} (96%)
delete mode 100644 include/hw/pci/pci-assign.hdocs/qdev-device-use.txt +2 -10
@@ -366,17 +366,9 @@ bus=PCI-BUS,addr=DEVFN to control the PCI device address, as usual. === Host Device Assignment === QEMU supports assigning host PCI devices (qemu-kvm only at this time) -and host USB devices. +and host USB devices. PCI devices can only be assigned with -device: -The old way to assign a host PCI device is - - -pcidevice host=ADDR,dma=none,id=ID - -The new way is - - -device pci-assign,host=ADDR,iommu=IOMMU,id=ID - -The old dma=none becomes iommu=off with -device. + -device vfio-pci,host=ADDR,id=ID The old way to assign a host USB device is
hw/i386/Makefile.objs +0 -1
@@ -8,4 +8,3 @@ obj-$(CONFIG_XEN) += ../xenpv/ xen/ obj-y += kvmvapic.o obj-y += acpi-build.o -obj-y += pci-assign-load-rom.o
hw/i386/kvm/Makefile.objs +1 -1
@@ -1 +1 @@ -obj-y += clock.o apic.o i8259.o ioapic.o i8254.o pci-assign.o +obj-y += clock.o apic.o i8259.o ioapic.o i8254.o
hw/i386/kvm/pci-assign.c deleted +0 -1887
1,887 lines not on this page · raw message
hw/xen/Makefile.objs +1 -0
@@ -3,3 +3,4 @@ common-obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o xen_pvdev.o xen-common obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_graphics.o xen_pt_msi.o +obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt_load_rom.o
hw/xen/xen_pt_load_rom.c renamed from hw/i386/pci-assign-load-rom.c +2 -2
@@ -12,7 +12,7 @@#include "qemu/range.h" #include "sysemu/sysemu.h" #include "hw/pci/pci.h" -#include "hw/pci/pci-assign.h" +#include "xen_pt.h" /* * Scan the assigned devices for the devices that have an option ROM, and then
@@ -80,7 +80,7 @@ close_rom:fseek (fp,0 ,SEEK_SET ); val =0 ;if (!fwrite (&val,1 ,1 , fp)) { -DEBUG ("%s\n" ,"Failed to disable pci-sysfs rom file" ); +XEN_PT_WARN (dev,"%s\n" ,"Failed to disable pci-sysfs rom file" ); }fclose (fp);
include/hw/pci/pci-assign.h deleted +0 -27
@@ -1,27 +0,0 @@ -/* -* This work is licensed under the terms of the GNU GPL, version 2. See -* the COPYING file in the top-level directory. -* -* Just split from hw/i386/kvm/pci-assign.c. -*/ -#ifndef PCI_ASSIGN_H -#define PCI_ASSIGN_H - -#include "hw/pci/pci.h" - -//#define DEVICE_ASSIGNMENT_DEBUG - -#ifdef DEVICE_ASSIGNMENT_DEBUG -#define DEBUG (fmt, ...) \ - do { \ - fprintf(stderr, "%s: " fmt, __func__ , __VA_ARGS__); \ - } while (0) -#else -#define DEBUG (fmt, ...) -#endif - -void *pci_assign_dev_load_option_rom (PCIDevice *dev,struct Object *owner, -int *size,unsigned int domain, -unsigned int bus,unsigned int slot, -unsigned int function); -#endif /* PCI_ASSIGN_H */
qdev-monitor.c +0 -1
@@ -46,7 +46,6 @@ typedef struct QDevAliasstatic const QDevAlias qdev_alias_table[] = { {"e1000" ,"e1000-82540em" }, {"ich9-ahci" ,"ahci" }, - {"kvm-pci-assign" ,"pci-assign" }, {"lsi53c895a" ,"lsi" }, {"virtio-9p-ccw" ,"virtio-9p" ,QEMU_ARCH_S390X }, {"virtio-9p-pci" ,"virtio-9p" ,QEMU_ARCH_ALL & ~QEMU_ARCH_S390X },
scripts/device-crash-test +0 -2
@@ -102,7 +102,6 @@ ERROR_WHITELIST = [ {'device':'ivshmem', 'expected':True}, # You must specify either 'shm' or 'chardev' {'device':'ivshmem-doorbell', 'expected':True}, # You must specify a 'chardev' {'device':'ivshmem-plain', 'expected':True}, # You must specify a 'memdev' - {'device':'kvm-pci-assign', 'expected':True}, # no host device specified {'device':'loader', 'expected':True}, # please include valid arguments {'device':'nand', 'expected':True}, # Unsupported NAND block size 0x1 {'device':'nvdimm', 'expected':True}, # 'memdev' property is not set
@@ -165,7 +164,6 @@ ERROR_WHITELIST = [ # KVM-specific devices shouldn't be tried without accel=kvm: {'accel':'(?!kvm).*', 'device':'kvmclock', 'expected':True}, - {'accel':'(?!kvm).*', 'device':'kvm-pci-assign', 'expected':True}, # xen-specific machines and devices: {'accel':'(?!xen).*', 'machine':'xen.*', 'expected':True},
Signature · 1 line
2.14.3
Peter Maydell
AppliedQuoted 10 lines · Paolo Bonzini
The following changes since commit
b33afc415622e5eb26e0f14fd27eb86e32a5472e:Merge remote-tracking branch 'remotes/stsquad/tags/pull-ci-updates-for-softfreeze-021117-2' into staging (2017-11-03 10:08:34 +0000)
are available in the Git repository at:
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
20bc94a2b8449b7700b6bfa25a87ce2320a1c649:
Quoted 9 lines
build: disable -Wmissing-braces on older compilers (2017-11-05 14:52:10 +0100)
(I see some brokenness in check-qtest-sparc, but not caused by my two patches of course).
----------------------------------------------------------------
* Remove legacy KVM PCI device assignment
* Fixqemu-pr-helper.ccompilation on older compilers
Applied, thanks.
-- PMM