All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07
@ 2017-05-07  7:02 Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 01/23] Remove reduntant qemu: from error functions Michael Tokarev
                   ` (24 more replies)
  0 siblings, 25 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial

The following changes since commit 12a95f320a36ef66f724a49bb05e4fb553ac5dbe:

  Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)

are available in the git repository at:

  git://git.corpit.ru/qemu.git tags/trivial-patches-fetch

for you to fetch changes up to 311875781e549af91a3216d34c6ef40420bab435:

  tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)

----------------------------------------------------------------
trivial patches for 2017-05-07

----------------------------------------------------------------
Andreas Grapentin (1):
      use _Static_assert in QEMU_BUILD_BUG_ON

Chris Webb (1):
      virtfs: allow a device id to be specified in the -virtfs option

Craig Jellick (1):
      Add 'none' as type for drive's if option

Eric Blake (2):
      tests: Ignore more test executables
      tests: Ignore another built executable (test-hmp)

Fam Zheng (3):
      block: Make 'replication_state' an enum
      virtio-blk: Remove useless condition around g_free()
      tests: Remove redundant assignment

Ishani Chugh (1):
      Remove reduntant qemu: from error functions

KONRAD Frederic (1):
      ppc_booke: drop useless assignment

Kamil Rytarowski (2):
      scripts/qemu-binfmt-conf.sh: Fix shell portability issue
      scripts: Switch to more portable Perl shebang

Marc-André Lureau (1):
      doc: fix function spelling

Paolo Bonzini (3):
      jazz_led: fix bad snprintf
      MAINTAINERS: Update paths for main loop
      MAINTAINERS: Update paths for AioContext implementation

Philippe Mathieu-Daudé (3):
      usb-ccid: make ccid_write_data_block() cope with null buffers
      device_tree: fix compiler warnings (clang 5)
      qga: fix compiler warnings (clang 5)

Saurav Sachidanand (1):
      util: Use g_malloc/g_free in envlist.c

Thomas Huth (2):
      qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip
      hw/core/generic-loader: Fix crash when running without CPU

sochin.jiang fix wrong parameter comments in channel-file.h (1):
      channel-file: fix wrong parameter comments

 MAINTAINERS                     |  8 +++----
 block/replication.c             | 44 +++++++++++++++++++-------------------
 bsd-user/main.c                 | 14 ++++--------
 configure                       | 18 ++++++++++++++++
 device_tree.c                   |  1 +
 hw/block/virtio-blk.c           |  4 +---
 hw/core/generic-loader.c        |  9 ++++----
 hw/display/jazz_led.c           |  4 ++--
 hw/microblaze/boot.c            |  2 +-
 hw/nios2/boot.c                 |  2 +-
 hw/ppc/pnv.c                    |  2 +-
 hw/ppc/ppc_booke.c              |  1 -
 hw/s390x/sclp.c                 |  4 ++--
 hw/tricore/tricore_testboard.c  |  2 +-
 hw/usb/dev-smartcard-reader.c   |  5 ++++-
 include/io/channel-file.h       |  2 +-
 include/io/channel.h            |  2 +-
 include/qemu/compiler.h         |  4 +++-
 linux-user/main.c               |  9 +++-----
 numa.c                          |  4 ++--
 qemu-doc.texi                   | 10 ++++-----
 qemu-options.hx                 |  4 ++--
 qga/commands-posix.c            |  8 ++++---
 scripts/checkpatch.pl           |  3 ++-
 scripts/clean-header-guards.pl  |  3 ++-
 scripts/cleanup-trace-events.pl |  2 +-
 scripts/disas-objdump.pl        |  4 +++-
 scripts/get_maintainer.pl       |  3 ++-
 scripts/qemu-binfmt-conf.sh     |  4 ++--
 scripts/shaderinclude.pl        |  2 +-
 scripts/switch-timer-api        |  2 +-
 scripts/texi2pod.pl             |  4 +++-
 tests/.gitignore                |  4 ++++
 tests/postcopy-test.c           |  2 +-
 util/envlist.c                  | 47 +++++++++++++++++------------------------
 vl.c                            |  5 +++--
 36 files changed, 133 insertions(+), 115 deletions(-)

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

* [Qemu-devel] [PULL 01/23] Remove reduntant qemu: from error functions
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 02/23] ppc_booke: drop useless assignment Michael Tokarev
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Ishani Chugh, qemu-trivial, Michael Tokarev

From: Ishani Chugh <chugh.ishani@research.iiit.ac.in>

This patch removes redundant "qemu:" from error functions. The link to the bitesized task is:
http://wiki.qemu-project.org/Contribute/BiteSizedTasks#Error_checking

Signed-off-by: Ishani Chugh <chugh.ishani@research.iiit.ac.in>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/microblaze/boot.c           | 2 +-
 hw/nios2/boot.c                | 2 +-
 hw/ppc/pnv.c                   | 2 +-
 hw/s390x/sclp.c                | 4 ++--
 hw/tricore/tricore_testboard.c | 2 +-
 numa.c                         | 4 ++--
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/hw/microblaze/boot.c b/hw/microblaze/boot.c
index 1834d22a61..457a08a2fe 100644
--- a/hw/microblaze/boot.c
+++ b/hw/microblaze/boot.c
@@ -189,7 +189,7 @@ void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base,
                                                   ram_size - initrd_offset);
             }
             if (initrd_size < 0) {
-                error_report("qemu: could not load initrd '%s'",
+                error_report("could not load initrd '%s'",
                              initrd_filename);
                 exit(EXIT_FAILURE);
             }
diff --git a/hw/nios2/boot.c b/hw/nios2/boot.c
index e0a9aff2f4..2b31f5b844 100644
--- a/hw/nios2/boot.c
+++ b/hw/nios2/boot.c
@@ -197,7 +197,7 @@ void nios2_load_kernel(Nios2CPU *cpu, hwaddr ddr_base,
                                                   ram_size - initrd_offset);
             }
             if (initrd_size < 0) {
-                error_report("qemu: could not load initrd '%s'",
+                error_report("could not load initrd '%s'",
                              initrd_filename);
                 exit(EXIT_FAILURE);
             }
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index d4bcdb027f..6a498565c7 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -610,7 +610,7 @@ static void ppc_powernv_init(MachineState *machine)
     /* Create the processor chips */
     chip_typename = g_strdup_printf(TYPE_PNV_CHIP "-%s", machine->cpu_model);
     if (!object_class_by_name(chip_typename)) {
-        error_report("qemu: invalid CPU model '%s' for %s machine",
+        error_report("invalid CPU model '%s' for %s machine",
                      machine->cpu_model, MACHINE_GET_CLASS(machine)->name);
         exit(1);
     }
diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c
index e741da1141..6996088584 100644
--- a/hw/s390x/sclp.c
+++ b/hw/s390x/sclp.c
@@ -496,10 +496,10 @@ static void sclp_realize(DeviceState *dev, Error **errp)
 
     ret = s390_set_memory_limit(machine->maxram_size, &hw_limit);
     if (ret == -E2BIG) {
-        error_setg(&err, "qemu: host supports a maximum of %" PRIu64 " GB",
+        error_setg(&err, "host supports a maximum of %" PRIu64 " GB",
                    hw_limit >> 30);
     } else if (ret) {
-        error_setg(&err, "qemu: setting the guest size failed");
+        error_setg(&err, "setting the guest size failed");
     }
 
 out:
diff --git a/hw/tricore/tricore_testboard.c b/hw/tricore/tricore_testboard.c
index 19dd587207..8910bf0f27 100644
--- a/hw/tricore/tricore_testboard.c
+++ b/hw/tricore/tricore_testboard.c
@@ -50,7 +50,7 @@ static void tricore_load_kernel(CPUTriCoreState *env)
                            NULL, 0,
                            EM_TRICORE, 1, 0);
     if (kernel_size <= 0) {
-        error_report("qemu: no kernel file '%s'",
+        error_report("no kernel file '%s'",
                 tricoretb_binfo.kernel_filename);
         exit(1);
     }
diff --git a/numa.c b/numa.c
index 6fc2393ddd..39b743bd94 100644
--- a/numa.c
+++ b/numa.c
@@ -174,7 +174,7 @@ static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp)
     }
 
     if (node->has_mem && node->has_memdev) {
-        error_setg(errp, "qemu: cannot specify both mem= and memdev=");
+        error_setg(errp, "cannot specify both mem= and memdev=");
         return;
     }
 
@@ -182,7 +182,7 @@ static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp)
         have_memdevs = node->has_memdev;
     }
     if (node->has_memdev != have_memdevs) {
-        error_setg(errp, "qemu: memdev option must be specified for either "
+        error_setg(errp, "memdev option must be specified for either "
                    "all or no nodes");
         return;
     }
-- 
2.11.0

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

* [Qemu-devel] [PULL 02/23] ppc_booke: drop useless assignment
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 01/23] Remove reduntant qemu: from error functions Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 03/23] doc: fix function spelling Michael Tokarev
                   ` (22 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: KONRAD Frederic, qemu-trivial, Michael Tokarev

From: KONRAD Frederic <fred.konrad@greensocs.com>

The tb_env variable is set two lines above. So just drop the double assignment.

Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/ppc/ppc_booke.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/ppc/ppc_booke.c b/hw/ppc/ppc_booke.c
index 60baffaf1d..23bcf1b138 100644
--- a/hw/ppc/ppc_booke.c
+++ b/hw/ppc/ppc_booke.c
@@ -282,7 +282,6 @@ void store_booke_tcr(CPUPPCState *env, target_ulong val)
     ppc_tb_t *tb_env = env->tb_env;
     booke_timer_t *booke_timer = tb_env->opaque;
 
-    tb_env = env->tb_env;
     env->spr[SPR_BOOKE_TCR] = val;
     kvmppc_set_tcr(cpu);
 
-- 
2.11.0

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

* [Qemu-devel] [PULL 03/23] doc: fix function spelling
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 01/23] Remove reduntant qemu: from error functions Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 02/23] ppc_booke: drop useless assignment Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 04/23] Add 'none' as type for drive's if option Michael Tokarev
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, qemu-trivial, Michael Tokarev

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 include/io/channel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/io/channel.h b/include/io/channel.h
index 5d48906998..db9bb022a1 100644
--- a/include/io/channel.h
+++ b/include/io/channel.h
@@ -315,7 +315,7 @@ ssize_t qio_channel_read(QIOChannel *ioc,
                          Error **errp);
 
 /**
- * qio_channel_writev:
+ * qio_channel_write:
  * @ioc: the channel object
  * @buf: the memory regions to send data from
  * @buflen: the length of @buf
-- 
2.11.0

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

* [Qemu-devel] [PULL 04/23] Add 'none' as type for drive's if option
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (2 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 03/23] doc: fix function spelling Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 05/23] tests: Ignore more test executables Michael Tokarev
                   ` (20 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Craig Jellick, qemu-trivial, Michael Tokarev

From: Craig Jellick <craig@rancher.com>

Signed-off-by: Craig Jellick <craig@rancher.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index f68829f3b0..a24fef2107 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -604,7 +604,7 @@ Special files such as iSCSI devices can be specified using protocol
 specific URLs. See the section for "Device URL Syntax" for more information.
 @item if=@var{interface}
 This option defines on which type on interface the drive is connected.
-Available types are: ide, scsi, sd, mtd, floppy, pflash, virtio.
+Available types are: ide, scsi, sd, mtd, floppy, pflash, virtio, none.
 @item bus=@var{bus},unit=@var{unit}
 These options define where is connected the drive by defining the bus number and
 the unit id.
-- 
2.11.0

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

* [Qemu-devel] [PULL 05/23] tests: Ignore more test executables
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (3 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 04/23] Add 'none' as type for drive's if option Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 06/23] usb-ccid: make ccid_write_data_block() cope with null buffers Michael Tokarev
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Eric Blake, qemu-trivial, Michael Tokarev

From: Eric Blake <eblake@redhat.com>

Ignore test executables when building in-tree:
test-arm-mptimer introduced in commit 882fac3
test-crypto-hmac introduced in commit 4fd460b
test-aio-multithread introduced in commit 0c330a7

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 tests/.gitignore | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/.gitignore b/tests/.gitignore
index a966740c2c..5ab00a9c95 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -11,6 +11,8 @@ check-qom-proplist
 qht-bench
 rcutorture
 test-aio
+test-aio-multithread
+test-arm-mptimer
 test-base64
 test-bitops
 test-bitcnt
@@ -24,6 +26,7 @@ test-crypto-afsplit
 test-crypto-block
 test-crypto-cipher
 test-crypto-hash
+test-crypto-hmac
 test-crypto-ivgen
 test-crypto-pbkdf
 test-crypto-secret
-- 
2.11.0

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

* [Qemu-devel] [PULL 06/23] usb-ccid: make ccid_write_data_block() cope with null buffers
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (4 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 05/23] tests: Ignore more test executables Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 07/23] device_tree: fix compiler warnings (clang 5) Michael Tokarev
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Philippe Mathieu-Daudé, qemu-trivial, Michael Tokarev

From: Philippe Mathieu-Daudé <f4bug@amsat.org>

static code analyzer complain:

hw/usb/dev-smartcard-reader.c:816:5: warning: Null pointer passed as an argument to a 'nonnull' parameter
    memcpy(p->abData, data, len);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/usb/dev-smartcard-reader.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
index 757b8b3f5a..49cb1829b5 100644
--- a/hw/usb/dev-smartcard-reader.c
+++ b/hw/usb/dev-smartcard-reader.c
@@ -813,7 +813,10 @@ static void ccid_write_data_block(USBCCIDState *s, uint8_t slot, uint8_t seq,
     if (p->b.bError) {
         DPRINTF(s, D_VERBOSE, "error %d\n", p->b.bError);
     }
-    memcpy(p->abData, data, len);
+    if (len) {
+        g_assert_nonnull(data);
+        memcpy(p->abData, data, len);
+    }
     ccid_reset_error_status(s);
     usb_wakeup(s->bulk, 0);
 }
-- 
2.11.0

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

* [Qemu-devel] [PULL 07/23] device_tree: fix compiler warnings (clang 5)
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (5 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 06/23] usb-ccid: make ccid_write_data_block() cope with null buffers Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 08/23] qga: " Michael Tokarev
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Philippe Mathieu-Daudé, qemu-trivial, Michael Tokarev

From: Philippe Mathieu-Daudé <f4bug@amsat.org>

static code analyzer complain:

device_tree.c:155:18: warning: Null pointer passed as an argument to a 'nonnull' parameter
    while ((de = readdir(d)) != NULL) {
                 ^~~~~~~~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 device_tree.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/device_tree.c b/device_tree.c
index 6e06320830..a24ddff02b 100644
--- a/device_tree.c
+++ b/device_tree.c
@@ -148,6 +148,7 @@ static void read_fstree(void *fdt, const char *dirname)
     d = opendir(dirname);
     if (!d) {
         error_setg(&error_fatal, "%s cannot open %s", __func__, dirname);
+        return;
     }
 
     while ((de = readdir(d)) != NULL) {
-- 
2.11.0

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

* [Qemu-devel] [PULL 08/23] qga: fix compiler warnings (clang 5)
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (6 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 07/23] device_tree: fix compiler warnings (clang 5) Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 09/23] util: Use g_malloc/g_free in envlist.c Michael Tokarev
                   ` (16 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Philippe Mathieu-Daudé, qemu-trivial, Michael Tokarev

From: Philippe Mathieu-Daudé <f4bug@amsat.org>

static code analyzer complain:

qga/commands-posix.c:2127:9: warning: Null pointer passed as an argument to a 'nonnull' parameter
        closedir(dp);
        ^~~~~~~~~~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qga/commands-posix.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index ba06be4c86..284ecc6d7e 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -2125,9 +2125,11 @@ static void transfer_memory_block(GuestMemoryBlock *mem_blk, bool sys2memblk,
          * we think this VM does not support online/offline memory block,
          * any other solution?
          */
