qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 00/12] Trivial branch patches
@ 2020-02-06 12:50 Laurent Vivier
  2020-02-06 12:50 ` [PULL 01/12] hw/smbios/smbios: Remove unused include Laurent Vivier
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Eduardo Habkost, qemu-block,
	Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Joel Stanley, Paolo Bonzini, Igor Mammedov, Richard Henderson

The following changes since commit 7bd9d0a9e26c7a3c67c0f174f0009ba19969b158:

  Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-02-04' into staging (2020-02-04 16:12:31 +0000)

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 8ef350b32fe08d254f92a3a7efe89809397fff77:

  MAINTAINERS: Cc the qemu-arm@nongnu.org for the ARM machines (2020-02-06 12:32:03 +0100)

----------------------------------------------------------------
trivial patches 20200206

----------------------------------------------------------------

Chen Qun (1):
  monitor: fix memory leak in monitor_fdset_dup_fd_find_remove

John Snow (1):
  qemu-options: replace constant 1 with HAS_ARG

Julia Suvorova (2):
  qemu-img: Place the '-i aio' option in alphabetical order
  hw/pci/pci_bridge: Fix typo in comment

Leif Lindholm (1):
  MAINTAINERS: update Leif Lindholm's address

Miroslav Rezanina (1):
  aspeed/i2c: Prevent uninitialized warning

Philippe Mathieu-Daudé (4):
  hw/smbios/smbios: Remove unused include
  hw/timer/m48t59: Convert debug printf()s to trace events
  MAINTAINERS: Cover hppa-softmmu.mak in the HP-PARISC Machines section
  MAINTAINERS: Cc the qemu-arm@nongnu.org for the ARM machines

Thomas Huth (2):
  hw/bt: Remove empty Kconfig file
  hw/i386/vmmouse: Fix crash when using the vmmouse on a machine without
    vmport

 .mailmap                    |  1 +
 MAINTAINERS                 | 10 +++++++++-
 docs/interop/qemu-img.rst   |  8 ++++----
 hw/bt/Kconfig               |  0
 hw/i2c/aspeed_i2c.c         |  2 +-
 hw/i386/vmmouse.c           |  6 ++++++
 hw/rtc/m48t59-internal.h    |  5 -----
 hw/rtc/m48t59.c             | 11 +++++------
 hw/rtc/trace-events         |  6 ++++++
 hw/smbios/smbios.c          |  1 -
 include/hw/pci/pci_bridge.h |  2 +-
 monitor/misc.c              |  1 +
 qemu-img-cmds.hx            |  4 ++--
 qemu-options.hx             |  2 +-
 14 files changed, 37 insertions(+), 22 deletions(-)
 delete mode 100644 hw/bt/Kconfig

-- 
2.24.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PULL 01/12] hw/smbios/smbios: Remove unused include
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 02/12] monitor: fix memory leak in monitor_fdset_dup_fd_find_remove Laurent Vivier
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Eduardo Habkost, qemu-block,
	Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Joel Stanley, Paolo Bonzini, Igor Mammedov,
	Philippe Mathieu-Daudé,
	Richard Henderson

From: Philippe Mathieu-Daudé <philmd@redhat.com>

Nothing from "sysemu/cpus.h" is used by smbios.c, remove the include.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20200109112504.32622-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/smbios/smbios.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/smbios/smbios.c b/hw/smbios/smbios.c
index 11d476c4a2cb..ffd98727ee9e 100644
--- a/hw/smbios/smbios.c
+++ b/hw/smbios/smbios.c
@@ -24,7 +24,6 @@
 #include "qemu/option.h"
 #include "sysemu/sysemu.h"
 #include "qemu/uuid.h"
-#include "sysemu/cpus.h"
 #include "hw/firmware/smbios.h"
 #include "hw/loader.h"
 #include "hw/boards.h"
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 02/12] monitor: fix memory leak in monitor_fdset_dup_fd_find_remove
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
  2020-02-06 12:50 ` [PULL 01/12] hw/smbios/smbios: Remove unused include Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 03/12] MAINTAINERS: update Leif Lindholm's address Laurent Vivier
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Michael S. Tsirkin, Michael Tokarev, qemu-block,
	qemu-trivial, Markus Armbruster, Joel Stanley,
	Marc-André Lureau, Eduardo Habkost, Dr. David Alan Gilbert,
	qemu-arm, Cédric Le Goater, Igor Mammedov, Chen Qun,
	Richard Henderson, Kevin Wolf, Andrew Jeffery, Laurent Vivier,
	Max Reitz, Euler Robot, Paolo Bonzini

