Trivial branch patches
The following changes since commit a4f667b6714916683408b983cfe0a615a725775f:
Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20190521-3' into staging (2019-05-21 16:30:13 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/trivial-branch-pull-request
for you to fetch changes up to 2d9574bdbed69b374116c59259f6bd14f7dfad7f:
pci: msix: move 'MSIX_CAP_LENGTH' to header file (2019-05-22 17:35:27 +0200)
----------------------------------------------------------------
typo fixes, TYPE_XXX usage cleanup, comments update, virtio-mmio trace functions cleanup
----------------------------------------------------------------
Boxuan Li (1):
hw/virtio/virtio-mmio: Convert DPRINTF to trace and log
Greg Kurz (1):
migration: Fix typo in migrate_add_blocker() error message
Li Qiang (4):
vfio: pci: make "vfio-pci-nohotplug" as MACRO
hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
vfio: platform: fix a typo
pci: msix: move 'MSIX_CAP_LENGTH' to header file
Markus Armbruster (1):
configure: Fix spelling of sdl-image in --help
Philippe Mathieu-Daudé (2):
roms: Correct the EDK2_BASETOOLS_OPTFLAGS variable description
roms: List and describe the Makefile 'clean' rule
configure | 2 +- hw/pci/msix.c | 2 -- hw/vfio/amd-xgbe.c | 2 +- hw/vfio/ap.c | 2 +- hw/vfio/calxeda-xgmac.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/pci.c | 8 ++++---- hw/vfio/platform.c | 6 +++--- hw/virtio/trace-events | 7 +++++++ hw/virtio/virtio-mmio.c | 44 ++++++++++++++++++++--------------------- include/hw/pci/msix.h | 2 ++ migration/migration.c | 2 +- roms/Makefile | 6 ++++-- 13 files changed, 47 insertions(+), 40 deletions(-)
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 4/9] migration: Fix typo in migrate_add_blocker() error message
From: Greg Kurz <[email protected]>
Message-Id: <[email protected]>
--- migration/migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
migration/migration.c +1 -1
@@ -1728,7 +1728,7 @@ int migrate_add_blocker(Error *reason, Error **errp)if (only_migratable) {error_propagate_prepend (errp,error_copy (reason),"disallowing migration blocker " -"(--only_migratable) for: " ); +"(--only-migratable) for: " );return -EACCES ; }
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 5/9] configure: Fix spelling of sdl-image in --help
In reply to Laurent VivierFrom: Markus Armbruster <[email protected]>
Message-Id: <[email protected]>
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
@@ -1745,7 +1745,7 @@ disabled with --disable-FEATURE, default is enabled if available: gcrypt libgcrypt cryptography support auth-pam PAM access control sdl SDL UI - sdl_image SDL Image support for icons + sdl-image SDL Image support for icons gtk gtk UI vte vte support for the gtk UI curses curses UI
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 2/9] roms: Correct the EDK2_BASETOOLS_OPTFLAGS variable description
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
In commit 1cab464136b4 we incorrectly described the EDK2_BASETOOLS_OPTFLAGS can pass CPPFLAGS and CFLAGS options to the EDK2 build tools, but it only expands the CFLAGS (not to the CPPFLAGS).
Update the description to be more accurate.
Message-Id: <[email protected]>
--- roms/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
roms/Makefile +2 -2
@@ -121,8 +121,8 @@ build-efi-roms: build-pxe-roms $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \ $(patsubst %,bin-x86_64-efi/%.efidrv,$(pxerom_targets)) -# Build scripts can pass compiler/linker flags to the EDK2 build tools -# via the EDK2_BASETOOLS_OPTFLAGS (CPPFLAGS and CFLAGS) and +# Build scripts can pass compiler/linker flags to the EDK2 +# build tools via the EDK2_BASETOOLS_OPTFLAGS (CFLAGS) and # EDK2_BASETOOLS_LDFLAGS (LDFLAGS) environment variables. # # Example:
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 6/9] vfio: pci: make "vfio-pci-nohotplug" as MACRO
In reply to Laurent VivierFrom: Li Qiang <[email protected]>
The QOMConventions recommends we should use TYPE_FOO for a TypeInfo's name. Though "vfio-pci-nohotplug" is not used in other parts, for consistency we should make this change.
Message-Id: <[email protected]>
--- hw/vfio/pci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
hw/vfio/pci.c +4 -2
@@ -40,6 +40,8 @@#define TYPE_VFIO_PCI "vfio-pci"#define PCI_VFIO (obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI) +#define TYPE_VIFO_PCI_NOHOTPLUG "vfio-pci-nohotplug" +static void vfio_disable_interrupts (VFIOPCIDevice *vdev);static void vfio_mmap_set_enabled (VFIOPCIDevice *vdev,bool enabled);
@@ -3304,8 +3306,8 @@ static void vfio_pci_nohotplug_dev_class_init(ObjectClass *klass, void *data) }static const TypeInfo vfio_pci_nohotplug_dev_info = { - .name ="vfio-pci-nohotplug" , - .parent ="vfio-pci" , + .name =TYPE_VIFO_PCI_NOHOTPLUG , + .parent =TYPE_VFIO_PCI , .instance_size =sizeof (VFIOPCIDevice), .class_init = vfio_pci_nohotplug_dev_class_init, };
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 3/9] roms: List and describe the Makefile 'clean' rule
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <[email protected]>
--- roms/Makefile | 2 ++ 1 file changed, 2 insertions(+)
roms/Makefile +2 -0
@@ -62,6 +62,8 @@ default: @echo " u-boot.e500 -- update u-boot.e500" @echo " u-boot.sam460 -- update u-boot.sam460" @echo " efi -- update UEFI (edk2) platform firmware" + @echo " clean -- delete the files generated by the previous" \ + "build targets" bios: build-seabios-config-seabios-128k build-seabios-config-seabios-256k cp seabios/builds/seabios-128k/bios.bin ../pc-bios/bios.bin
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 1/9] hw/virtio/virtio-mmio: Convert DPRINTF to trace and log
In reply to Laurent VivierFrom: Boxuan Li <[email protected]>
Use traces for debug message and qemu_log_mask for errors.
Message-Id: <[email protected]>
--- hw/virtio/trace-events | 7 +++++++ hw/virtio/virtio-mmio.c | 44 ++++++++++++++++++++--------------------- 2 files changed, 28 insertions(+), 23 deletions(-)
hw/virtio/trace-events +7 -0
@@ -46,3 +46,10 @@ virtio_balloon_handle_output(const char *name, uint64_t gpa) "section name: %s g virtio_balloon_get_config(uint32_t num_pages, uint32_t actual) "num_pages: %d actual: %d" virtio_balloon_set_config(uint32_t actual, uint32_t oldactual) "actual: %d oldactual: %d" virtio_balloon_to_target(uint64_t target, uint32_t num_pages) "balloon target: 0x%"PRIx64" num_pages: %d" + +# virtio-mmio.c +virtio_mmio_read(uint64_t offset) "virtio_mmio_read offset 0x%" PRIx64 +virtio_mmio_write_offset(uint64_t offset, uint64_t value) "virtio_mmio_write offset 0x%" PRIx64 " value 0x%" PRIx64 +virtio_mmio_guest_page(uint64_t size, int shift) "guest page size 0x%" PRIx64 " shift %d" +virtio_mmio_queue_write(uint64_t value, int max_size) "mmio_queue write 0x%" PRIx64 " max %d" +virtio_mmio_setting_irq(int level) "virtio_mmio setting IRQ %d"
hw/virtio/virtio-mmio.c +21 -23
109 lines not on this page · raw message
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 9/9] pci: msix: move 'MSIX_CAP_LENGTH' to header file
In reply to Laurent VivierFrom: Li Qiang <[email protected]>
'MSIX_CAP_LENGTH' is defined in two .c file. Move it to hw/pci/msix.h file to reduce duplicated code.
Message-Id: <[email protected]>
--- hw/pci/msix.c | 2 -- hw/vfio/pci.c | 2 -- include/hw/pci/msix.h | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-)
hw/pci/msix.c +0 -2
@@ -24,8 +24,6 @@#include "qapi/error.h" #include "trace.h" -#define MSIX_CAP_LENGTH 12 -/* MSI enable bit and maskall bit are in byte 1 in FLAGS register */ #define MSIX_CONTROL_OFFSET (PCI_MSIX_FLAGS + 1)#define MSIX_ENABLE_MASK (PCI_MSIX_FLAGS_ENABLE >> 8)
hw/vfio/pci.c +0 -2
@@ -35,8 +35,6 @@#include "trace.h" #include "qapi/error.h" -#define MSIX_CAP_LENGTH 12 -#define TYPE_VFIO_PCI "vfio-pci"#define PCI_VFIO (obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI)
include/hw/pci/msix.h +2 -0
@@ -4,6 +4,8 @@#include "qemu-common.h" #include "hw/pci/pci.h" +#define MSIX_CAP_LENGTH 12 +void msix_set_message (PCIDevice *dev,int vector,MSIMessage msg);MSIMessage msix_get_message (PCIDevice *dev,unsigned int vector); int msix_init(PCIDevice *dev, unsigned short nentries,
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 8/9] vfio: platform: fix a typo
In reply to Laurent VivierFrom: Li Qiang <[email protected]>
'eventd' should be 'eventfd'.
Message-Id: <[email protected]>
--- hw/vfio/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/vfio/platform.c +2 -2
@@ -72,7 +72,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,g_free (intp->interrupt);g_free (intp);error_setg_errno (errp, -ret, -"failed to initialize trigger eventd notifier" ); +"failed to initialize trigger eventfd notifier" );return NULL ; }if (vfio_irq_is_automasked (intp)) {
@@ -84,7 +84,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,g_free (intp->unmask);g_free (intp);error_setg_errno (errp, -ret, -"failed to initialize resample eventd notifier" ); +"failed to initialize resample eventfd notifier" );return NULL ; } }
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 7/9] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
In reply to Laurent VivierFrom: Li Qiang <[email protected]>
It's recommended that VMStateDescription names are decoupled from QOM type names as the latter may freely change without consideration of migration compatibility.
Message-Id: <[email protected]>
--- hw/vfio/amd-xgbe.c | 2 +- hw/vfio/ap.c | 2 +- hw/vfio/calxeda-xgmac.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/platform.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
hw/vfio/amd-xgbe.c +1 -1
@@ -26,7 +26,7 @@ static void amd_xgbe_realize(DeviceState *dev, Error **errp) }static const VMStateDescription vfio_platform_amd_xgbe_vmstate = { - .name =TYPE_VFIO_AMD_XGBE , + .name ="vfio-amd-xgbe" , .unmigratable =1 , };
hw/vfio/ap.c +1 -1
@@ -155,7 +155,7 @@ static void vfio_ap_reset(DeviceState *dev) }static const VMStateDescription vfio_ap_vmstate = { - .name =VFIO_AP_DEVICE_TYPE , + .name ="vfio-ap" , .unmigratable =1 , };
hw/vfio/calxeda-xgmac.c +1 -1
@@ -26,7 +26,7 @@ static void calxeda_xgmac_realize(DeviceState *dev, Error **errp) }static const VMStateDescription vfio_platform_calxeda_xgmac_vmstate = { - .name =TYPE_VFIO_CALXEDA_XGMAC , + .name ="vfio-calxeda-xgmac" , .unmigratable =1 , };
hw/vfio/ccw.c +1 -1
@@ -468,7 +468,7 @@ static Property vfio_ccw_properties[] = { };static const VMStateDescription vfio_ccw_vmstate = { - .name =TYPE_VFIO_CCW , + .name ="vfio-ccw" , .unmigratable =1 , };
hw/vfio/platform.c +1 -1
@@ -697,7 +697,7 @@ out: }static const VMStateDescription vfio_platform_vmstate = { - .name =TYPE_VFIO_PLATFORM , + .name ="vfio-platform" , .unmigratable =1 , };
Signature · 1 line
2.20.1
Peter Maydell
AppliedQuoted 9 lines · Laurent Vivier
The following changes since commit
a4f667b6714916683408b983cfe0a615a725775f:Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20190521-3' into staging (2019-05-21 16:30:13 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-branch-pull-request
Quoted 8 lines
for you to fetch changes up to
2d9574bdbed69b374116c59259f6bd14f7dfad7f:pci: msix: move '
MSIX_CAP_LENGTH' to header file (2019-05-22 17:35:27 +0200)----------------------------------------------------------------
typo fixes,TYPE_XXXusage cleanup, comments update, virtio-mmio trace functions cleanup
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.
-- PMM