-        if (!dp && errno == ENOENT) {
-            result->response =
-                GUEST_MEMORY_BLOCK_RESPONSE_TYPE_OPERATION_NOT_SUPPORTED;
+        if (!dp) {
+            if (errno == ENOENT) {
+                result->response =
+                    GUEST_MEMORY_BLOCK_RESPONSE_TYPE_OPERATION_NOT_SUPPORTED;
+            }
             goto out1;
         }
         closedir(dp);
-- 
2.11.0

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

* [Qemu-devel] [PULL 09/23] util: Use g_malloc/g_free in envlist.c
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (7 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 08/23] qga: " Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 10/23] block: Make 'replication_state' an enum Michael Tokarev
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Saurav Sachidanand, qemu-trivial, Michael Tokarev

From: Saurav Sachidanand <sauravsachidanand@gmail.com>

Change malloc/strdup/free to g_malloc/g_strdup/g_free in
util/envlist.c.

Remove NULL checks for pointers returned from g_malloc and g_strdup
as they exit in case of failure. Also, update calls to envlist_create
to reflect this.

Free array and array contents returned by envlist_to_environ using
g_free in bsd-user/main.c and linux-user/main.c.

Update comments to reflect change in semantics.

Signed-off-by: Saurav Sachidanand <sauravsachidanand@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 bsd-user/main.c   | 14 ++++----------
 linux-user/main.c |  9 +++------
 util/envlist.c    | 47 +++++++++++++++++++----------------------------
 3 files changed, 26 insertions(+), 44 deletions(-)

diff --git a/bsd-user/main.c b/bsd-user/main.c
index 714a692e6f..04f95ddd54 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -744,10 +744,7 @@ int main(int argc, char **argv)
     qemu_init_cpu_list();
     module_call_init(MODULE_INIT_QOM);
 
-    if ((envlist = envlist_create()) == NULL) {
-        (void) fprintf(stderr, "Unable to allocate envlist\n");
-        exit(1);
-    }
+    envlist = envlist_create();
 
     /* add current environment into the list */
     for (wrk = environ; *wrk != NULL; wrk++) {
@@ -785,10 +782,7 @@ int main(int argc, char **argv)
                 usage();
         } else if (!strcmp(r, "ignore-environment")) {
             envlist_free(envlist);
-            if ((envlist = envlist_create()) == NULL) {
-                (void) fprintf(stderr, "Unable to allocate envlist\n");
-                exit(1);
-            }
+            envlist = envlist_create();
         } else if (!strcmp(r, "U")) {
             r = argv[optind++];
             if (envlist_unsetenv(envlist, r) != 0)
@@ -956,10 +950,10 @@ int main(int argc, char **argv)
     }
 
     for (wrk = target_environ; *wrk; wrk++) {
-        free(*wrk);
+        g_free(*wrk);
     }
 
-    free(target_environ);
+    g_free(target_environ);
 
     if (qemu_loglevel_mask(CPU_LOG_PAGE)) {
         qemu_log("guest_base  0x%lx\n", guest_base);
diff --git a/linux-user/main.c b/linux-user/main.c
index 10a3bb3a12..5f20769cb9 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -4229,10 +4229,7 @@ int main(int argc, char **argv, char **envp)
     qemu_init_cpu_list();
     module_call_init(MODULE_INIT_QOM);
 
-    if ((envlist = envlist_create()) == NULL) {
-        (void) fprintf(stderr, "Unable to allocate envlist\n");
-        exit(EXIT_FAILURE);
-    }
+    envlist = envlist_create();
 
     /* add current environment into the list */
     for (wrk = environ; *wrk != NULL; wrk++) {
@@ -4429,10 +4426,10 @@ int main(int argc, char **argv, char **envp)
     }
 
     for (wrk = target_environ; *wrk; wrk++) {
-        free(*wrk);
+        g_free(*wrk);
     }
 
-    free(target_environ);
+    g_free(target_environ);
 
     if (qemu_loglevel_mask(CPU_LOG_PAGE)) {
         qemu_log("guest_base  0x%lx\n", guest_base);
diff --git a/util/envlist.c b/util/envlist.c
index e86857e70a..1eeb7fca87 100644
--- a/util/envlist.c
+++ b/util/envlist.c
@@ -17,16 +17,14 @@ static int envlist_parse(envlist_t *envlist,
     const char *env, int (*)(envlist_t *, const char *));
 
 /*
- * Allocates new envlist and returns pointer to that or
- * NULL in case of error.
+ * Allocates new envlist and returns pointer to it.
  */
 envlist_t *
 envlist_create(void)
 {
 	envlist_t *envlist;
 
-	if ((envlist = malloc(sizeof (*envlist))) == NULL)
-		return (NULL);
+	envlist = g_malloc(sizeof(*envlist));
 
 	QLIST_INIT(&envlist->el_entries);
 	envlist->el_count = 0;
@@ -48,10 +46,10 @@ envlist_free(envlist_t *envlist)
 		entry = envlist->el_entries.lh_first;
 		QLIST_REMOVE(entry, ev_link);
 
-		free((char *)entry->ev_var);
-		free(entry);
+		g_free((char *)entry->ev_var);
+		g_free(entry);
 	}
-	free(envlist);
+	g_free(envlist);
 }
 
 /*
@@ -101,8 +99,7 @@ envlist_parse(envlist_t *envlist, const char *env,
 	if ((envlist == NULL) || (env == NULL))
 		return (EINVAL);
 
-	if ((tmpenv = strdup(env)) == NULL)
-		return (errno);
+	tmpenv = g_strdup(env);
     envsave = tmpenv;
 
     do {
@@ -117,7 +114,7 @@ envlist_parse(envlist_t *envlist, const char *env,
         tmpenv = envvar + 1;
     } while (envvar != NULL);
 
-    free(envsave);
+    g_free(envsave);
     return ret;
 }
 
@@ -155,18 +152,14 @@ envlist_setenv(envlist_t *envlist, const char *env)
 
 	if (entry != NULL) {
 		QLIST_REMOVE(entry, ev_link);
-		free((char *)entry->ev_var);
-		free(entry);
+		g_free((char *)entry->ev_var);
+		g_free(entry);
 	} else {
 		envlist->el_count++;
 	}
 
-	if ((entry = malloc(sizeof (*entry))) == NULL)
-		return (errno);
-	if ((entry->ev_var = strdup(env)) == NULL) {
-		free(entry);
-		return (errno);
-	}
+	entry = g_malloc(sizeof(*entry));
+	entry->ev_var = g_strdup(env);
 	QLIST_INSERT_HEAD(&envlist->el_entries, entry, ev_link);
 
 	return (0);
@@ -201,8 +194,8 @@ envlist_unsetenv(envlist_t *envlist, const char *env)
 	}
 	if (entry != NULL) {
 		QLIST_REMOVE(entry, ev_link);
-		free((char *)entry->ev_var);
-		free(entry);
+		g_free((char *)entry->ev_var);
+		g_free(entry);
 
 		envlist->el_count--;
 	}
@@ -212,12 +205,12 @@ envlist_unsetenv(envlist_t *envlist, const char *env)
 /*
  * Returns given envlist as array of strings (in same form that
  * global variable environ is).  Caller must free returned memory
- * by calling free(3) for each element and for the array.  Returned
- * array and given envlist are not related (no common references).
+ * by calling g_free for each element and the array.
+ * Returned array and given envlist are not related (no common
+ * references).
  *
  * If caller provides count pointer, number of items in array is
- * stored there.  In case of error, NULL is returned and no memory
- * is allocated.
+ * stored there.
  */
 char **
 envlist_to_environ(const envlist_t *envlist, size_t *count)
@@ -225,13 +218,11 @@ envlist_to_environ(const envlist_t *envlist, size_t *count)
 	struct envlist_entry *entry;
 	char **env, **penv;
 
-	penv = env = malloc((envlist->el_count + 1) * sizeof (char *));
-	if (env == NULL)
-		return (NULL);
+	penv = env = g_malloc((envlist->el_count + 1) * sizeof(char *));
 
 	for (entry = envlist->el_entries.lh_first; entry != NULL;
 	    entry = entry->ev_link.le_next) {
-		*(penv++) = strdup(entry->ev_var);
+		*(penv++) = g_strdup(entry->ev_var);
 	}
 	*penv = NULL; /* NULL terminate the list */
 
-- 
2.11.0

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

* [Qemu-devel] [PULL 10/23] block: Make 'replication_state' an enum
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (8 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 09/23] util: Use g_malloc/g_free in envlist.c Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments Michael Tokarev
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, qemu-trivial, Michael Tokarev

From: Fam Zheng <famz@redhat.com>

BDRVReplicationState.replication_state is a name with a bit of
duplication, plus it could be an enum like BDRVReplicationState.mode,
which is more readable and also more straightforward in a debugger.

Rename it, and improve the type while at it.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 block/replication.c | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/block/replication.c b/block/replication.c
index d300c15475..3885f04c31 100644
--- a/block/replication.c
+++ b/block/replication.c
@@ -22,9 +22,17 @@
 #include "qapi/error.h"
 #include "replication.h"
 
+typedef enum {
+    BLOCK_REPLICATION_NONE,             /* block replication is not started */
+    BLOCK_REPLICATION_RUNNING,          /* block replication is running */
+    BLOCK_REPLICATION_FAILOVER,         /* failover is running in background */
+    BLOCK_REPLICATION_FAILOVER_FAILED,  /* failover failed */
+    BLOCK_REPLICATION_DONE,             /* block replication is done */
+} ReplicationStage;
+
 typedef struct BDRVReplicationState {
     ReplicationMode mode;
-    int replication_state;
+    ReplicationStage stage;
     BdrvChild *active_disk;
     BdrvChild *hidden_disk;
     BdrvChild *secondary_disk;
@@ -36,14 +44,6 @@ typedef struct BDRVReplicationState {
     int error;
 } BDRVReplicationState;
 
-enum {
-    BLOCK_REPLICATION_NONE,             /* block replication is not started */
-    BLOCK_REPLICATION_RUNNING,          /* block replication is running */
-    BLOCK_REPLICATION_FAILOVER,         /* failover is running in background */
-    BLOCK_REPLICATION_FAILOVER_FAILED,  /* failover failed */
-    BLOCK_REPLICATION_DONE,             /* block replication is done */
-};
-
 static void replication_start(ReplicationState *rs, ReplicationMode mode,
                               Error **errp);
 static void replication_do_checkpoint(ReplicationState *rs, Error **errp);
@@ -141,10 +141,10 @@ static void replication_close(BlockDriverState *bs)
 {
     BDRVReplicationState *s = bs->opaque;
 
-    if (s->replication_state == BLOCK_REPLICATION_RUNNING) {
+    if (s->stage == BLOCK_REPLICATION_RUNNING) {
         replication_stop(s->rs, false, NULL);
     }
-    if (s->replication_state == BLOCK_REPLICATION_FAILOVER) {
+    if (s->stage == BLOCK_REPLICATION_FAILOVER) {
         block_job_cancel_sync(s->active_disk->bs->job);
     }
 
@@ -174,7 +174,7 @@ static int64_t replication_getlength(BlockDriverState *bs)
 
 static int replication_get_io_status(BDRVReplicationState *s)
 {
-    switch (s->replication_state) {
+    switch (s->stage) {
     case BLOCK_REPLICATION_NONE:
         return -EIO;
     case BLOCK_REPLICATION_RUNNING:
@@ -403,7 +403,7 @@ static void backup_job_completed(void *opaque, int ret)
     BlockDriverState *bs = opaque;
     BDRVReplicationState *s = bs->opaque;
 
-    if (s->replication_state != BLOCK_REPLICATION_FAILOVER) {
+    if (s->stage != BLOCK_REPLICATION_FAILOVER) {
         /* The backup job is cancelled unexpectedly */
         s->error = -EIO;
     }
@@ -445,7 +445,7 @@ static void replication_start(ReplicationState *rs, ReplicationMode mode,
     aio_context_acquire(aio_context);
     s = bs->opaque;
 
-    if (s->replication_state != BLOCK_REPLICATION_NONE) {
+    if (s->stage != BLOCK_REPLICATION_NONE) {
         error_setg(errp, "Block replication is running or done");
         aio_context_release(aio_context);
         return;
@@ -545,7 +545,7 @@ static void replication_start(ReplicationState *rs, ReplicationMode mode,
         abort();
     }
 
-    s->replication_state = BLOCK_REPLICATION_RUNNING;
+    s->stage = BLOCK_REPLICATION_RUNNING;
 
     if (s->mode == REPLICATION_MODE_SECONDARY) {
         secondary_do_checkpoint(s, errp);
@@ -581,7 +581,7 @@ static void replication_get_error(ReplicationState *rs, Error **errp)
     aio_context_acquire(aio_context);
     s = bs->opaque;
 
-    if (s->replication_state != BLOCK_REPLICATION_RUNNING) {
+    if (s->stage != BLOCK_REPLICATION_RUNNING) {
         error_setg(errp, "Block replication is not running");
         aio_context_release(aio_context);
         return;
@@ -601,7 +601,7 @@ static void replication_done(void *opaque, int ret)
     BDRVReplicationState *s = bs->opaque;
 
     if (ret == 0) {
-        s->replication_state = BLOCK_REPLICATION_DONE;
+        s->stage = BLOCK_REPLICATION_DONE;
 
         /* refresh top bs's filename */
         bdrv_refresh_filename(bs);
@@ -610,7 +610,7 @@ static void replication_done(void *opaque, int ret)
         s->hidden_disk = NULL;
         s->error = 0;
     } else {
-        s->replication_state = BLOCK_REPLICATION_FAILOVER_FAILED;
+        s->stage = BLOCK_REPLICATION_FAILOVER_FAILED;
         s->error = -EIO;
     }
 }
@@ -625,7 +625,7 @@ static void replication_stop(ReplicationState *rs, bool failover, Error **errp)
     aio_context_acquire(aio_context);
     s = bs->opaque;
 
-    if (s->replication_state != BLOCK_REPLICATION_RUNNING) {
+    if (s->stage != BLOCK_REPLICATION_RUNNING) {
         error_setg(errp, "Block replication is not running");
         aio_context_release(aio_context);
         return;
@@ -633,7 +633,7 @@ static void replication_stop(ReplicationState *rs, bool failover, Error **errp)
 
     switch (s->mode) {
     case REPLICATION_MODE_PRIMARY:
-        s->replication_state = BLOCK_REPLICATION_DONE;
+        s->stage = BLOCK_REPLICATION_DONE;
         s->error = 0;
         break;
     case REPLICATION_MODE_SECONDARY:
@@ -648,12 +648,12 @@ static void replication_stop(ReplicationState *rs, bool failover, Error **errp)
 
         if (!failover) {
             secondary_do_checkpoint(s, errp);
-            s->replication_state = BLOCK_REPLICATION_DONE;
+            s->stage = BLOCK_REPLICATION_DONE;
             aio_context_release(aio_context);
             return;
         }
 
-        s->replication_state = BLOCK_REPLICATION_FAILOVER;
+        s->stage = BLOCK_REPLICATION_FAILOVER;
         commit_active_start(NULL, s->active_disk->bs, s->secondary_disk->bs,
                             BLOCK_JOB_INTERNAL, 0, BLOCKDEV_ON_ERROR_REPORT,
                             NULL, replication_done, bs, true, errp);
-- 
2.11.0

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

* [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (9 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 10/23] block: Make 'replication_state' an enum Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-09 18:04   ` Eric Blake
  2017-05-09 19:47   ` Stefan Hajnoczi
  2017-05-07  7:02 ` [Qemu-devel] [PULL 12/23] use _Static_assert in QEMU_BUILD_BUG_ON Michael Tokarev
                   ` (13 subsequent siblings)
  24 siblings, 2 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel
  Cc: sochin.jiang fix wrong parameter comments in channel-file.h,
	qemu-trivial, Michael Tokarev

From: "sochin.jiang fix wrong parameter comments in channel-file.h" <sochin@aliyun.com>

Signed-off-by: sochin.jiang <sochin@aliyun.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 include/io/channel-file.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/io/channel-file.h b/include/io/channel-file.h
index d2462c2ed7..79245f1183 100644
--- a/include/io/channel-file.h
+++ b/include/io/channel-file.h
@@ -71,7 +71,7 @@ qio_channel_file_new_fd(int fd);
 
 /**
  * qio_channel_file_new_path:
- * @fd: the file descriptor
+ * @path: the file path
  * @flags: the open flags (O_RDONLY|O_WRONLY|O_RDWR, etc)
  * @mode: the file creation mode if O_WRONLY is set in @flags
  * @errp: pointer to initialized error object
-- 
2.11.0

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

* [Qemu-devel] [PULL 12/23] use _Static_assert in QEMU_BUILD_BUG_ON
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (10 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 13/23] qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip Michael Tokarev
                   ` (12 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Grapentin, qemu-trivial, Michael Tokarev

From: Andreas Grapentin <andreas@grapentin.org>

QEMU_BUILD_BUG_ON should use C11's _Static_assert, if the compiler supports it,
to provide more readable messages on failure.

We check for _Static_assert in configure, and set CONFIG_STATIC_ASSERT
accordingly. QEMU_BUILD_BUG_ON invokes _Static_assert if CONFIG_STATIC_ASSERT
is defined, and reverts to the old way otherwise.

That way, systems without C11 conforming compiler will still have the old
messages, as verified by intentionally breaking the configure check.

the following example output was generated by inverting the condition in
QEMU_BUILD_BUG_ON:

without _Static_assert:

> In file included from /qemu/include/qemu/osdep.h:36:0,
>                  from /qemu/qga/commands.c:13:
> /qemu/qga/commands.c: In function ‘qmp_guest_exec_status’:
> /qemu/include/qemu/compiler.h:89:12: error: negative width in bit-field ‘<anonymous>’
>      struct { \
>             ^
> /qemu/include/qemu/compiler.h:96:38: note: in expansion of macro  QEMU_BUILD_BUG_ON_STRUCT’
>  #define QEMU_BUILD_BUG_ON(x) typedef QEMU_BUILD_BUG_ON_STRUCT(x) \
>                                       ^~~~~~~~~~~~~~~~~~~~~~~~
> /qemu/include/qemu/atomic.h:146:5: note: in expansion of macro ‘QEMU_BUILD_BUG_ON’
>      QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *));   \
>      ^~~~~~~~~~~~~~~~~
> /qemu/include/qemu/atomic.h:417:5: note: in expansion of macro ‘atomic_load_acquire’
>      atomic_load_acquire(ptr)
>      ^~~~~~~~~~~~~~~~~~~
> /qemu/qga/commands.c:160:21: note: in expansion of macro ‘atomic_mb_read’
>      bool finished = atomic_mb_read(&gei->finished);
>                      ^~~~~~~~~~~~~~

with _Static_assert:

> In file included from /qemu/include/qemu/osdep.h:36:0,
>                  from /qemu/qga/commands.c:13:
> /qemu/qga/commands.c: In function ‘qmp_guest_exec_status’:
> /qemu/include/qemu/compiler.h:94:30: error: static assertion failed: "not expecting: sizeof(*&gei->finished) > sizeof(void *)"
>  #define QEMU_BUILD_BUG_ON(x) _Static_assert(!(x), #x)
>                               ^
> /qemu/include/qemu/atomic.h:146:5: note: in expansion of macro ‘QEMU_BUILD_BUG_ON’
>      QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *));   \
>      ^~~~~~~~~~~~~~~~~
> /qemu/include/qemu/atomic.h:417:5: note: in expansion of macro ‘atomic_load_acquire’
>      atomic_load_acquire(ptr)
>      ^~~~~~~~~~~~~~~~~~~
> /qemu/qga/commands.c:160:21: note: in expansion of macro ‘atomic_mb_read’
>      bool finished = atomic_mb_read(&gei->finished);
>                      ^~~~~~~~~~~~~~

Signed-off-by: Andreas Grapentin <andreas@grapentin.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 configure               | 18 ++++++++++++++++++
 include/qemu/compiler.h |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 48a9370cc6..39aadba813 100755
--- a/configure
+++ b/configure
@@ -4853,6 +4853,20 @@ EOF
 fi
 
 ##########################################
+# check for _Static_assert()
+
+have_static_assert=no
+cat > $TMPC << EOF
+_Static_assert(1, "success");
+int main(void) {
+    return 0;
+}
+EOF
+if compile_prog "" "" ; then
+    have_static_assert=yes
+fi
+
+##########################################
 # End of CC checks
 # After here, no more $cc or $ld runs
 
@@ -5848,6 +5862,10 @@ if test "$have_sysmacros" = "yes" ; then
   echo "CONFIG_SYSMACROS=y" >> $config_host_mak
 fi
 
+if test "$have_static_assert" = "yes" ; then
+  echo "CONFIG_STATIC_ASSERT=y" >> $config_host_mak
+fi
+
 # Hold two types of flag:
 #   CONFIG_THREAD_SETNAME_BYTHREAD  - we've got a way of setting the name on
 #                                     a thread we have a handle to
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h
index 18e610083a..340e5fdc09 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -82,7 +82,9 @@
         int:(x) ? -1 : 1; \
     }
 
-#ifdef __COUNTER__
+#if defined(CONFIG_STATIC_ASSERT)
+#define QEMU_BUILD_BUG_ON(x) _Static_assert(!(x), "not expecting: " #x)
+#elif defined(__COUNTER__)
 #define QEMU_BUILD_BUG_ON(x) typedef QEMU_BUILD_BUG_ON_STRUCT(x) \
     glue(qemu_build_bug_on__, __COUNTER__) __attribute__((unused))
 #else
-- 
2.11.0

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

* [Qemu-devel] [PULL 13/23] qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (11 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 12/23] use _Static_assert in QEMU_BUILD_BUG_ON Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 14/23] virtio-blk: Remove useless condition around g_free() Michael Tokarev
                   ` (11 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Thomas Huth, qemu-trivial, Michael Tokarev

From: Thomas Huth <thuth@redhat.com>

There are some broken URLs in the qemu-doc which reference tools that
are not available at their original location anymore. Fortunately, they
have been mirrored to archive.org, so point to that location instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qemu-doc.texi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/qemu-doc.texi b/qemu-doc.texi
index 794ab4a080..50411bc0ff 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -1878,8 +1878,8 @@ resolution modes which the Cirrus Logic BIOS does not support (i.e. >=
 Windows 9x does not correctly use the CPU HLT
 instruction. The result is that it takes host CPU cycles even when
 idle. You can install the utility from
-@url{http://www.user.cityline.ru/~maxamn/amnhltm.zip} to solve this
-problem. Note that no such tool is needed for NT, 2000 or XP.
+@url{http://web.archive.org/web/20060212132151/http://www.user.cityline.ru/~maxamn/amnhltm.zip}
+to solve this problem. Note that no such tool is needed for NT, 2000 or XP.
 
 @subsubsection Windows 2000 disk full problem
 
@@ -1927,9 +1927,9 @@ vvfat block device ("-hdb fat:directory_which_holds_the_SP").
 @subsubsection CPU usage reduction
 
 DOS does not correctly use the CPU HLT instruction. The result is that
-it takes host CPU cycles even when idle. You can install the utility
-from @url{http://www.vmware.com/software/dosidle210.zip} to solve this
-problem.
+it takes host CPU cycles even when idle. You can install the utility from
+@url{http://web.archive.org/web/20051222085335/http://www.vmware.com/software/dosidle210.zip}
+to solve this problem.
 
 @node QEMU System emulator for non PC targets
 @chapter QEMU System emulator for non PC targets
-- 
2.11.0

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

* [Qemu-devel] [PULL 14/23] virtio-blk: Remove useless condition around g_free()
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (12 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 13/23] qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 15/23] hw/core/generic-loader: Fix crash when running without CPU Michael Tokarev
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, qemu-trivial, Michael Tokarev

From: Fam Zheng <famz@redhat.com>

Laszlo spotted and studied this wasteful "if". He pointed out:

The original virtio_blk_free_request needed an "if" as it accesses one
field, since 671ec3f05655 ("virtio-blk: Convert VirtIOBlockReq.elem to
pointer", 2014-06-11); later on in f897bf751fbd ("virtio-blk: embed
VirtQueueElement in VirtIOBlockReq", 2014-07-09) the field became
embedded, so the "if" became unnecessary (at which point we were using
g_slice_free(), but it is the same.

Now drop it.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/block/virtio-blk.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 98c16a7a9a..604d37dfc8 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -42,9 +42,7 @@ static void virtio_blk_init_request(VirtIOBlock *s, VirtQueue *vq,
 
 static void virtio_blk_free_request(VirtIOBlockReq *req)
 {
-    if (req) {
-        g_free(req);
-    }
+    g_free(req);
 }
 
 static void virtio_blk_req_complete(VirtIOBlockReq *req, unsigned char status)
-- 
2.11.0

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

* [Qemu-devel] [PULL 15/23] hw/core/generic-loader: Fix crash when running without CPU
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (13 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 14/23] virtio-blk: Remove useless condition around g_free() Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 16/23] virtfs: allow a device id to be specified in the -virtfs option Michael Tokarev
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Thomas Huth, qemu-trivial, Michael Tokarev

From: Thomas Huth <thuth@redhat.com>

When running QEMU with "-M none -device loader,file=kernel.elf", it
currently crashes with a segmentation fault, because the "none"-machine
does not have any CPU by default and the generic loader code tries
to dereference s->cpu. Fix it by adding an appropriate check for a
NULL pointer.

Reported-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/core/generic-loader.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c
index 58f1f02902..46012673c3 100644
--- a/hw/core/generic-loader.c
+++ b/hw/core/generic-loader.c
@@ -137,20 +137,21 @@ static void generic_loader_realize(DeviceState *dev, Error **errp)
 #endif
 
     if (s->file) {
+        AddressSpace *as = s->cpu ? s->cpu->as :  NULL;
+
         if (!s->force_raw) {
             size = load_elf_as(s->file, NULL, NULL, &entry, NULL, NULL,
-                               big_endian, 0, 0, 0, s->cpu->as);
+                               big_endian, 0, 0, 0, as);
 
             if (size < 0) {
                 size = load_uimage_as(s->file, &entry, NULL, NULL, NULL, NULL,
-                                      s->cpu->as);
+                                      as);
             }
         }
 
         if (size < 0 || s->force_raw) {
             /* Default to the maximum size being the machine's ram size */
-            size = load_image_targphys_as(s->file, s->addr, ram_size,
-                                          s->cpu->as);
+            size = load_image_targphys_as(s->file, s->addr, ram_size, as);
         } else {
             s->addr = entry;
         }
-- 
2.11.0

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

* [Qemu-devel] [PULL 16/23] virtfs: allow a device id to be specified in the -virtfs option
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (14 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 15/23] hw/core/generic-loader: Fix crash when running without CPU Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portability issue Michael Tokarev
                   ` (8 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Chris Webb, qemu-trivial, Michael Tokarev

From: Chris Webb <chris@arachsys.com>

When using a virtfs root filesystem, the mount_tag needs to be set to
/dev/root. This can be done long-hand as

  -fsdev local,id=root,path=/path/to/rootfs,...
  -device virtio-9p-pci,fsdev=root,mount_tag=/dev/root

but the -virtfs shortcut cannot be used as it hard-codes the device identifier
to match the mount_tag, and device identifiers may not contain '/':

  $ qemu-system-x86_64 -virtfs local,path=/foo,mount_tag=/dev/root,security_model=passthrough
  qemu-system-x86_64: -virtfs local,path=/foo,mount_tag=/dev/root,security_model=passthrough: duplicate fsdev id: /dev/root

To support this case using -virtfs, we allow the device identifier to be
specified explicitly when the mount_tag is not suitable:

  -virtfs local,id=root,path=/path/to/rootfs,mount_tag=/dev/root,...

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qemu-options.hx | 2 +-
 vl.c            | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index a24fef2107..a5b0589cb7 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -876,7 +876,7 @@ ETEXI
 
 DEF("virtfs", HAS_ARG, QEMU_OPTION_virtfs,
     "-virtfs local,path=path,mount_tag=tag,security_model=[mapped-xattr|mapped-file|passthrough|none]\n"
-    "        [,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd]\n",
+    "        [,id=id][,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd]\n",
     QEMU_ARCH_ALL)
 
 STEXI
diff --git a/vl.c b/vl.c
index 42d4bce439..10f3afd860 100644
--- a/vl.c
+++ b/vl.c
@@ -3524,10 +3524,11 @@ int main(int argc, char **argv, char **envp)
                     exit(1);
                 }
                 fsdev = qemu_opts_create(qemu_find_opts("fsdev"),
+                                         qemu_opts_id(opts) ?:
                                          qemu_opt_get(opts, "mount_tag"),
                                          1, NULL);
                 if (!fsdev) {
-                    error_report("duplicate fsdev id: %s",
+                    error_report("duplicate or invalid fsdev id: %s",
                                  qemu_opt_get(opts, "mount_tag"));
                     exit(1);
                 }
@@ -3565,7 +3566,7 @@ int main(int argc, char **argv, char **envp)
                                           &error_abort);
                 qemu_opt_set(device, "driver", "virtio-9p-pci", &error_abort);
                 qemu_opt_set(device, "fsdev",
-                             qemu_opt_get(opts, "mount_tag"), &error_abort);
+                             qemu_opts_id(fsdev), &error_abort);
                 qemu_opt_set(device, "mount_tag",
                              qemu_opt_get(opts, "mount_tag"), &error_abort);
                 break;
-- 
2.11.0

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

* [Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portability issue
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (15 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 16/23] virtfs: allow a device id to be specified in the -virtfs option Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 18/23] scripts: Switch to more portable Perl shebang Michael Tokarev
                   ` (7 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kamil Rytarowski, qemu-trivial, Michael Tokarev

From: Kamil Rytarowski <n54@gmx.com>

Appease pkgsrc and use portable shell variable comparison.
This switches "==" to "=". It should not be a functional change.

Signed-off-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 scripts/qemu-binfmt-conf.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh
index 0f1aa63872..8afc3eb5bb 100755
--- a/scripts/qemu-binfmt-conf.sh
+++ b/scripts/qemu-binfmt-conf.sh
@@ -284,12 +284,12 @@ while true ; do
         shift
         # check given cpu is in the supported CPU list
         for cpu in ${qemu_target_list} ; do
-            if [ "$cpu" == "$1" ] ; then
+            if [ "$cpu" = "$1" ] ; then
                 break
             fi
         done
 
-        if [ "$cpu" == "$1" ] ; then
+        if [ "$cpu" = "$1" ] ; then
             qemu_target_list="$1"
         else
             echo "ERROR: unknown CPU \"$1\"" 1>&2
-- 
2.11.0

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

* [Qemu-devel] [PULL 18/23] scripts: Switch to more portable Perl shebang
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (16 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portability issue Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 19/23] tests: Ignore another built executable (test-hmp) Michael Tokarev
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kamil Rytarowski, qemu-trivial, Michael Tokarev

From: Kamil Rytarowski <n54@gmx.com>

The default NetBSD package manager is pkgsrc and it installs Perl
along other third party programs under custom and configurable prefix.
The default prefix for binary prebuilt packages is /usr/pkg, and the
Perl executable lands in /usr/pkg/bin/perl.

This change switches "/usr/bin/perl" to "/usr/bin/env perl" as it's
the most portable solution that should work for almost everybody.
Perl's executable is detected automatically.

This change switches -w option passed to the executable with more
modern "use warnings;" approach. There is no functional change to the
default behavior.

Signed-off-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 scripts/checkpatch.pl           | 3 ++-
 scripts/clean-header-guards.pl  | 3 ++-
 scripts/cleanup-trace-events.pl | 2 +-
 scripts/disas-objdump.pl        | 4 +++-
 scripts/get_maintainer.pl       | 3 ++-
 scripts/shaderinclude.pl        | 2 +-
 scripts/switch-timer-api        | 2 +-
 scripts/texi2pod.pl             | 4 +++-
 8 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index f084542934..3bb6fc95bd 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 # (c) 2001, Dave Jones. (the file handling bit)
 # (c) 2005, Joel Schopp <jschopp@austin.ibm.com> (the ugly bit)
 # (c) 2007,2008, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite)
@@ -6,6 +6,7 @@
 # Licensed under the terms of the GNU GPL License version 2
 
 use strict;
+use warnings;
 
 my $P = $0;
 $P =~ s@.*/@@g;
diff --git a/scripts/clean-header-guards.pl b/scripts/clean-header-guards.pl
index 54ab99ae29..5e67f1998c 100755
--- a/scripts/clean-header-guards.pl
+++ b/scripts/clean-header-guards.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Clean up include guards in headers
 #
@@ -28,6 +28,7 @@
 #   "cc -E -DGUARD_H -c -P -", and fed the test program on stdin.
 
 use strict;
+use warnings;
 use Getopt::Std;
 
 # Stuff we don't want to clean because we import it into our tree:
diff --git a/scripts/cleanup-trace-events.pl b/scripts/cleanup-trace-events.pl
index 7e808efb6a..e93abc00da 100755
--- a/scripts/cleanup-trace-events.pl
+++ b/scripts/cleanup-trace-events.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # Copyright (C) 2013 Red Hat, Inc.
 #
 # Authors:
diff --git a/scripts/disas-objdump.pl b/scripts/disas-objdump.pl
index 8f7e8182a1..bec905f04b 100755
--- a/scripts/disas-objdump.pl
+++ b/scripts/disas-objdump.pl
@@ -1,4 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
+
+use warnings;
 
 use File::Temp qw/ tempfile /;
 use Getopt::Long;
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index 8261bcb1ad..d7c2311123 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 # (c) 2007, Joe Perches <joe@perches.com>
 #           created from checkpatch.pl
 #
@@ -11,6 +11,7 @@
 # Licensed under the terms of the GNU GPL License version 2
 
 use strict;
+use warnings;
 
 my $P = $0;
 my $V = '0.26';
diff --git a/scripts/shaderinclude.pl b/scripts/shaderinclude.pl
index 81b5146332..cd3bb40b12 100644
--- a/scripts/shaderinclude.pl
+++ b/scripts/shaderinclude.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 use strict;
 use warnings;
 
diff --git a/scripts/switch-timer-api b/scripts/switch-timer-api
index b0e230b9f1..41736d11dd 100755
--- a/scripts/switch-timer-api
+++ b/scripts/switch-timer-api
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
diff --git a/scripts/texi2pod.pl b/scripts/texi2pod.pl
index 6e8fec41a1..39ce584a32 100755
--- a/scripts/texi2pod.pl
+++ b/scripts/texi2pod.pl
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#! /usr/bin/env perl
 
 #   Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
 
@@ -22,6 +22,8 @@
 # markup to Perl POD format.  It's intended to be used to extract
 # something suitable for a manpage from a Texinfo document.
 
+use warnings;
+
 $output = 0;
 $skipping = 0;
 %sects = ();
-- 
2.11.0

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

* [Qemu-devel] [PULL 19/23] tests: Ignore another built executable (test-hmp)
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (17 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 18/23] scripts: Switch to more portable Perl shebang Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 20/23] jazz_led: fix bad snprintf Michael Tokarev
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Eric Blake, qemu-trivial, Michael Tokarev

From: Eric Blake <eblake@redhat.com>

Commit 78f86a2b7 added a new test, but forgot to exclude the built
binary from version control.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 tests/.gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/.gitignore b/tests/.gitignore
index 5ab00a9c95..40c2e3e757 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -40,6 +40,7 @@ test-crypto-tlssession-server/
 test-crypto-xts
 test-cutils
 test-hbitmap
+test-hmp
 test-int128
 test-iov
 test-io-channel-buffer
-- 
2.11.0

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

* [Qemu-devel] [PULL 20/23] jazz_led: fix bad snprintf
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (18 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 19/23] tests: Ignore another built executable (test-hmp) Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 21/23] MAINTAINERS: Update paths for main loop Michael Tokarev
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, qemu-trivial, Michael Tokarev

From: Paolo Bonzini <pbonzini@redhat.com>

Detected by GCC 7's -Wformat-truncation.  snprintf writes at most
2 bytes here including the terminating NUL, so the result is
truncated.  In addition, the newline at the end is pointless.
Fix the buffer size and the format string.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 hw/display/jazz_led.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/display/jazz_led.c b/hw/display/jazz_led.c
index b72fdb1717..3c97d56434 100644
--- a/hw/display/jazz_led.c
+++ b/hw/display/jazz_led.c
@@ -227,13 +227,13 @@ static void jazz_led_invalidate_display(void *opaque)
 static void jazz_led_text_update(void *opaque, console_ch_t *chardata)
 {
     LedState *s = opaque;
-    char buf[2];
+    char buf[3];
 
     dpy_text_cursor(s->con, -1, -1);
     qemu_console_resize(s->con, 2, 1);
 
     /* TODO: draw the segments */
-    snprintf(buf, 2, "%02hhx\n", s->segments);
+    snprintf(buf, 3, "%02hhx", s->segments);
     console_write_ch(chardata++, ATTR2CHTYPE(buf[0], QEMU_COLOR_BLUE,
                                              QEMU_COLOR_BLACK, 1));
     console_write_ch(chardata++, ATTR2CHTYPE(buf[1], QEMU_COLOR_BLUE,
-- 
2.11.0

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

* [Qemu-devel] [PULL 21/23] MAINTAINERS: Update paths for main loop
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (19 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 20/23] jazz_led: fix bad snprintf Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 22/23] MAINTAINERS: Update paths for AioContext implementation Michael Tokarev
                   ` (3 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, qemu-trivial, Michael Tokarev

From: Paolo Bonzini <pbonzini@redhat.com>

Moved by c2b38b2 ("block: move AioContext, QEMUTimer, main-loop to
libqemuutil"), let's update MAINTAINERS too.

Reported-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index a1d2b3a4d3..e6822b23bf 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1305,8 +1305,8 @@ Main loop
 M: Paolo Bonzini <pbonzini@redhat.com>
 S: Maintained
 F: cpus.c
-F: main-loop.c
-F: qemu-timer.c
+F: util/main-loop.c
+F: util/qemu-timer.c
 F: vl.c
 
 Human Monitor (HMP)
-- 
2.11.0

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

* [Qemu-devel] [PULL 22/23] MAINTAINERS: Update paths for AioContext implementation
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (20 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 21/23] MAINTAINERS: Update paths for main loop Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  7:02 ` [Qemu-devel] [PULL 23/23] tests: Remove redundant assignment Michael Tokarev
                   ` (2 subsequent siblings)
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, qemu-trivial, Michael Tokarev

From: Paolo Bonzini <pbonzini@redhat.com>

Moved by c2b38b2
("block: move AioContext, QEMUTimer, main-loop to libqemuutil")

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index e6822b23bf..e79ffb3f8a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1175,8 +1175,8 @@ M: Stefan Hajnoczi <stefanha@redhat.com>
 M: Fam Zheng <famz@redhat.com>
 L: qemu-block@nongnu.org
 S: Supported
-F: async.c
-F: aio-*.c
+F: util/async.c
+F: util/aio-*.c
 F: block/io.c
 F: migration/block*
 F: include/block/aio.h
-- 
2.11.0

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

* [Qemu-devel] [PULL 23/23] tests: Remove redundant assignment
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (21 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 22/23] MAINTAINERS: Update paths for AioContext implementation Michael Tokarev
@ 2017-05-07  7:02 ` Michael Tokarev
  2017-05-07  8:24 ` [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 no-reply
  2017-05-08 17:30 ` Stefan Hajnoczi
  24 siblings, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2017-05-07  7:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, qemu-trivial, Michael Tokarev

From: Fam Zheng <famz@redhat.com>

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 tests/postcopy-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/postcopy-test.c b/tests/postcopy-test.c
index de35a18903..e86f87656a 100644
--- a/tests/postcopy-test.c
+++ b/tests/postcopy-test.c
@@ -41,7 +41,7 @@ static bool ufd_version_check(void)
     struct uffdio_api api_struct;
     uint64_t ioctl_mask;
 
-    int ufd = ufd = syscall(__NR_userfaultfd, O_CLOEXEC);
+    int ufd = syscall(__NR_userfaultfd, O_CLOEXEC);
 
     if (ufd == -1) {
         g_test_message("Skipping test: userfaultfd not available");
-- 
2.11.0

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

* Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (22 preceding siblings ...)
  2017-05-07  7:02 ` [Qemu-devel] [PULL 23/23] tests: Remove redundant assignment Michael Tokarev
@ 2017-05-07  8:24 ` no-reply
  2017-05-08 17:30 ` Stefan Hajnoczi
  24 siblings, 0 replies; 30+ messages in thread
From: no-reply @ 2017-05-07  8:24 UTC (permalink / raw)
  To: mjt; +Cc: famz, qemu-devel, qemu-trivial

Hi,

This series seems to have some coding style problems. See output below for
more information:

Message-id: cover.1494140527.git.mjt@msgid.tls.msk.ru
Subject: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash

BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0

git config --local diff.renamelimit 0
git config --local diff.renames True

commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
    echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
    if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
        failed=1
        echo
    fi
    n=$((n+1))
done

exit $failed
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
8acf5d3 tests: Remove redundant assignment
0f494a6 MAINTAINERS: Update paths for AioContext implementation
9974be0 MAINTAINERS: Update paths for main loop
3e8c3af jazz_led: fix bad snprintf
8f753b9 tests: Ignore another built executable (test-hmp)
7d5489d scripts: Switch to more portable Perl shebang
536d031 scripts/qemu-binfmt-conf.sh: Fix shell portability issue
a3e0b2b virtfs: allow a device id to be specified in the -virtfs option
3227c55 hw/core/generic-loader: Fix crash when running without CPU
22bf6ca virtio-blk: Remove useless condition around g_free()
65fe06c qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip
1f55ac0 use _Static_assert in QEMU_BUILD_BUG_ON
58005fb channel-file: fix wrong parameter comments
9029b8b block: Make 'replication_state' an enum
d5f07f0 util: Use g_malloc/g_free in envlist.c
e1d8273 qga: fix compiler warnings (clang 5)
077a79e device_tree: fix compiler warnings (clang 5)
965b305 usb-ccid: make ccid_write_data_block() cope with null buffers
3b19d93 tests: Ignore more test executables
296cc0d Add 'none' as type for drive's if option
708674a doc: fix function spelling
afcc583 ppc_booke: drop useless assignment
8b94589 Remove reduntant qemu: from error functions

=== OUTPUT BEGIN ===
Checking PATCH 1/23: Remove reduntant qemu: from error functions...
Checking PATCH 2/23: ppc_booke: drop useless assignment...
Checking PATCH 3/23: doc: fix function spelling...
Checking PATCH 4/23: Add 'none' as type for drive's if option...
Checking PATCH 5/23: tests: Ignore more test executables...
Checking PATCH 6/23: usb-ccid: make ccid_write_data_block() cope with null buffers...
Checking PATCH 7/23: device_tree: fix compiler warnings (clang 5)...
Checking PATCH 8/23: qga: fix compiler warnings (clang 5)...
Checking PATCH 9/23: util: Use g_malloc/g_free in envlist.c...
ERROR: code indent should never use tabs
#116: FILE: util/envlist.c:27:
+^Ienvlist = g_malloc(sizeof(*envlist));$

ERROR: code indent should never use tabs
#126: FILE: util/envlist.c:49:
+^I^Ig_free((char *)entry->ev_var);$

ERROR: code indent should never use tabs
#127: FILE: util/envlist.c:50:
+^I^Ig_free(entry);$

ERROR: code indent should never use tabs
#130: FILE: util/envlist.c:52:
+^Ig_free(envlist);$

ERROR: code indent should never use tabs
#140: FILE: util/envlist.c:102:
+^Itmpenv = g_strdup(env);$

ERROR: code indent should never use tabs
#159: FILE: util/envlist.c:155:
+^I^Ig_free((char *)entry->ev_var);$

ERROR: code indent should never use tabs
#160: FILE: util/envlist.c:156:
+^I^Ig_free(entry);$

ERROR: code indent should never use tabs
#171: FILE: util/envlist.c:161:
+^Ientry = g_malloc(sizeof(*entry));$

ERROR: code indent should never use tabs
#172: FILE: util/envlist.c:162:
+^Ientry->ev_var = g_strdup(env);$

ERROR: code indent should never use tabs
#182: FILE: util/envlist.c:197:
+^I^Ig_free((char *)entry->ev_var);$

ERROR: code indent should never use tabs
#183: FILE: util/envlist.c:198:
+^I^Ig_free(entry);$

ERROR: code indent should never use tabs
#211: FILE: util/envlist.c:221:
+^Ipenv = env = g_malloc((envlist->el_count + 1) * sizeof(char *));$

ERROR: code indent should never use tabs
#216: FILE: util/envlist.c:225:
+^I^I*(penv++) = g_strdup(entry->ev_var);$

total: 13 errors, 0 warnings, 168 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Checking PATCH 10/23: block: Make 'replication_state' an enum...
Checking PATCH 11/23: channel-file: fix wrong parameter comments...
Checking PATCH 12/23: use _Static_assert in QEMU_BUILD_BUG_ON...
Checking PATCH 13/23: qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip...
Checking PATCH 14/23: virtio-blk: Remove useless condition around g_free()...
Checking PATCH 15/23: hw/core/generic-loader: Fix crash when running without CPU...
Checking PATCH 16/23: virtfs: allow a device id to be specified in the -virtfs option...
Checking PATCH 17/23: scripts/qemu-binfmt-conf.sh: Fix shell portability issue...
Checking PATCH 18/23: scripts: Switch to more portable Perl shebang...
Checking PATCH 19/23: tests: Ignore another built executable (test-hmp)...
Checking PATCH 20/23: jazz_led: fix bad snprintf...
Checking PATCH 21/23: MAINTAINERS: Update paths for main loop...
Checking PATCH 22/23: MAINTAINERS: Update paths for AioContext implementation...
Checking PATCH 23/23: tests: Remove redundant assignment...
=== OUTPUT END ===

Test command exited with code: 1


---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@freelists.org

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

* Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07
  2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
                   ` (23 preceding siblings ...)
  2017-05-07  8:24 ` [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 no-reply
@ 2017-05-08 17:30 ` Stefan Hajnoczi
  2017-05-09 18:08   ` Eric Blake
  2017-05-09 19:47   ` Stefan Hajnoczi
  24 siblings, 2 replies; 30+ messages in thread
From: Stefan Hajnoczi @ 2017-05-08 17:30 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-devel, qemu-trivial

[-- Attachment #1: Type: text/plain, Size: 4260 bytes --]

On Sun, May 07, 2017 at 10:02:03AM +0300, Michael Tokarev wrote:
> The following changes since commit 12a95f320a36ef66f724a49bb05e4fb553ac5dbe:
> 
>   Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)
> 
> are available in the git repository at:
> 
>   git://git.corpit.ru/qemu.git tags/trivial-patches-fetch
> 
> for you to fetch changes up to 311875781e549af91a3216d34c6ef40420bab435:
> 
>   tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)
> 
> ----------------------------------------------------------------
> trivial patches for 2017-05-07
> 
> ----------------------------------------------------------------
> Andreas Grapentin (1):
>       use _Static_assert in QEMU_BUILD_BUG_ON
> 
> Chris Webb (1):
>       virtfs: allow a device id to be specified in the -virtfs option
> 
> Craig Jellick (1):
>       Add 'none' as type for drive's if option
> 
> Eric Blake (2):
>       tests: Ignore more test executables
>       tests: Ignore another built executable (test-hmp)
> 
> Fam Zheng (3):
>       block: Make 'replication_state' an enum
>       virtio-blk: Remove useless condition around g_free()
>       tests: Remove redundant assignment
> 
> Ishani Chugh (1):
>       Remove reduntant qemu: from error functions
> 
> KONRAD Frederic (1):
>       ppc_booke: drop useless assignment
> 
> Kamil Rytarowski (2):
>       scripts/qemu-binfmt-conf.sh: Fix shell portability issue
>       scripts: Switch to more portable Perl shebang
> 
> Marc-André Lureau (1):
>       doc: fix function spelling
> 
> Paolo Bonzini (3):
>       jazz_led: fix bad snprintf
>       MAINTAINERS: Update paths for main loop
>       MAINTAINERS: Update paths for AioContext implementation
> 
> Philippe Mathieu-Daudé (3):
>       usb-ccid: make ccid_write_data_block() cope with null buffers
>       device_tree: fix compiler warnings (clang 5)
>       qga: fix compiler warnings (clang 5)
> 
> Saurav Sachidanand (1):
>       util: Use g_malloc/g_free in envlist.c
> 
> Thomas Huth (2):
>       qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip
>       hw/core/generic-loader: Fix crash when running without CPU
> 
> sochin.jiang fix wrong parameter comments in channel-file.h (1):
>       channel-file: fix wrong parameter comments
> 
>  MAINTAINERS                     |  8 +++----
>  block/replication.c             | 44 +++++++++++++++++++-------------------
>  bsd-user/main.c                 | 14 ++++--------
>  configure                       | 18 ++++++++++++++++
>  device_tree.c                   |  1 +
>  hw/block/virtio-blk.c           |  4 +---
>  hw/core/generic-loader.c        |  9 ++++----
>  hw/display/jazz_led.c           |  4 ++--
>  hw/microblaze/boot.c            |  2 +-
>  hw/nios2/boot.c                 |  2 +-
>  hw/ppc/pnv.c                    |  2 +-
>  hw/ppc/ppc_booke.c              |  1 -
>  hw/s390x/sclp.c                 |  4 ++--
>  hw/tricore/tricore_testboard.c  |  2 +-
>  hw/usb/dev-smartcard-reader.c   |  5 ++++-
>  include/io/channel-file.h       |  2 +-
>  include/io/channel.h            |  2 +-
>  include/qemu/compiler.h         |  4 +++-
>  linux-user/main.c               |  9 +++-----
>  numa.c                          |  4 ++--
>  qemu-doc.texi                   | 10 ++++-----
>  qemu-options.hx                 |  4 ++--
>  qga/commands-posix.c            |  8 ++++---
>  scripts/checkpatch.pl           |  3 ++-
>  scripts/clean-header-guards.pl  |  3 ++-
>  scripts/cleanup-trace-events.pl |  2 +-
>  scripts/disas-objdump.pl        |  4 +++-
>  scripts/get_maintainer.pl       |  3 ++-
>  scripts/qemu-binfmt-conf.sh     |  4 ++--
>  scripts/shaderinclude.pl        |  2 +-
>  scripts/switch-timer-api        |  2 +-
>  scripts/texi2pod.pl             |  4 +++-
>  tests/.gitignore                |  4 ++++
>  tests/postcopy-test.c           |  2 +-
>  util/envlist.c                  | 47 +++++++++++++++++------------------------
>  vl.c                            |  5 +++--
>  36 files changed, 133 insertions(+), 115 deletions(-)
> 

Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

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

* Re: [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments
  2017-05-07  7:02 ` [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments Michael Tokarev
@ 2017-05-09 18:04   ` Eric Blake
  2017-05-09 19:47   ` Stefan Hajnoczi
  1 sibling, 0 replies; 30+ messages in thread
From: Eric Blake @ 2017-05-09 18:04 UTC (permalink / raw)
  To: Michael Tokarev, qemu-devel
  Cc: qemu-trivial,
	sochin.jiang fix wrong parameter comments in channel-file.h,
	Stefan Hajnoczi

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

On 05/07/2017 02:02 AM, Michael Tokarev wrote:
> From: "sochin.jiang fix wrong parameter comments in channel-file.h" <sochin@aliyun.com>

Do we really want this HUGE email name, or can we get it touched up
before stefanha promotes his staging branch to master?

> 
> Signed-off-by: sochin.jiang <sochin@aliyun.com>
> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
> ---
>  include/io/channel-file.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 


-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

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

* Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07
  2017-05-08 17:30 ` Stefan Hajnoczi
@ 2017-05-09 18:08   ` Eric Blake
  2017-05-09 19:47   ` Stefan Hajnoczi
  1 sibling, 0 replies; 30+ messages in thread
From: Eric Blake @ 2017-05-09 18:08 UTC (permalink / raw)
  To: Stefan Hajnoczi, Michael Tokarev; +Cc: qemu-trivial, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

On 05/08/2017 12:30 PM, Stefan Hajnoczi wrote:
> On Sun, May 07, 2017 at 10:02:03AM +0300, Michael Tokarev wrote:
>> The following changes since commit 12a95f320a36ef66f724a49bb05e4fb553ac5dbe:
>>
>>   Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)
>>
>> are available in the git repository at:
>>
>>   git://git.corpit.ru/qemu.git tags/trivial-patches-fetch
>>
>> for you to fetch changes up to 311875781e549af91a3216d34c6ef40420bab435:
>>
>>   tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)
>>
>> ----------------------------------------------------------------
>> trivial patches for 2017-05-07
>>

>> sochin.jiang fix wrong parameter comments in channel-file.h (1):
>>       channel-file: fix wrong parameter comments

See my question on 11/23

> 
> Thanks, applied to my staging tree:
> https://github.com/stefanha/qemu/commits/staging

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

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

* Re: [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments
  2017-05-07  7:02 ` [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments Michael Tokarev
  2017-05-09 18:04   ` Eric Blake
@ 2017-05-09 19:47   ` Stefan Hajnoczi
  1 sibling, 0 replies; 30+ messages in thread
From: Stefan Hajnoczi @ 2017-05-09 19:47 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-devel, qemu-trivial, sochin.jiang

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

On Sun, May 07, 2017 at 10:02:14AM +0300, Michael Tokarev wrote:
> From: "sochin.jiang fix wrong parameter comments in channel-file.h" <sochin@aliyun.com>

Hi Michael,
This patch has a corrupted From field.  I do not modify pull requests
myself when merging.  Could you please resend?

Thanks,
Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

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

* Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07
  2017-05-08 17:30 ` Stefan Hajnoczi
  2017-05-09 18:08   ` Eric Blake
@ 2017-05-09 19:47   ` Stefan Hajnoczi
  1 sibling, 0 replies; 30+ messages in thread
From: Stefan Hajnoczi @ 2017-05-09 19:47 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-devel, qemu-trivial

[-- Attachment #1: Type: text/plain, Size: 4623 bytes --]

On Mon, May 08, 2017 at 01:30:31PM -0400, Stefan Hajnoczi wrote:
> On Sun, May 07, 2017 at 10:02:03AM +0300, Michael Tokarev wrote:
> > The following changes since commit 12a95f320a36ef66f724a49bb05e4fb553ac5dbe:
> > 
> >   Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)
> > 
> > are available in the git repository at:
> > 
> >   git://git.corpit.ru/qemu.git tags/trivial-patches-fetch
> > 
> > for you to fetch changes up to 311875781e549af91a3216d34c6ef40420bab435:
> > 
> >   tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)
> > 
> > ----------------------------------------------------------------
> > trivial patches for 2017-05-07
> > 
> > ----------------------------------------------------------------
> > Andreas Grapentin (1):
> >       use _Static_assert in QEMU_BUILD_BUG_ON
> > 
> > Chris Webb (1):
> >       virtfs: allow a device id to be specified in the -virtfs option
> > 
> > Craig Jellick (1):
> >       Add 'none' as type for drive's if option
> > 
> > Eric Blake (2):
> >       tests: Ignore more test executables
> >       tests: Ignore another built executable (test-hmp)
> > 
> > Fam Zheng (3):
> >       block: Make 'replication_state' an enum
> >       virtio-blk: Remove useless condition around g_free()
> >       tests: Remove redundant assignment
> > 
> > Ishani Chugh (1):
> >       Remove reduntant qemu: from error functions
> > 
> > KONRAD Frederic (1):
> >       ppc_booke: drop useless assignment
> > 
> > Kamil Rytarowski (2):
> >       scripts/qemu-binfmt-conf.sh: Fix shell portability issue
> >       scripts: Switch to more portable Perl shebang
> > 
> > Marc-André Lureau (1):
> >       doc: fix function spelling
> > 
> > Paolo Bonzini (3):
> >       jazz_led: fix bad snprintf
> >       MAINTAINERS: Update paths for main loop
> >       MAINTAINERS: Update paths for AioContext implementation
> > 
> > Philippe Mathieu-Daudé (3):
> >       usb-ccid: make ccid_write_data_block() cope with null buffers
> >       device_tree: fix compiler warnings (clang 5)
> >       qga: fix compiler warnings (clang 5)
> > 
> > Saurav Sachidanand (1):
> >       util: Use g_malloc/g_free in envlist.c
> > 
> > Thomas Huth (2):
> >       qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip
> >       hw/core/generic-loader: Fix crash when running without CPU
> > 
> > sochin.jiang fix wrong parameter comments in channel-file.h (1):
> >       channel-file: fix wrong parameter comments
> > 
> >  MAINTAINERS                     |  8 +++----
> >  block/replication.c             | 44 +++++++++++++++++++-------------------
> >  bsd-user/main.c                 | 14 ++++--------
> >  configure                       | 18 ++++++++++++++++
> >  device_tree.c                   |  1 +
> >  hw/block/virtio-blk.c           |  4 +---
> >  hw/core/generic-loader.c        |  9 ++++----
> >  hw/display/jazz_led.c           |  4 ++--
> >  hw/microblaze/boot.c            |  2 +-
> >  hw/nios2/boot.c                 |  2 +-
> >  hw/ppc/pnv.c                    |  2 +-
> >  hw/ppc/ppc_booke.c              |  1 -
> >  hw/s390x/sclp.c                 |  4 ++--
> >  hw/tricore/tricore_testboard.c  |  2 +-
> >  hw/usb/dev-smartcard-reader.c   |  5 ++++-
> >  include/io/channel-file.h       |  2 +-
> >  include/io/channel.h            |  2 +-
> >  include/qemu/compiler.h         |  4 +++-
> >  linux-user/main.c               |  9 +++-----
> >  numa.c                          |  4 ++--
> >  qemu-doc.texi                   | 10 ++++-----
> >  qemu-options.hx                 |  4 ++--
> >  qga/commands-posix.c            |  8 ++++---
> >  scripts/checkpatch.pl           |  3 ++-
> >  scripts/clean-header-guards.pl  |  3 ++-
> >  scripts/cleanup-trace-events.pl |  2 +-
> >  scripts/disas-objdump.pl        |  4 +++-
> >  scripts/get_maintainer.pl       |  3 ++-
> >  scripts/qemu-binfmt-conf.sh     |  4 ++--
> >  scripts/shaderinclude.pl        |  2 +-
> >  scripts/switch-timer-api        |  2 +-
> >  scripts/texi2pod.pl             |  4 +++-
> >  tests/.gitignore                |  4 ++++
> >  tests/postcopy-test.c           |  2 +-
> >  util/envlist.c                  | 47 +++++++++++++++++------------------------
> >  vl.c                            |  5 +++--
> >  36 files changed, 133 insertions(+), 115 deletions(-)
> > 
> 
> Thanks, applied to my staging tree:
> https://github.com/stefanha/qemu/commits/staging

Dropped for now, please see my reply to "channel-file: fix wrong parameter comments".

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

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

end of thread, other threads:[~2017-05-09 19:47 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-07  7:02 [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 01/23] Remove reduntant qemu: from error functions Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 02/23] ppc_booke: drop useless assignment Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 03/23] doc: fix function spelling Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 04/23] Add 'none' as type for drive's if option Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 05/23] tests: Ignore more test executables Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 06/23] usb-ccid: make ccid_write_data_block() cope with null buffers Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 07/23] device_tree: fix compiler warnings (clang 5) Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 08/23] qga: " Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 09/23] util: Use g_malloc/g_free in envlist.c Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 10/23] block: Make 'replication_state' an enum Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments Michael Tokarev
2017-05-09 18:04   ` Eric Blake
2017-05-09 19:47   ` Stefan Hajnoczi
2017-05-07  7:02 ` [Qemu-devel] [PULL 12/23] use _Static_assert in QEMU_BUILD_BUG_ON Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 13/23] qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 14/23] virtio-blk: Remove useless condition around g_free() Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 15/23] hw/core/generic-loader: Fix crash when running without CPU Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 16/23] virtfs: allow a device id to be specified in the -virtfs option Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portability issue Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 18/23] scripts: Switch to more portable Perl shebang Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 19/23] tests: Ignore another built executable (test-hmp) Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 20/23] jazz_led: fix bad snprintf Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 21/23] MAINTAINERS: Update paths for main loop Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 22/23] MAINTAINERS: Update paths for AioContext implementation Michael Tokarev
2017-05-07  7:02 ` [Qemu-devel] [PULL 23/23] tests: Remove redundant assignment Michael Tokarev
2017-05-07  8:24 ` [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07 no-reply
2017-05-08 17:30 ` Stefan Hajnoczi
2017-05-09 18:08   ` Eric Blake
2017-05-09 19:47   ` Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.