From: Chen Qun <kuhn.chenqun@huawei.com>

When remove dup_fd in monitor_fdset_dup_fd_find_remove function,
we need to free mon_fdset_fd_dup. ASAN shows memory leak stack:

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0xfffd37b033b3 in __interceptor_calloc (/lib64/libasan.so.4+0xd33b3)
    #1 0xfffd375c71cb in g_malloc0 (/lib64/libglib-2.0.so.0+0x571cb)
    #2 0xaaae25bf1c17 in monitor_fdset_dup_fd_add /qemu/monitor/misc.c:1724
    #3 0xaaae265cfd8f in qemu_open /qemu/util/osdep.c:315
    #4 0xaaae264e2b2b in qmp_chardev_open_file_source /qemu/chardev/char-fd.c:122
    #5 0xaaae264e47cf in qmp_chardev_open_file /qemu/chardev/char-file.c:81
    #6 0xaaae264e118b in qemu_char_open /qemu/chardev/char.c:237
    #7 0xaaae264e118b in qemu_chardev_new /qemu/chardev/char.c:964
    #8 0xaaae264e1543 in qemu_chr_new_from_opts /qemu/chardev/char.c:680
    #9 0xaaae25e12e0f in chardev_init_func /qemu/vl.c:2083
    #10 0xaaae26603823 in qemu_opts_foreach /qemu/util/qemu-option.c:1170
    #11 0xaaae258c9787 in main /qemu/vl.c:4089
    #12 0xfffd35b80b9f in __libc_start_main (/lib64/libc.so.6+0x20b9f)
    #13 0xaaae258d7b63  (/qemu/build/aarch64-softmmu/qemu-system-aarch64+0x8b7b63)

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200115072016.167252-1-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 monitor/misc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/monitor/misc.c b/monitor/misc.c
index 4752150a6780..9c3484d0a774 100644
--- a/monitor/misc.c
+++ b/monitor/misc.c
@@ -1749,6 +1749,7 @@ static int64_t monitor_fdset_dup_fd_find_remove(int dup_fd, bool remove)
             if (mon_fdset_fd_dup->fd == dup_fd) {
                 if (remove) {
                     QLIST_REMOVE(mon_fdset_fd_dup, next);
+                    g_free(mon_fdset_fd_dup);
                     if (QLIST_EMPTY(&mon_fdset->dup_fds)) {
                         monitor_fdset_cleanup(mon_fdset);
                     }
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 03/12] MAINTAINERS: update Leif Lindholm's address
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
  2020-02-06 12:50 ` [PULL 01/12] hw/smbios/smbios: Remove unused include Laurent Vivier
  2020-02-06 12:50 ` [PULL 02/12] monitor: fix memory leak in monitor_fdset_dup_fd_find_remove Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 04/12] hw/timer/m48t59: Convert debug printf()s to trace events Laurent Vivier
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Michael S. Tsirkin, Michael Tokarev, qemu-block,
	qemu-trivial, Markus Armbruster, Joel Stanley, Leif Lindholm,
	Philippe Mathieu-Daudé,
	Eduardo Habkost, Dr. David Alan Gilbert, Leif Lindholm, qemu-arm,
	Cédric Le Goater, Igor Mammedov, Richard Henderson,
	Kevin Wolf, Andrew Jeffery, Laurent Vivier, Max Reitz,
	Paolo Bonzini

From: Leif Lindholm <leif@nuviainc.com>

Update address to reflect new employer.

Signed-off-by: Leif Lindholm <leif@nuviainc.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Leif Lindholm <leif@nuviainc.com>
Message-Id: <20200116174226.4780-1-leif@nuviainc.com>
[lv: added .mailmap changes]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 .mailmap    | 1 +
 MAINTAINERS | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index 3816e4effe4f..a521c17b4430 100644
--- a/.mailmap
+++ b/.mailmap
@@ -44,6 +44,7 @@ Aleksandar Markovic <amarkovic@wavecomp.com> <aleksandar.markovic@imgtec.com>
 Aleksandar Rikalo <aleksandar.rikalo@rt-rk.com> <arikalo@wavecomp.com>
 Anthony Liguori <anthony@codemonkey.ws> Anthony Liguori <aliguori@us.ibm.com>
 James Hogan <jhogan@kernel.org> <james.hogan@imgtec.com>
+Leif Lindholm <leif@nuviainc.com> <leif.lindholm@linaro.org>
 Paul Burton <pburton@wavecomp.com> <paul.burton@mips.com>
 Paul Burton <pburton@wavecomp.com> <paul.burton@imgtec.com>
 Paul Burton <pburton@wavecomp.com> <paul@archlinuxmips.org>
diff --git a/MAINTAINERS b/MAINTAINERS
index 1f0bc72f2189..259688174ace 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -737,7 +737,7 @@ F: include/hw/ssi/imx_spi.h
 SBSA-REF
 M: Radoslaw Biernacki <radoslaw.biernacki@linaro.org>
 M: Peter Maydell <peter.maydell@linaro.org>
-R: Leif Lindholm <leif.lindholm@linaro.org>
+R: Leif Lindholm <leif@nuviainc.com>
 L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/arm/sbsa-ref.c
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 04/12] hw/timer/m48t59: Convert debug printf()s to trace events
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (2 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 03/12] MAINTAINERS: update Leif Lindholm's address Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 05/12] hw/bt: Remove empty Kconfig file Laurent Vivier
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Eduardo Habkost, qemu-block,
	Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Hervé Poussineau, Joel Stanley, Paolo Bonzini,
	Igor Mammedov, Philippe Mathieu-Daudé,
	Richard Henderson

From: Philippe Mathieu-Daudé <philmd@redhat.com>

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
Message-Id: <20200117165809.31067-3-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/rtc/m48t59-internal.h |  5 -----
 hw/rtc/m48t59.c          | 11 +++++------
 hw/rtc/trace-events      |  6 ++++++
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/hw/rtc/m48t59-internal.h b/hw/rtc/m48t59-internal.h
index 4d4f2a6fed94..cd648241e989 100644
--- a/hw/rtc/m48t59-internal.h
+++ b/hw/rtc/m48t59-internal.h
@@ -26,11 +26,6 @@
 #ifndef HW_M48T59_INTERNAL_H
 #define HW_M48T59_INTERNAL_H
 
-#define M48T59_DEBUG 0
-
-#define NVRAM_PRINTF(fmt, ...) do { \
-    if (M48T59_DEBUG) { printf(fmt , ## __VA_ARGS__); } } while (0)
-
 /*
  * The M48T02, M48T08 and M48T59 chips are very similar. The newer '59 has
  * alarm and a watchdog timer and related control registers. In the
diff --git a/hw/rtc/m48t59.c b/hw/rtc/m48t59.c
index 1269134bcbef..47d48054fdc1 100644
--- a/hw/rtc/m48t59.c
+++ b/hw/rtc/m48t59.c
@@ -35,6 +35,7 @@
 #include "exec/address-spaces.h"
 #include "qemu/bcd.h"
 #include "qemu/module.h"
+#include "trace.h"
 
 #include "m48t59-internal.h"
 #include "migration/vmstate.h"
@@ -192,8 +193,7 @@ void m48t59_write(M48t59State *NVRAM, uint32_t addr, uint32_t val)
     struct tm tm;
     int tmp;
 
-    if (addr > 0x1FF8 && addr < 0x2000)
-	NVRAM_PRINTF("%s: 0x%08x => 0x%08x\n", __func__, addr, val);
+    trace_m48txx_nvram_mem_write(addr, val);
 
     /* check for NVRAM access */
     if ((NVRAM->model == 2 && addr < 0x7f8) ||
@@ -450,8 +450,7 @@ uint32_t m48t59_read(M48t59State *NVRAM, uint32_t addr)
 	}
         break;
     }
-    if (addr > 0x1FF9 && addr < 0x2000)
-       NVRAM_PRINTF("%s: 0x%08x <= 0x%08x\n", __func__, addr, retval);
+    trace_m48txx_nvram_mem_read(addr, retval);
 
     return retval;
 }
@@ -462,7 +461,7 @@ static void NVRAM_writeb(void *opaque, hwaddr addr, uint64_t val,
 {
     M48t59State *NVRAM = opaque;
 
-    NVRAM_PRINTF("%s: 0x%"HWADDR_PRIx" => 0x%"PRIx64"\n", __func__, addr, val);
+    trace_m48txx_nvram_io_write(addr, val);
     switch (addr) {
     case 0:
         NVRAM->addr &= ~0x00FF;
@@ -494,7 +493,7 @@ static uint64_t NVRAM_readb(void *opaque, hwaddr addr, unsigned size)
         retval = -1;
         break;
     }
-    NVRAM_PRINTF("%s: 0x%"HWADDR_PRIx" <= 0x%08x\n", __func__, addr, retval);
+    trace_m48txx_nvram_io_read(addr, retval);
 
     return retval;
 }
diff --git a/hw/rtc/trace-events b/hw/rtc/trace-events
index d6749f4616a0..52c1566198e8 100644
--- a/hw/rtc/trace-events
+++ b/hw/rtc/trace-events
@@ -17,3 +17,9 @@ pl031_set_alarm(uint32_t ticks) "alarm set for %u ticks"
 # aspeed-rtc.c
 aspeed_rtc_read(uint64_t addr, uint64_t value) "addr 0x%02" PRIx64 " value 0x%08" PRIx64
 aspeed_rtc_write(uint64_t addr, uint64_t value) "addr 0x%02" PRIx64 " value 0x%08" PRIx64
+
+# m48t59.c
+m48txx_nvram_io_read(uint64_t addr, uint64_t value) "io read addr:0x%04" PRIx64 " value:0x%02" PRIx64
+m48txx_nvram_io_write(uint64_t addr, uint64_t value) "io write addr:0x%04" PRIx64 " value:0x%02" PRIx64
+m48txx_nvram_mem_read(uint32_t addr, uint32_t value) "mem read addr:0x%04x value:0x%02x"
+m48txx_nvram_mem_write(uint32_t addr, uint32_t value) "mem write addr:0x%04x value:0x%02x"
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 05/12] hw/bt: Remove empty Kconfig file
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (3 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 04/12] hw/timer/m48t59: Convert debug printf()s to trace events Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 06/12] hw/i386/vmmouse: Fix crash when using the vmmouse on a machine without vmport Laurent Vivier
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Thomas Huth, Eduardo Habkost,
	qemu-block, Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Joel Stanley, Paolo Bonzini, Igor Mammedov, Richard Henderson

From: Thomas Huth <thuth@redhat.com>

While removing the bluetooth code some weeks ago, I had to leave the
hw/bt/Kconfig file around. Otherwise some of the builds would have been
broken since the generated dependency files tried to include it before
they were rebuilt. Meanwhile, all those dependency files should have
been updated, so we can remove the empty Kconfig file now, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200123064525.6935-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/bt/Kconfig | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 delete mode 100644 hw/bt/Kconfig

diff --git a/hw/bt/Kconfig b/hw/bt/Kconfig
deleted file mode 100644
index e69de29bb2d1..000000000000
-- 
2.24.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PULL 06/12] hw/i386/vmmouse: Fix crash when using the vmmouse on a machine without vmport
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (4 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 05/12] hw/bt: Remove empty Kconfig file Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 07/12] MAINTAINERS: Cover hppa-softmmu.mak in the HP-PARISC Machines section Laurent Vivier
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Thomas Huth, Eduardo Habkost,
	qemu-block, Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Joel Stanley, Paolo Bonzini, Igor Mammedov, Darren Kenny,
	Richard Henderson

From: Thomas Huth <thuth@redhat.com>

QEMU currently crashes when the user tries to use the "vmmouse" on a
machine without vmport, e.g.:

 $ x86_64-softmmu/qemu-system-x86_64 -machine microvm -device vmmouse
 Segmentation fault (core dumped)

or:

 $ x86_64-softmmu/qemu-system-x86_64 -device vmmouse -M pc,vmport=off
 Segmentation fault (core dumped)

Let's avoid the crash by checking for the vmport device first.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-Id: <20200129112954.4282-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/i386/vmmouse.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c
index 7c2a3755271a..e8e62bd96b8c 100644
--- a/hw/i386/vmmouse.c
+++ b/hw/i386/vmmouse.c
@@ -23,6 +23,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qapi/error.h"
 #include "ui/console.h"
 #include "hw/i386/pc.h"
 #include "hw/input/i8042.h"
@@ -269,6 +270,11 @@ static void vmmouse_realizefn(DeviceState *dev, Error **errp)
 
     DPRINTF("vmmouse_init\n");
 
+    if (!object_resolve_path_type("", TYPE_VMPORT, NULL)) {
+        error_setg(errp, "vmmouse needs a machine with vmport");
+        return;
+    }
+
     vmport_register(VMMOUSE_STATUS, vmmouse_ioport_read, s);
     vmport_register(VMMOUSE_COMMAND, vmmouse_ioport_read, s);
     vmport_register(VMMOUSE_DATA, vmmouse_ioport_read, s);
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 07/12] MAINTAINERS: Cover hppa-softmmu.mak in the HP-PARISC Machines section
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (5 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 06/12] hw/i386/vmmouse: Fix crash when using the vmmouse on a machine without vmport Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 08/12] qemu-options: replace constant 1 with HAS_ARG Laurent Vivier
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Eduardo Habkost, qemu-block,
	Peter Maydell, Andrew Jeffery, Markus Armbruster, Helge Deller,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Joel Stanley, Paolo Bonzini, Igor Mammedov,
	Philippe Mathieu-Daudé,
	Richard Henderson

From: Philippe Mathieu-Daudé <philmd@redhat.com>

Modifications to default-configs/hppa-softmmu.mak should be
reviewed by the hppa-softmmu users (currently a single machine).

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20200129190316.16901-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 259688174ace..9d45ac274ed7 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -896,6 +896,7 @@ HP B160L
 M: Richard Henderson <rth@twiddle.net>
 R: Helge Deller <deller@gmx.de>
 S: Odd Fixes
+F: default-configs/hppa-softmmu.mak
 F: hw/hppa/
 F: pc-bios/hppa-firmware.img
 
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 08/12] qemu-options: replace constant 1 with HAS_ARG
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (6 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 07/12] MAINTAINERS: Cover hppa-softmmu.mak in the HP-PARISC Machines section Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 09/12] qemu-img: Place the '-i aio' option in alphabetical order Laurent Vivier
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Eduardo Habkost, qemu-block,
	Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Joel Stanley, Paolo Bonzini, Igor Mammedov, John Snow,
	Richard Henderson

From: John Snow <jsnow@redhat.com>

This is the only instance of a non-zero constant not using a symbolic
constant.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20200204165638.25051-1-jsnow@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index 224a8e8712a4..ff3e806977a8 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -1955,7 +1955,7 @@ STEXI
 Start in full screen.
 ETEXI
 
-DEF("g", 1, QEMU_OPTION_g ,
+DEF("g", HAS_ARG, QEMU_OPTION_g ,
     "-g WxH[xDEPTH]  Set the initial graphical resolution and depth\n",
     QEMU_ARCH_PPC | QEMU_ARCH_SPARC | QEMU_ARCH_M68K)
 STEXI
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 09/12] qemu-img: Place the '-i aio' option in alphabetical order
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (7 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 08/12] qemu-options: replace constant 1 with HAS_ARG Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 10/12] hw/pci/pci_bridge: Fix typo in comment Laurent Vivier
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Michael S. Tsirkin, Michael Tokarev, qemu-block,
	qemu-trivial, Markus Armbruster, Joel Stanley,
	Philippe Mathieu-Daudé,
	Eduardo Habkost, Julia Suvorova, Dr. David Alan Gilbert,
	qemu-arm, Cédric Le Goater, Stefan Hajnoczi, Igor Mammedov,
	Richard Henderson, Kevin Wolf, Andrew Jeffery, Laurent Vivier,
	Max Reitz, Paolo Bonzini

From: Julia Suvorova <jusual@redhat.com>

The '-i AIO' option was accidentally placed after '-n' and '-t'. Move it
after '--flush-interval'.

Signed-off-by: Julia Suvorova <jusual@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200205163008.204493-1-jusual@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 docs/interop/qemu-img.rst | 8 ++++----
 qemu-img-cmds.hx          | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/interop/qemu-img.rst b/docs/interop/qemu-img.rst
index fa27e5c7b453..42e4451db4a2 100644
--- a/docs/interop/qemu-img.rst
+++ b/docs/interop/qemu-img.rst
@@ -247,7 +247,7 @@ Command description:
   Amends the image format specific *OPTIONS* for the image file
   *FILENAME*. Not all file formats support this operation.
 
-.. option:: bench [-c COUNT] [-d DEPTH] [-f FMT] [--flush-interval=FLUSH_INTERVAL] [-n] [-i AIO] [--no-drain] [-o OFFSET] [--pattern=PATTERN] [-q] [-s BUFFER_SIZE] [-S STEP_SIZE] [-t CACHE] [-w] [-U] FILENAME
+.. option:: bench [-c COUNT] [-d DEPTH] [-f FMT] [--flush-interval=FLUSH_INTERVAL] [-i AIO] [-n] [--no-drain] [-o OFFSET] [--pattern=PATTERN] [-q] [-s BUFFER_SIZE] [-S STEP_SIZE] [-t CACHE] [-w] [-U] FILENAME
 
   Run a simple sequential I/O benchmark on the specified image. If ``-w`` is
   specified, a write test is performed, otherwise a read test is performed.
@@ -264,13 +264,13 @@ Command description:
   ``--no-drain`` is specified, a flush is issued without draining the request
   queue first.
 
+  if ``-i`` is specified, *AIO* option can be used to specify different
+  AIO backends: ``threads``, ``native`` or ``io_uring``.
+
   If ``-n`` is specified, the native AIO backend is used if possible. On
   Linux, this option only works if ``-t none`` or ``-t directsync`` is
   specified as well.
 
-  if ``-i`` is specified, *AIO* option can be used to specify different
-  AIO backends: ``threads``, ``native`` or ``io_uring``.
-
   For write tests, by default a buffer filled with zeros is written. This can be
   overridden with a pattern byte specified by *PATTERN*.
 
diff --git a/qemu-img-cmds.hx b/qemu-img-cmds.hx
index 3fd836ca9090..d7fbc6b1f483 100644
--- a/qemu-img-cmds.hx
+++ b/qemu-img-cmds.hx
@@ -16,9 +16,9 @@ SRST
 ERST
 
 DEF("bench", img_bench,
-    "bench [-c count] [-d depth] [-f fmt] [--flush-interval=flush_interval] [-n] [--no-drain] [-o offset] [--pattern=pattern] [-q] [-s buffer_size] [-S step_size] [-t cache] [-i aio] [-w] [-U] filename")
+    "bench [-c count] [-d depth] [-f fmt] [--flush-interval=flush_interval] [-i aio] [-n] [--no-drain] [-o offset] [--pattern=pattern] [-q] [-s buffer_size] [-S step_size] [-t cache] [-w] [-U] filename")
 SRST
-.. option:: bench [-c COUNT] [-d DEPTH] [-f FMT] [--flush-interval=FLUSH_INTERVAL] [-n] [--no-drain] [-o OFFSET] [--pattern=PATTERN] [-q] [-s BUFFER_SIZE] [-S STEP_SIZE] [-t CACHE] [-i AIO] [-w] [-U] FILENAME
+.. option:: bench [-c COUNT] [-d DEPTH] [-f FMT] [--flush-interval=FLUSH_INTERVAL] [-i AIO] [-n] [--no-drain] [-o OFFSET] [--pattern=PATTERN] [-q] [-s BUFFER_SIZE] [-S STEP_SIZE] [-t CACHE] [-w] [-U] FILENAME
 ERST
 DEF("check", img_check,
     "check [--object objectdef] [--image-opts] [-q] [-f fmt] [--output=ofmt] [-r [leaks | all]] [-T src_cache] [-U] filename")
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 10/12] hw/pci/pci_bridge: Fix typo in comment
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (8 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 09/12] qemu-img: Place the '-i aio' option in alphabetical order Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 11/12] aspeed/i2c: Prevent uninitialized warning Laurent Vivier
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Eduardo Habkost, qemu-block,
	Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Julia Suvorova, Joel Stanley, Paolo Bonzini, Igor Mammedov,
	Stefan Hajnoczi, Richard Henderson

From: Julia Suvorova <jusual@redhat.com>

Signed-off-by: Julia Suvorova <jusual@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200205185123.210209-1-jusual@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 include/hw/pci/pci_bridge.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hw/pci/pci_bridge.h b/include/hw/pci/pci_bridge.h
index ba488818d292..99c674e94954 100644
--- a/include/hw/pci/pci_bridge.h
+++ b/include/hw/pci/pci_bridge.h
@@ -108,7 +108,7 @@ void pci_bridge_dev_unplug_request_cb(HotplugHandler *hotplug_dev,
 
 /*
  * before qdev initialization(qdev_init()), this function sets bus_name and
- * map_irq callback which are necessry for pci_bridge_initfn() to
+ * map_irq callback which are necessary for pci_bridge_initfn() to
  * initialize bus.
  */
 void pci_bridge_map_irq(PCIBridge *br, const char* bus_name,
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 11/12] aspeed/i2c: Prevent uninitialized warning
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (9 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 10/12] hw/pci/pci_bridge: Fix typo in comment Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 12:50 ` [PULL 12/12] MAINTAINERS: Cc the qemu-arm@nongnu.org for the ARM machines Laurent Vivier
  2020-02-06 16:21 ` [PULL 00/12] Trivial branch patches Peter Maydell
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Thomas Huth, Eduardo Habkost,
	qemu-block, Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Joel Stanley, Paolo Bonzini, Igor Mammedov, Miroslav Rezanina,
	Richard Henderson

From: Miroslav Rezanina <mrezanin@redhat.com>

Compiler reports uninitialized warning for cmd_flags variable.

Adding NULL initialization to prevent this warning.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <07957dcab31f65de3dd30efa91e6b9152ac79879.1579598240.git.mrezanin@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/i2c/aspeed_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c
index 9cda9685016c..fb973a983dcd 100644
--- a/hw/i2c/aspeed_i2c.c
+++ b/hw/i2c/aspeed_i2c.c
@@ -400,7 +400,7 @@ static bool aspeed_i2c_check_sram(AspeedI2CBus *bus)
 
 static void aspeed_i2c_bus_cmd_dump(AspeedI2CBus *bus)
 {
-    g_autofree char *cmd_flags;
+    g_autofree char *cmd_flags = NULL;
     uint32_t count;
 
     if (bus->cmd & (I2CD_RX_BUFF_ENABLE | I2CD_RX_BUFF_ENABLE)) {
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PULL 12/12] MAINTAINERS: Cc the qemu-arm@nongnu.org for the ARM machines
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (10 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 11/12] aspeed/i2c: Prevent uninitialized warning Laurent Vivier
@ 2020-02-06 12:50 ` Laurent Vivier
  2020-02-06 16:21 ` [PULL 00/12] Trivial branch patches Peter Maydell
  12 siblings, 0 replies; 14+ messages in thread
From: Laurent Vivier @ 2020-02-06 12:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Laurent Vivier, Eduardo Habkost, qemu-block,
	Peter Maydell, Andrew Jeffery, Markus Armbruster,
	Michael S. Tsirkin, Michael Tokarev, Dr. David Alan Gilbert,
	Max Reitz, qemu-trivial, Cédric Le Goater, qemu-arm,
	Alistair Francis, Joel Stanley, Paolo Bonzini, Igor Mammedov,
	Philippe Mathieu-Daudé,
	Richard Henderson

From: Philippe Mathieu-Daudé <philmd@redhat.com>

Not all ARM machines sections Cc the qemu-arm@nongnu.org list,
fix this.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200120185928.25115-2-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 9d45ac274ed7..e72b5e5f6968 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -809,6 +809,7 @@ F: hw/arm/virt-acpi-build.c
 STM32F205
 M: Alistair Francis <alistair@alistair23.me>
 M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/arm/stm32f205_soc.c
 F: hw/misc/stm32f2xx_syscfg.c
@@ -821,6 +822,7 @@ F: include/hw/*/stm32*.h
 STM32F405
 M: Alistair Francis <alistair@alistair23.me>
 M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/arm/stm32f405_soc.c
 F: hw/misc/stm32f4xx_syscfg.c
@@ -829,18 +831,21 @@ F: hw/misc/stm32f4xx_exti.c
 Netduino 2
 M: Alistair Francis <alistair@alistair23.me>
 M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/arm/netduino2.c
 
 Netduino Plus 2
 M: Alistair Francis <alistair@alistair23.me>
 M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/arm/netduinoplus2.c
 
 SmartFusion2
 M: Subbaraya Sundeep <sundeep.lkml@gmail.com>
 M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/arm/msf2-soc.c
 F: hw/misc/msf2-sysreg.c
@@ -854,6 +859,7 @@ F: include/hw/ssi/mss-spi.h
 Emcraft M2S-FG484
 M: Subbaraya Sundeep <sundeep.lkml@gmail.com>
 M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/arm/msf2-som.c
 
@@ -1402,6 +1408,7 @@ T: git https://github.com/jnsnow/qemu.git ide
 
 OMAP
 M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/*/omap*
 F: include/hw/arm/omap.h
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PULL 00/12] Trivial branch patches
  2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
                   ` (11 preceding siblings ...)
  2020-02-06 12:50 ` [PULL 12/12] MAINTAINERS: Cc the qemu-arm@nongnu.org for the ARM machines Laurent Vivier
@ 2020-02-06 16:21 ` Peter Maydell
  12 siblings, 0 replies; 14+ messages in thread
From: Peter Maydell @ 2020-02-06 16:21 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: Kevin Wolf, Eduardo Habkost, Qemu-block, Michael S. Tsirkin,
	Andrew Jeffery, Markus Armbruster, Michael Tokarev,
	QEMU Developers, Dr. David Alan Gilbert, QEMU Trivial,
	Cédric Le Goater, qemu-arm, Joel Stanley, Paolo Bonzini,
	Igor Mammedov, Max Reitz, Richard Henderson

On Thu, 6 Feb 2020 at 12:50, Laurent Vivier <laurent@vivier.eu> wrote:
>
> The following changes since commit 7bd9d0a9e26c7a3c67c0f174f0009ba19969b158:
>
>   Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-02-04' into staging (2020-02-04 16:12:31 +0000)
>
> 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 8ef350b32fe08d254f92a3a7efe89809397fff77:
>
>   MAINTAINERS: Cc the qemu-arm@nongnu.org for the ARM machines (2020-02-06 12:32:03 +0100)
>
> ----------------------------------------------------------------
> trivial patches 20200206
>
> ----------------------------------------------------------------


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.

-- PMM


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-02-06 16:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06 12:50 [PULL 00/12] Trivial branch patches Laurent Vivier
2020-02-06 12:50 ` [PULL 01/12] hw/smbios/smbios: Remove unused include Laurent Vivier
2020-02-06 12:50 ` [PULL 02/12] monitor: fix memory leak in monitor_fdset_dup_fd_find_remove Laurent Vivier
2020-02-06 12:50 ` [PULL 03/12] MAINTAINERS: update Leif Lindholm's address Laurent Vivier
2020-02-06 12:50 ` [PULL 04/12] hw/timer/m48t59: Convert debug printf()s to trace events Laurent Vivier
2020-02-06 12:50 ` [PULL 05/12] hw/bt: Remove empty Kconfig file Laurent Vivier
2020-02-06 12:50 ` [PULL 06/12] hw/i386/vmmouse: Fix crash when using the vmmouse on a machine without vmport Laurent Vivier
2020-02-06 12:50 ` [PULL 07/12] MAINTAINERS: Cover hppa-softmmu.mak in the HP-PARISC Machines section Laurent Vivier
2020-02-06 12:50 ` [PULL 08/12] qemu-options: replace constant 1 with HAS_ARG Laurent Vivier
2020-02-06 12:50 ` [PULL 09/12] qemu-img: Place the '-i aio' option in alphabetical order Laurent Vivier
2020-02-06 12:50 ` [PULL 10/12] hw/pci/pci_bridge: Fix typo in comment Laurent Vivier
2020-02-06 12:50 ` [PULL 11/12] aspeed/i2c: Prevent uninitialized warning Laurent Vivier
2020-02-06 12:50 ` [PULL 12/12] MAINTAINERS: Cc the qemu-arm@nongnu.org for the ARM machines Laurent Vivier
2020-02-06 16:21 ` [PULL 00/12] Trivial branch patches Peter Maydell

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).