qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  2019-05-03 11:18 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
@ 2019-05-03 11:18 ` Laurent Vivier
  2019-05-03 11:18   ` Laurent Vivier
  0 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:18 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland,
	Philippe Mathieu-Daudé, Thomas Huth

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

Avoid to clutter stdout until explicitly requested
(with -d guest_errors):

  $ qemu-system-mips -M malta -m 512 -kernel vmlinux-3.2.0-4-4kc-malta
  Bad SWSTYLE=0x04

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190311102712.8572-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/net/pcnet.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c
index d9ba04bdfc62..16683091c939 100644
--- a/hw/net/pcnet.c
+++ b/hw/net/pcnet.c
@@ -36,6 +36,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "hw/qdev.h"
 #include "net/net.h"
 #include "net/eth.h"
@@ -1501,7 +1502,8 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val)
             val |= 0x0300;
             break;
         default:
-            printf("Bad SWSTYLE=0x%02x\n", val & 0xff);
+            qemu_log_mask(LOG_GUEST_ERROR, "pcnet: Bad SWSTYLE=0x%02x\n",
+                          val & 0xff);
             val = 0x0200;
             break;
         }
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  2019-05-03 11:18 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
@ 2019-05-03 11:18   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:18 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, qemu-trivial, Mark Cave-Ayland, Jason Wang,
	Michael Tokarev, Laurent Vivier, Fabien Chouteau, Michael Roth,
	Gerd Hoffmann, Paolo Bonzini, Philippe Mathieu-Daudé,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

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

Avoid to clutter stdout until explicitly requested
(with -d guest_errors):

  $ qemu-system-mips -M malta -m 512 -kernel vmlinux-3.2.0-4-4kc-malta
  Bad SWSTYLE=0x04

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190311102712.8572-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/net/pcnet.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c
index d9ba04bdfc62..16683091c939 100644
--- a/hw/net/pcnet.c
+++ b/hw/net/pcnet.c
@@ -36,6 +36,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "hw/qdev.h"
 #include "net/net.h"
 #include "net/eth.h"
@@ -1501,7 +1502,8 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val)
             val |= 0x0300;
             break;
         default:
-            printf("Bad SWSTYLE=0x%02x\n", val & 0xff);
+            qemu_log_mask(LOG_GUEST_ERROR, "pcnet: Bad SWSTYLE=0x%02x\n",
+                          val & 0xff);
             val = 0x0200;
             break;
         }
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  2019-05-03 11:19 Laurent Vivier
@ 2019-05-03 11:19 ` Laurent Vivier
  2019-05-03 11:19   ` Laurent Vivier
  0 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:19 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland,
	Philippe Mathieu-Daudé, Thomas Huth

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

Avoid to clutter stdout until explicitly requested
(with -d guest_errors):

  $ qemu-system-mips -M malta -m 512 -kernel vmlinux-3.2.0-4-4kc-malta
  Bad SWSTYLE=0x04

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190311102712.8572-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/net/pcnet.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c
index d9ba04bdfc62..16683091c939 100644
--- a/hw/net/pcnet.c
+++ b/hw/net/pcnet.c
@@ -36,6 +36,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "hw/qdev.h"
 #include "net/net.h"
 #include "net/eth.h"
@@ -1501,7 +1502,8 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val)
             val |= 0x0300;
             break;
         default:
-            printf("Bad SWSTYLE=0x%02x\n", val & 0xff);
+            qemu_log_mask(LOG_GUEST_ERROR, "pcnet: Bad SWSTYLE=0x%02x\n",
+                          val & 0xff);
             val = 0x0200;
             break;
         }
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  2019-05-03 11:19 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
@ 2019-05-03 11:19   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:19 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, qemu-trivial, Mark Cave-Ayland, Jason Wang,
	Michael Tokarev, Laurent Vivier, Fabien Chouteau, Michael Roth,
	Gerd Hoffmann, Paolo Bonzini, Philippe Mathieu-Daudé,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

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

Avoid to clutter stdout until explicitly requested
(with -d guest_errors):

  $ qemu-system-mips -M malta -m 512 -kernel vmlinux-3.2.0-4-4kc-malta
  Bad SWSTYLE=0x04

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190311102712.8572-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/net/pcnet.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c
index d9ba04bdfc62..16683091c939 100644
--- a/hw/net/pcnet.c
+++ b/hw/net/pcnet.c
@@ -36,6 +36,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "hw/qdev.h"
 #include "net/net.h"
 #include "net/eth.h"
@@ -1501,7 +1502,8 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val)
             val |= 0x0300;
             break;
         default:
-            printf("Bad SWSTYLE=0x%02x\n", val & 0xff);
+            qemu_log_mask(LOG_GUEST_ERROR, "pcnet: Bad SWSTYLE=0x%02x\n",
+                          val & 0xff);
             val = 0x0200;
             break;
         }
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 00/12] Trivial branch patches
@ 2019-05-03 11:26 Laurent Vivier
  2019-05-03 11:26 ` Laurent Vivier
                   ` (13 more replies)
  0 siblings, 14 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland

The following changes since commit 8482ff2eb3bb95020eb2f370a9b3ea26511e41df:

  Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)

are available in the Git repository at:

  git://github.com/vivier/qemu.git tags/trivial-branch-pull-request

for you to fetch changes up to 2d2023c3b99edb33ad4bb9791f70456ea1a1c049:

  sockets: avoid string truncation warnings when copying UNIX path (2019-05-03 13:03:04 +0200)

----------------------------------------------------------------
Pull request trivial branch 2019-05-03

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

Aruna Jayasena (1):
  Header cleanups

Daniel P. Berrangé (1):
  sockets: avoid string truncation warnings when copying UNIX path

Dr. David Alan Gilbert (1):
  configure: fix pam test warning

Marc-André Lureau (1):
  doc: fix the configuration path

Philippe Mathieu-Daudé (3):
  hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
  hw/sparc/leon3: Allow load of uImage firmwares

Stefan Weil (1):
  Update configure

Thomas Huth (1):
  net: Print output of "-net nic, model=help" to stdout instead of
    stderr

Wei Yang (3):
  CODING_STYLE: specify the indent rule for multiline code
  CODING_STYLE: indent example code as all others
  qom: use object_new_with_type in object_new_with_propv

 qemu-ga.texi              |  4 ++--
 configure                 |  5 ++---
 Makefile                  | 11 +++++----
 include/exec/cpu-common.h |  3 ---
 hw/net/pcnet.c            |  4 +++-
 hw/sparc/leon3.c          |  4 ++++
 net/net.c                 |  7 +++---
 qom/object.c              |  2 +-
 util/qemu-sockets.c       | 12 ++++++----
 CODING_STYLE              | 47 +++++++++++++++++++++++++++++++++++----
 10 files changed, 74 insertions(+), 25 deletions(-)

-- 
2.20.1

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

* [Qemu-devel] [PULL v2 00/12] Trivial branch patches
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	Laurent Vivier, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Paolo Bonzini, Andreas Färber, Artyom Tarasenko,
	Richard Henderson

The following changes since commit 8482ff2eb3bb95020eb2f370a9b3ea26511e41df:

  Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)

are available in the Git repository at:

  git://github.com/vivier/qemu.git tags/trivial-branch-pull-request

for you to fetch changes up to 2d2023c3b99edb33ad4bb9791f70456ea1a1c049:

  sockets: avoid string truncation warnings when copying UNIX path (2019-05-03 13:03:04 +0200)

----------------------------------------------------------------
Pull request trivial branch 2019-05-03

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

Aruna Jayasena (1):
  Header cleanups

Daniel P. Berrangé (1):
  sockets: avoid string truncation warnings when copying UNIX path

Dr. David Alan Gilbert (1):
  configure: fix pam test warning

Marc-André Lureau (1):
  doc: fix the configuration path

Philippe Mathieu-Daudé (3):
  hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
  hw/sparc/leon3: Allow load of uImage firmwares

Stefan Weil (1):
  Update configure

Thomas Huth (1):
  net: Print output of "-net nic, model=help" to stdout instead of
    stderr

Wei Yang (3):
  CODING_STYLE: specify the indent rule for multiline code
  CODING_STYLE: indent example code as all others
  qom: use object_new_with_type in object_new_with_propv

 qemu-ga.texi              |  4 ++--
 configure                 |  5 ++---
 Makefile                  | 11 +++++----
 include/exec/cpu-common.h |  3 ---
 hw/net/pcnet.c            |  4 +++-
 hw/sparc/leon3.c          |  4 ++++
 net/net.c                 |  7 +++---
 qom/object.c              |  2 +-
 util/qemu-sockets.c       | 12 ++++++----
 CODING_STYLE              | 47 +++++++++++++++++++++++++++++++++++----
 10 files changed, 74 insertions(+), 25 deletions(-)

-- 
2.20.1



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

* [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
  2019-05-03 11:26 ` Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 02/12] CODING_STYLE: specify the indent rule for multiline code Laurent Vivier
                   ` (11 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland,
	Philippe Mathieu-Daudé, Thomas Huth

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

Avoid to clutter stdout until explicitly requested
(with -d guest_errors):

  $ qemu-system-mips -M malta -m 512 -kernel vmlinux-3.2.0-4-4kc-malta
  Bad SWSTYLE=0x04

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190311102712.8572-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/net/pcnet.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c
index d9ba04bdfc62..16683091c939 100644
--- a/hw/net/pcnet.c
+++ b/hw/net/pcnet.c
@@ -36,6 +36,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "hw/qdev.h"
 #include "net/net.h"
 #include "net/eth.h"
@@ -1501,7 +1502,8 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val)
             val |= 0x0300;
             break;
         default:
-            printf("Bad SWSTYLE=0x%02x\n", val & 0xff);
+            qemu_log_mask(LOG_GUEST_ERROR, "pcnet: Bad SWSTYLE=0x%02x\n",
+                          val & 0xff);
             val = 0x0200;
             break;
         }
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, qemu-trivial, Mark Cave-Ayland, Jason Wang,
	Michael Tokarev, Laurent Vivier, Fabien Chouteau, Michael Roth,
	Gerd Hoffmann, Paolo Bonzini, Philippe Mathieu-Daudé,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

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

Avoid to clutter stdout until explicitly requested
(with -d guest_errors):

  $ qemu-system-mips -M malta -m 512 -kernel vmlinux-3.2.0-4-4kc-malta
  Bad SWSTYLE=0x04

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190311102712.8572-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/net/pcnet.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c
index d9ba04bdfc62..16683091c939 100644
--- a/hw/net/pcnet.c
+++ b/hw/net/pcnet.c
@@ -36,6 +36,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "hw/qdev.h"
 #include "net/net.h"
 #include "net/eth.h"
@@ -1501,7 +1502,8 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val)
             val |= 0x0300;
             break;
         default:
-            printf("Bad SWSTYLE=0x%02x\n", val & 0xff);
+            qemu_log_mask(LOG_GUEST_ERROR, "pcnet: Bad SWSTYLE=0x%02x\n",
+                          val & 0xff);
             val = 0x0200;
             break;
         }
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 02/12] CODING_STYLE: specify the indent rule for multiline code
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
  2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 03/12] CODING_STYLE: indent example code as all others Laurent Vivier
                   ` (10 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland, Wei Yang,
	Igor Mammedov, Stefano Garzarella

From: Wei Yang <richardw.yang@linux.intel.com>

We didn't specify the indent rule for multiline code here, which may
mislead users. And in current code, the code use various styles.

Add this rule in CODING_STYLE to make sure this is clear to every one.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190304071631.27567-2-richardw.yang@linux.intel.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 CODING_STYLE | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/CODING_STYLE b/CODING_STYLE
index ec075dedc4a8..90321e9c2821 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -29,6 +29,45 @@ Spaces of course are superior to tabs because:
 
 Do not leave whitespace dangling off the ends of lines.
 
+1.1 Multiline Indent
+
+There are several places where indent is necessary:
+
+ - if/else
+ - while/for
+ - function definition & call
+
+When breaking up a long line to fit within line width, we need a proper indent
+for the following lines.
+
+In case of if/else, while/for, align the secondary lines just after the
+opening parenthesis of the first.
+
+For example:
+
+    if (a == 1 &&
+        b == 2) {
+
+    while (a == 1 &&
+           b == 2) {
+
+In case of function, there are several variants:
+
+    * 4 spaces indent from the beginning
+    * align the secondary lines just after the opening parenthesis of the
+      first
+
+For example:
+
+    do_something(x, y,
+        z);
+
+    do_something(x, y,
+                 z);
+
+    do_something(x, do_another(y,
+                               z));
+
 2. Line width
 
 Lines should be 80 characters; try not to make them longer.
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 02/12] CODING_STYLE: specify the indent rule for multiline code
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 02/12] CODING_STYLE: specify the indent rule for multiline code Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	Laurent Vivier, Fabien Chouteau, Michael Roth, Wei Yang,
	Gerd Hoffmann, Igor Mammedov, Paolo Bonzini, Stefano Garzarella,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

From: Wei Yang <richardw.yang@linux.intel.com>

We didn't specify the indent rule for multiline code here, which may
mislead users. And in current code, the code use various styles.

Add this rule in CODING_STYLE to make sure this is clear to every one.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190304071631.27567-2-richardw.yang@linux.intel.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 CODING_STYLE | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/CODING_STYLE b/CODING_STYLE
index ec075dedc4a8..90321e9c2821 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -29,6 +29,45 @@ Spaces of course are superior to tabs because:
 
 Do not leave whitespace dangling off the ends of lines.
 
+1.1 Multiline Indent
+
+There are several places where indent is necessary:
+
+ - if/else
+ - while/for
+ - function definition & call
+
+When breaking up a long line to fit within line width, we need a proper indent
+for the following lines.
+
+In case of if/else, while/for, align the secondary lines just after the
+opening parenthesis of the first.
+
+For example:
+
+    if (a == 1 &&
+        b == 2) {
+
+    while (a == 1 &&
+           b == 2) {
+
+In case of function, there are several variants:
+
+    * 4 spaces indent from the beginning
+    * align the secondary lines just after the opening parenthesis of the
+      first
+
+For example:
+
+    do_something(x, y,
+        z);
+
+    do_something(x, y,
+                 z);
+
+    do_something(x, do_another(y,
+                               z));
+
 2. Line width
 
 Lines should be 80 characters; try not to make them longer.
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 03/12] CODING_STYLE: indent example code as all others
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (2 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 02/12] CODING_STYLE: specify the indent rule for multiline code Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 04/12] doc: fix the configuration path Laurent Vivier
                   ` (9 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland, Wei Yang,
	Eric Blake, Philippe Mathieu-Daudé, Igor Mammedov,
	Stefano Garzarella

From: Wei Yang <richardw.yang@linux.intel.com>

All the example code are indented with four spaces except this one.

Fix this by adding four spaces here.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190304071631.27567-3-richardw.yang@linux.intel.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 CODING_STYLE | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/CODING_STYLE b/CODING_STYLE
index 90321e9c2821..cb8edcbb3692 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -147,10 +147,10 @@ block to a separate function altogether.
 When comparing a variable for (in)equality with a constant, list the
 constant on the right, as in:
 
-if (a == 1) {
-    /* Reads like: "If a equals 1" */
-    do_something();
-}
+    if (a == 1) {
+        /* Reads like: "If a equals 1" */
+        do_something();
+    }
 
 Rationale: Yoda conditions (as in 'if (1 == a)') are awkward to read.
 Besides, good compilers already warn users when '==' is mis-typed as '=',
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 03/12] CODING_STYLE: indent example code as all others
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 03/12] CODING_STYLE: indent example code as all others Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang,
	Philippe Mathieu-Daudé, Michael Tokarev, Laurent Vivier,
	Fabien Chouteau, Michael Roth, Wei Yang, Gerd Hoffmann,
	Igor Mammedov, Paolo Bonzini, Stefano Garzarella,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

From: Wei Yang <richardw.yang@linux.intel.com>

All the example code are indented with four spaces except this one.

Fix this by adding four spaces here.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190304071631.27567-3-richardw.yang@linux.intel.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 CODING_STYLE | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/CODING_STYLE b/CODING_STYLE
index 90321e9c2821..cb8edcbb3692 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -147,10 +147,10 @@ block to a separate function altogether.
 When comparing a variable for (in)equality with a constant, list the
 constant on the right, as in:
 
-if (a == 1) {
-    /* Reads like: "If a equals 1" */
-    do_something();
-}
+    if (a == 1) {
+        /* Reads like: "If a equals 1" */
+        do_something();
+    }
 
 Rationale: Yoda conditions (as in 'if (1 == a)') are awkward to read.
 Besides, good compilers already warn users when '==' is mis-typed as '=',
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 04/12] doc: fix the configuration path
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (3 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 03/12] CODING_STYLE: indent example code as all others Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 05/12] qom: use object_new_with_type in object_new_with_propv Laurent Vivier
                   ` (8 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland,
	Marc-André Lureau, Philippe Mathieu-Daudé

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

Use a CONFDIR variable to show the configured sysconf path in the
generated documentations (html, man pages etc).

Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1644985

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181126105125.30973-1-marcandre.lureau@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 qemu-ga.texi | 4 ++--
 Makefile     | 9 ++++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/qemu-ga.texi b/qemu-ga.texi
index 4c7a8fd16329..f00ad830f283 100644
--- a/qemu-ga.texi
+++ b/qemu-ga.texi
@@ -30,7 +30,7 @@ set user's password
 @end itemize
 
 qemu-ga will read a system configuration file on startup (located at
-@file{/etc/qemu/qemu-ga.conf} by default), then parse remaining
+@file{@value{CONFDIR}/qemu-ga.conf} by default), then parse remaining
 configuration options on the command line. For the same key, the last
 option wins, but the lists accumulate (see below for configuration
 file format).
@@ -58,7 +58,7 @@ file format).
   Enable fsfreeze hook. Accepts an optional argument that specifies
   script to run on freeze/thaw. Script will be called with
   'freeze'/'thaw' arguments accordingly (default is
-  @samp{/etc/qemu/fsfreeze-hook}). If using -F with an argument, do
+  @samp{@value{CONFDIR}/fsfreeze-hook}). If using -F with an argument, do
   not follow -F with a space (for example:
   @samp{-F/var/run/fsfreezehook.sh}).
 
diff --git a/Makefile b/Makefile
index 1211e78c91ed..43a7a047b452 100644
--- a/Makefile
+++ b/Makefile
@@ -899,11 +899,14 @@ ui/shader.o: $(SRC_PATH)/ui/shader.c \
 MAKEINFO=makeinfo
 MAKEINFOINCLUDES= -I docs -I $(<D) -I $(@D)
 MAKEINFOFLAGS=--no-split --number-sections $(MAKEINFOINCLUDES)
-TEXI2PODFLAGS=$(MAKEINFOINCLUDES) "-DVERSION=$(VERSION)"
+TEXI2PODFLAGS=$(MAKEINFOINCLUDES) -DVERSION="$(VERSION)" -DCONFDIR="$(qemu_confdir)"
 TEXI2PDFFLAGS=$(if $(V),,--quiet) -I $(SRC_PATH) $(MAKEINFOINCLUDES)
 
-docs/version.texi: $(SRC_PATH)/VERSION
-	$(call quiet-command,echo "@set VERSION $(VERSION)" > $@,"GEN","$@")
+docs/version.texi: $(SRC_PATH)/VERSION config-host.mak
+	$(call quiet-command,(\
+		echo "@set VERSION $(VERSION)" && \
+		echo "@set CONFDIR $(qemu_confdir)" \
+	)> $@,"GEN","$@")
 
 %.html: %.texi docs/version.texi
 	$(call quiet-command,LC_ALL=C $(MAKEINFO) $(MAKEINFOFLAGS) --no-headers \
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 04/12] doc: fix the configuration path
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 04/12] doc: fix the configuration path Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	Laurent Vivier, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Marc-André Lureau, Paolo Bonzini,
	Philippe Mathieu-Daudé, Andreas Färber,
	Artyom Tarasenko, Richard Henderson

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

Use a CONFDIR variable to show the configured sysconf path in the
generated documentations (html, man pages etc).

Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1644985

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181126105125.30973-1-marcandre.lureau@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 qemu-ga.texi | 4 ++--
 Makefile     | 9 ++++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/qemu-ga.texi b/qemu-ga.texi
index 4c7a8fd16329..f00ad830f283 100644
--- a/qemu-ga.texi
+++ b/qemu-ga.texi
@@ -30,7 +30,7 @@ set user's password
 @end itemize
 
 qemu-ga will read a system configuration file on startup (located at
-@file{/etc/qemu/qemu-ga.conf} by default), then parse remaining
+@file{@value{CONFDIR}/qemu-ga.conf} by default), then parse remaining
 configuration options on the command line. For the same key, the last
 option wins, but the lists accumulate (see below for configuration
 file format).
@@ -58,7 +58,7 @@ file format).
   Enable fsfreeze hook. Accepts an optional argument that specifies
   script to run on freeze/thaw. Script will be called with
   'freeze'/'thaw' arguments accordingly (default is
-  @samp{/etc/qemu/fsfreeze-hook}). If using -F with an argument, do
+  @samp{@value{CONFDIR}/fsfreeze-hook}). If using -F with an argument, do
   not follow -F with a space (for example:
   @samp{-F/var/run/fsfreezehook.sh}).
 
diff --git a/Makefile b/Makefile
index 1211e78c91ed..43a7a047b452 100644
--- a/Makefile
+++ b/Makefile
@@ -899,11 +899,14 @@ ui/shader.o: $(SRC_PATH)/ui/shader.c \
 MAKEINFO=makeinfo
 MAKEINFOINCLUDES= -I docs -I $(<D) -I $(@D)
 MAKEINFOFLAGS=--no-split --number-sections $(MAKEINFOINCLUDES)
-TEXI2PODFLAGS=$(MAKEINFOINCLUDES) "-DVERSION=$(VERSION)"
+TEXI2PODFLAGS=$(MAKEINFOINCLUDES) -DVERSION="$(VERSION)" -DCONFDIR="$(qemu_confdir)"
 TEXI2PDFFLAGS=$(if $(V),,--quiet) -I $(SRC_PATH) $(MAKEINFOINCLUDES)
 
-docs/version.texi: $(SRC_PATH)/VERSION
-	$(call quiet-command,echo "@set VERSION $(VERSION)" > $@,"GEN","$@")
+docs/version.texi: $(SRC_PATH)/VERSION config-host.mak
+	$(call quiet-command,(\
+		echo "@set VERSION $(VERSION)" && \
+		echo "@set CONFDIR $(qemu_confdir)" \
+	)> $@,"GEN","$@")
 
 %.html: %.texi docs/version.texi
 	$(call quiet-command,LC_ALL=C $(MAKEINFO) $(MAKEINFOFLAGS) --no-headers \
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 05/12] qom: use object_new_with_type in object_new_with_propv
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (4 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 04/12] doc: fix the configuration path Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 06/12] configure: fix pam test warning Laurent Vivier
                   ` (7 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland, Wei Yang,
	Marc-André Lureau, Stefano Garzarella

From: Wei Yang <richardw.yang@linux.intel.com>

Function object_new_with_propv already get the Type of the object, so we
could leverage object_new_with_type here.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190311083234.20841-1-richardw.yang@linux.intel.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 qom/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qom/object.c b/qom/object.c
index e3206d6799ee..d3412e7fdca6 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -679,7 +679,7 @@ Object *object_new_with_propv(const char *typename,
         error_setg(errp, "object type '%s' is abstract", typename);
         return NULL;
     }
-    obj = object_new(typename);
+    obj = object_new_with_type(klass->type);
 
     if (object_set_propv(obj, &local_err, vargs) < 0) {
         goto error;
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 05/12] qom: use object_new_with_type in object_new_with_propv
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 05/12] qom: use object_new_with_type in object_new_with_propv Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	Laurent Vivier, Fabien Chouteau, Michael Roth, Wei Yang,
	Gerd Hoffmann, Marc-André Lureau, Paolo Bonzini,
	Stefano Garzarella, Andreas Färber, Artyom Tarasenko,
	Richard Henderson

From: Wei Yang <richardw.yang@linux.intel.com>

Function object_new_with_propv already get the Type of the object, so we
could leverage object_new_with_type here.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190311083234.20841-1-richardw.yang@linux.intel.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 qom/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qom/object.c b/qom/object.c
index e3206d6799ee..d3412e7fdca6 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -679,7 +679,7 @@ Object *object_new_with_propv(const char *typename,
         error_setg(errp, "object type '%s' is abstract", typename);
         return NULL;
     }
-    obj = object_new(typename);
+    obj = object_new_with_type(klass->type);
 
     if (object_set_propv(obj, &local_err, vargs) < 0) {
         goto error;
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 06/12] configure: fix pam test warning
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (5 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 05/12] qom: use object_new_with_type in object_new_with_propv Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 07/12] Update configure Laurent Vivier
                   ` (6 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland,
	Dr. David Alan Gilbert, Philippe Mathieu-Daudé

From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

The pam test generates a warning on Fedora 29 with -O3 compilation
because the headers declare that the pam_conversation pointer to
pam_start must be non-NULL.  Change it to use the same 0 initialised
structure as we actually use in qauthz.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190404091725.20595-1-dgilbert@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 60719ddcc5b0..a2607afb3408 100755
--- a/configure
+++ b/configure
@@ -2940,9 +2940,9 @@ if test "$auth_pam" != "no"; then
 int main(void) {
    const char *service_name = "qemu";
    const char *user = "frank";
-   const struct pam_conv *pam_conv = NULL;
+   const struct pam_conv pam_conv = { 0 };
    pam_handle_t *pamh = NULL;
-   pam_start(service_name, user, pam_conv, &pamh);
+   pam_start(service_name, user, &pam_conv, &pamh);
    return 0;
 }
 EOF
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 06/12] configure: fix pam test warning
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 06/12] configure: fix pam test warning Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Dr. David Alan Gilbert, qemu-trivial, Mark Cave-Ayland,
	Jason Wang, Michael Tokarev, Laurent Vivier, Fabien Chouteau,
	Michael Roth, Gerd Hoffmann, Paolo Bonzini,
	Philippe Mathieu-Daudé, Andreas Färber,
	Artyom Tarasenko, Richard Henderson

From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

The pam test generates a warning on Fedora 29 with -O3 compilation
because the headers declare that the pam_conversation pointer to
pam_start must be non-NULL.  Change it to use the same 0 initialised
structure as we actually use in qauthz.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190404091725.20595-1-dgilbert@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 60719ddcc5b0..a2607afb3408 100755
--- a/configure
+++ b/configure
@@ -2940,9 +2940,9 @@ if test "$auth_pam" != "no"; then
 int main(void) {
    const char *service_name = "qemu";
    const char *user = "frank";
-   const struct pam_conv *pam_conv = NULL;
+   const struct pam_conv pam_conv = { 0 };
    pam_handle_t *pamh = NULL;
-   pam_start(service_name, user, pam_conv, &pamh);
+   pam_start(service_name, user, &pam_conv, &pamh);
    return 0;
 }
 EOF
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 07/12] Update configure
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (6 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 06/12] configure: fix pam test warning Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 08/12] Header cleanups Laurent Vivier
                   ` (5 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland, Stefan Weil,
	Igor Mammedov, Philippe Mathieu-Daudé

From: Stefan Weil <sw@weilnetz.de>

The last *.aml file was removed in commit 13b1881aacc7e5018773bd545bbaf8d5476699ee.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190409053320.14612-1-sw@weilnetz.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 configure | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configure b/configure
index a2607afb3408..14f02452f9d4 100755
--- a/configure
+++ b/configure
@@ -7880,7 +7880,6 @@ LINKS="$LINKS python"
 for bios_file in \
     $source_path/pc-bios/*.bin \
     $source_path/pc-bios/*.lid \
-    $source_path/pc-bios/*.aml \
     $source_path/pc-bios/*.rom \
     $source_path/pc-bios/*.dtb \
     $source_path/pc-bios/*.img \
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 07/12] Update configure
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 07/12] Update configure Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Igor Mammedov, qemu-trivial, Mark Cave-Ayland, Jason Wang,
	Michael Tokarev, Laurent Vivier, Fabien Chouteau, Michael Roth,
	Gerd Hoffmann, Stefan Weil, Paolo Bonzini,
	Philippe Mathieu-Daudé, Andreas Färber,
	Artyom Tarasenko, Richard Henderson

From: Stefan Weil <sw@weilnetz.de>

The last *.aml file was removed in commit 13b1881aacc7e5018773bd545bbaf8d5476699ee.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190409053320.14612-1-sw@weilnetz.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 configure | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configure b/configure
index a2607afb3408..14f02452f9d4 100755
--- a/configure
+++ b/configure
@@ -7880,7 +7880,6 @@ LINKS="$LINKS python"
 for bios_file in \
     $source_path/pc-bios/*.bin \
     $source_path/pc-bios/*.lid \
-    $source_path/pc-bios/*.aml \
     $source_path/pc-bios/*.rom \
     $source_path/pc-bios/*.dtb \
     $source_path/pc-bios/*.img \
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 08/12] Header cleanups
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (7 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 07/12] Update configure Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 09/12] net: Print output of "-net nic, model=help" to stdout instead of stderr Laurent Vivier
                   ` (4 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland, Aruna Jayasena,
	Peter Maydell, Thomas Huth

From: Aruna Jayasena <aruna.15@cse.mrt.ac.lk>

Removed unwanted includes from cpu-common.h
This task was under https://wiki.qemu.org/Contribute/BiteSizedTasks

Signed-off-by: Aruna Jayasena <aruna.15@cse.mrt.ac.lk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190409155635.10276-1-aruna.15@cse.mrt.ac.lk>
[lv: fix conflict on rebase]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 include/exec/cpu-common.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
index 848a4b94ab73..f7dbe75fbc38 100644
--- a/include/exec/cpu-common.h
+++ b/include/exec/cpu-common.h
@@ -7,9 +7,6 @@
 #include "exec/hwaddr.h"
 #endif
 
-#include "qemu/bswap.h"
-#include "qemu/queue.h"
-
 /* The CPU list lock nests outside page_(un)lock or mmap_(un)lock */
 void qemu_init_cpu_list(void);
 void cpu_list_lock(void);
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 08/12] Header cleanups
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 08/12] Header cleanups Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Thomas Huth, qemu-trivial, Mark Cave-Ayland,
	Jason Wang, Michael Tokarev, Laurent Vivier, Fabien Chouteau,
	Michael Roth, Gerd Hoffmann, Aruna Jayasena, Paolo Bonzini,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

From: Aruna Jayasena <aruna.15@cse.mrt.ac.lk>

Removed unwanted includes from cpu-common.h
This task was under https://wiki.qemu.org/Contribute/BiteSizedTasks

Signed-off-by: Aruna Jayasena <aruna.15@cse.mrt.ac.lk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190409155635.10276-1-aruna.15@cse.mrt.ac.lk>
[lv: fix conflict on rebase]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 include/exec/cpu-common.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
index 848a4b94ab73..f7dbe75fbc38 100644
--- a/include/exec/cpu-common.h
+++ b/include/exec/cpu-common.h
@@ -7,9 +7,6 @@
 #include "exec/hwaddr.h"
 #endif
 
-#include "qemu/bswap.h"
-#include "qemu/queue.h"
-
 /* The CPU list lock nests outside page_(un)lock or mmap_(un)lock */
 void qemu_init_cpu_list(void);
 void cpu_list_lock(void);
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 09/12] net: Print output of "-net nic, model=help" to stdout instead of stderr
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (8 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 08/12] Header cleanups Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 10/12] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts Laurent Vivier
                   ` (3 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland, Thomas Huth,
	Eric Blake, Philippe Mathieu-Daudé

From: Thomas Huth <thuth@redhat.com>

We are printing all other help output to stdout already (e.g. "-help",
"-cpu help" and "-machine help" output). So the "-net nic,model=help"
output should go to stdout instead of stderr, too. And while we're at
it, also print the NICs line by line, like we do it e.g. with the
"-cpu help" or "-M help" output, too.

Buglink: https://bugs.launchpad.net/qemu/+bug/1574327
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190423160608.7519-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 net/net.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/net.c b/net/net.c
index f3a3c5444cc3..2cf5e7646997 100644
--- a/net/net.c
+++ b/net/net.c
@@ -837,9 +837,10 @@ int qemu_show_nic_models(const char *arg, const char *const *models)
         return 0;
     }
 
-    fprintf(stderr, "qemu: Supported NIC models: ");
-    for (i = 0 ; models[i]; i++)
-        fprintf(stderr, "%s%c", models[i], models[i+1] ? ',' : '\n');
+    printf("Supported NIC models:\n");
+    for (i = 0 ; models[i]; i++) {
+        printf("%s\n", models[i]);
+    }
     return 1;
 }
 
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 09/12] net: Print output of "-net nic, model=help" to stdout instead of stderr
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 09/12] net: Print output of "-net nic, model=help" to stdout instead of stderr Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, qemu-trivial, Mark Cave-Ayland, Jason Wang,
	Philippe Mathieu-Daudé, Michael Tokarev, Laurent Vivier,
	Fabien Chouteau, Michael Roth, Gerd Hoffmann, Paolo Bonzini,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

From: Thomas Huth <thuth@redhat.com>

We are printing all other help output to stdout already (e.g. "-help",
"-cpu help" and "-machine help" output). So the "-net nic,model=help"
output should go to stdout instead of stderr, too. And while we're at
it, also print the NICs line by line, like we do it e.g. with the
"-cpu help" or "-M help" output, too.

Buglink: https://bugs.launchpad.net/qemu/+bug/1574327
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190423160608.7519-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 net/net.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/net.c b/net/net.c
index f3a3c5444cc3..2cf5e7646997 100644
--- a/net/net.c
+++ b/net/net.c
@@ -837,9 +837,10 @@ int qemu_show_nic_models(const char *arg, const char *const *models)
         return 0;
     }
 
-    fprintf(stderr, "qemu: Supported NIC models: ");
-    for (i = 0 ; models[i]; i++)
-        fprintf(stderr, "%s%c", models[i], models[i+1] ? ',' : '\n');
+    printf("Supported NIC models:\n");
+    for (i = 0 ; models[i]; i++) {
+        printf("%s\n", models[i]);
+    }
     return 1;
 }
 
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 10/12] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (9 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 09/12] net: Print output of "-net nic, model=help" to stdout instead of stderr Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 11/12] hw/sparc/leon3: Allow load of uImage firmwares Laurent Vivier
                   ` (2 subsequent siblings)
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland,
	Philippe Mathieu-Daudé, Stefan Weil

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

Commit 48ff7a625b36 added the QEMU Guest Agent tool with the
optional ".exe" suffix for Windows hosts, but forgot to use
this suffix in the 'clean' rule. Calling this rule let a dangling
executable in the build directory.
Correct this by using the proper optional suffix.

Fixes: 48ff7a625b36
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <20190427161322.24642-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 43a7a047b452..e223bfe2a3a1 100644
--- a/Makefile
+++ b/Makefile
@@ -639,7 +639,7 @@ clean:
 		! -path ./roms/edk2/BaseTools/Source/Python/UPT/Dll/sqlite3.dll \
 		-exec rm {} +
 	rm -f $(edk2-decompressed)
-	rm -f $(filter-out %.tlb,$(TOOLS)) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~
+	rm -f $(filter-out %.tlb,$(TOOLS)) $(HELPERS-y) qemu-ga$(EXESUF) TAGS cscope.* *.pod *~ */*~
 	rm -f fsdev/*.pod scsi/*.pod
 	rm -f qemu-img-cmds.h
 	rm -f ui/shader/*-vert.h ui/shader/*-frag.h
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 10/12] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 10/12] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	Laurent Vivier, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Stefan Weil, Paolo Bonzini, Philippe Mathieu-Daudé,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

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

Commit 48ff7a625b36 added the QEMU Guest Agent tool with the
optional ".exe" suffix for Windows hosts, but forgot to use
this suffix in the 'clean' rule. Calling this rule let a dangling
executable in the build directory.
Correct this by using the proper optional suffix.

Fixes: 48ff7a625b36
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <20190427161322.24642-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 43a7a047b452..e223bfe2a3a1 100644
--- a/Makefile
+++ b/Makefile
@@ -639,7 +639,7 @@ clean:
 		! -path ./roms/edk2/BaseTools/Source/Python/UPT/Dll/sqlite3.dll \
 		-exec rm {} +
 	rm -f $(edk2-decompressed)
-	rm -f $(filter-out %.tlb,$(TOOLS)) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~
+	rm -f $(filter-out %.tlb,$(TOOLS)) $(HELPERS-y) qemu-ga$(EXESUF) TAGS cscope.* *.pod *~ */*~
 	rm -f fsdev/*.pod scsi/*.pod
 	rm -f qemu-img-cmds.h
 	rm -f ui/shader/*-vert.h ui/shader/*-frag.h
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 11/12] hw/sparc/leon3: Allow load of uImage firmwares
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (10 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 10/12] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 12/12] sockets: avoid string truncation warnings when copying UNIX path Laurent Vivier
  2019-05-07 19:08 ` [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland,
	Philippe Mathieu-Daudé, KONRAD Frederic

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

Currently the Leon3 machine doesn't allow to load legacy u-boot images:

  $ qemu-system-sparc -M leon3_generic -d in_asm \
      -kernel HelenOS-0.6.0-sparc32-leon3.bin
  qemu-system-sparc: could not load kernel 'HelenOS-0.6.0-sparc32-leon3.bin'

  $ file HelenOS-0.6.0-sparc32-leon3.bin
  HelenOS-0.6.0-sparc32-leon3.bin: u-boot legacy uImage, HelenOS-0.6.0,\
    Linux/ARM, OS Kernel Image (Not compressed), 2424229 bytes,\
    Sun Dec 21 19:18:09 2014,\
    Load Address: 0x40000000, Entry Point: 0x40000000,\
    Header CRC: 0x8BCFA236, Data CRC: 0x37AD87DF

Since QEMU can load uImages, add the necessary code,
so the Leon3 machine can load these images:

  $ qemu-system-sparc -M leon3_generic -d in_asm \
      -kernel HelenOS-0.6.0-sparc32-leon3.bin
  ----------------
  IN:
  0x40000000:  b  0x400007a8
  0x40000004:  nop
  ----------------
  IN:
  0x400007a8:  save  %sp, -136, %sp
  0x400007ac:  call  0x40000020
  0x400007b0:  sethi  %hi(0x4000b800), %i1
  ...

Tested with the following firmware:
http://www.helenos.org/releases/HelenOS-0.6.0-sparc32-leon3.bin

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Tested-by: KONRAD Frederic <frederic.konrad@adacore.com>
Message-Id: <20190427162922.4207-1-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/sparc/leon3.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c
index 774639af3393..0383b17c298f 100644
--- a/hw/sparc/leon3.c
+++ b/hw/sparc/leon3.c
@@ -193,6 +193,10 @@ static void leon3_generic_hw_init(MachineState *machine)
         kernel_size = load_elf(kernel_filename, NULL, NULL, NULL,
                                &entry, NULL, NULL,
                                1 /* big endian */, EM_SPARC, 0, 0);
+        if (kernel_size < 0) {
+            kernel_size = load_uimage(kernel_filename, NULL, &entry,
+                                      NULL, NULL, NULL);
+        }
         if (kernel_size < 0) {
             error_report("could not load kernel '%s'", kernel_filename);
             exit(1);
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 11/12] hw/sparc/leon3: Allow load of uImage firmwares
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 11/12] hw/sparc/leon3: Allow load of uImage firmwares Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, qemu-trivial, Mark Cave-Ayland,
	Jason Wang, Michael Tokarev, Laurent Vivier, Fabien Chouteau,
	Michael Roth, KONRAD Frederic, Gerd Hoffmann, Paolo Bonzini,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

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

Currently the Leon3 machine doesn't allow to load legacy u-boot images:

  $ qemu-system-sparc -M leon3_generic -d in_asm \
      -kernel HelenOS-0.6.0-sparc32-leon3.bin
  qemu-system-sparc: could not load kernel 'HelenOS-0.6.0-sparc32-leon3.bin'

  $ file HelenOS-0.6.0-sparc32-leon3.bin
  HelenOS-0.6.0-sparc32-leon3.bin: u-boot legacy uImage, HelenOS-0.6.0,\
    Linux/ARM, OS Kernel Image (Not compressed), 2424229 bytes,\
    Sun Dec 21 19:18:09 2014,\
    Load Address: 0x40000000, Entry Point: 0x40000000,\
    Header CRC: 0x8BCFA236, Data CRC: 0x37AD87DF

Since QEMU can load uImages, add the necessary code,
so the Leon3 machine can load these images:

  $ qemu-system-sparc -M leon3_generic -d in_asm \
      -kernel HelenOS-0.6.0-sparc32-leon3.bin
  ----------------
  IN:
  0x40000000:  b  0x400007a8
  0x40000004:  nop
  ----------------
  IN:
  0x400007a8:  save  %sp, -136, %sp
  0x400007ac:  call  0x40000020
  0x400007b0:  sethi  %hi(0x4000b800), %i1
  ...

Tested with the following firmware:
http://www.helenos.org/releases/HelenOS-0.6.0-sparc32-leon3.bin

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Tested-by: KONRAD Frederic <frederic.konrad@adacore.com>
Message-Id: <20190427162922.4207-1-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/sparc/leon3.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c
index 774639af3393..0383b17c298f 100644
--- a/hw/sparc/leon3.c
+++ b/hw/sparc/leon3.c
@@ -193,6 +193,10 @@ static void leon3_generic_hw_init(MachineState *machine)
         kernel_size = load_elf(kernel_filename, NULL, NULL, NULL,
                                &entry, NULL, NULL,
                                1 /* big endian */, EM_SPARC, 0, 0);
+        if (kernel_size < 0) {
+            kernel_size = load_uimage(kernel_filename, NULL, &entry,
+                                      NULL, NULL, NULL);
+        }
         if (kernel_size < 0) {
             error_report("could not load kernel '%s'", kernel_filename);
             exit(1);
-- 
2.20.1



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

* [Qemu-devel] [PULL v2 12/12] sockets: avoid string truncation warnings when copying UNIX path
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (11 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 11/12] hw/sparc/leon3: Allow load of uImage firmwares Laurent Vivier
@ 2019-05-03 11:26 ` Laurent Vivier
  2019-05-03 11:26   ` Laurent Vivier
  2019-05-07 19:08 ` [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Paolo Bonzini, Fabien Chouteau, qemu-trivial,
	Richard Henderson, Jason Wang, Andreas Färber,
	Michael Tokarev, Daniel P. Berrangé, Gerd Hoffmann,
	Artyom Tarasenko, Michael Roth, Mark Cave-Ayland, Eric Blake,
	Stefano Garzarella

From: Daniel P. Berrangé <berrange@redhat.com>

In file included from /usr/include/string.h:494,
                 from include/qemu/osdep.h:101,
                 from util/qemu-sockets.c:18:
In function ‘strncpy’,
    inlined from ‘unix_connect_saddr.isra.0’ at util/qemu-sockets.c:925:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘unix_listen_saddr.isra.0’ at util/qemu-sockets.c:880:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We are already validating the UNIX socket path length earlier in
the functions. If we save this string length when we first check
it, then we can simply use memcpy instead of strcpy later, avoiding
the gcc truncation warnings.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190501145052.12579-1-berrange@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 util/qemu-sockets.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index 970505169000..ba6335e71a95 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -830,6 +830,7 @@ static int unix_listen_saddr(UnixSocketAddress *saddr,
     int sock, fd;
     char *pathbuf = NULL;
     const char *path;
+    size_t pathlen;
 
     sock = qemu_socket(PF_UNIX, SOCK_STREAM, 0);
     if (sock < 0) {
@@ -845,7 +846,8 @@ static int unix_listen_saddr(UnixSocketAddress *saddr,
         path = pathbuf = g_strdup_printf("%s/qemu-socket-XXXXXX", tmpdir);
     }
 
-    if (strlen(path) > sizeof(un.sun_path)) {
+    pathlen = strlen(path);
+    if (pathlen > sizeof(un.sun_path)) {
         error_setg(errp, "UNIX socket path '%s' is too long", path);
         error_append_hint(errp, "Path must be less than %zu bytes\n",
                           sizeof(un.sun_path));
@@ -877,7 +879,7 @@ static int unix_listen_saddr(UnixSocketAddress *saddr,
 
     memset(&un, 0, sizeof(un));
     un.sun_family = AF_UNIX;
-    strncpy(un.sun_path, path, sizeof(un.sun_path));
+    memcpy(un.sun_path, path, pathlen);
 
     if (bind(sock, (struct sockaddr*) &un, sizeof(un)) < 0) {
         error_setg_errno(errp, errno, "Failed to bind socket to %s", path);
@@ -901,6 +903,7 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp)
 {
     struct sockaddr_un un;
     int sock, rc;
+    size_t pathlen;
 
     if (saddr->path == NULL) {
         error_setg(errp, "unix connect: no path specified");
@@ -913,7 +916,8 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp)
         return -1;
     }
 
-    if (strlen(saddr->path) > sizeof(un.sun_path)) {
+    pathlen = strlen(saddr->path);
+    if (pathlen > sizeof(un.sun_path)) {
         error_setg(errp, "UNIX socket path '%s' is too long", saddr->path);
         error_append_hint(errp, "Path must be less than %zu bytes\n",
                           sizeof(un.sun_path));
@@ -922,7 +926,7 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp)
 
     memset(&un, 0, sizeof(un));
     un.sun_family = AF_UNIX;
-    strncpy(un.sun_path, saddr->path, sizeof(un.sun_path));
+    memcpy(un.sun_path, saddr->path, pathlen);
 
     /* connect to peer */
     do {
-- 
2.20.1

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

* [Qemu-devel] [PULL v2 12/12] sockets: avoid string truncation warnings when copying UNIX path
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 12/12] sockets: avoid string truncation warnings when copying UNIX path Laurent Vivier
@ 2019-05-03 11:26   ` Laurent Vivier
  0 siblings, 0 replies; 35+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	Laurent Vivier, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Paolo Bonzini, Stefano Garzarella, Andreas Färber,
	Artyom Tarasenko, Richard Henderson

From: Daniel P. Berrangé <berrange@redhat.com>

In file included from /usr/include/string.h:494,
                 from include/qemu/osdep.h:101,
                 from util/qemu-sockets.c:18:
In function ‘strncpy’,
    inlined from ‘unix_connect_saddr.isra.0’ at util/qemu-sockets.c:925:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘unix_listen_saddr.isra.0’ at util/qemu-sockets.c:880:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We are already validating the UNIX socket path length earlier in
the functions. If we save this string length when we first check
it, then we can simply use memcpy instead of strcpy later, avoiding
the gcc truncation warnings.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190501145052.12579-1-berrange@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 util/qemu-sockets.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index 970505169000..ba6335e71a95 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -830,6 +830,7 @@ static int unix_listen_saddr(UnixSocketAddress *saddr,
     int sock, fd;
     char *pathbuf = NULL;
     const char *path;
+    size_t pathlen;
 
     sock = qemu_socket(PF_UNIX, SOCK_STREAM, 0);
     if (sock < 0) {
@@ -845,7 +846,8 @@ static int unix_listen_saddr(UnixSocketAddress *saddr,
         path = pathbuf = g_strdup_printf("%s/qemu-socket-XXXXXX", tmpdir);
     }
 
-    if (strlen(path) > sizeof(un.sun_path)) {
+    pathlen = strlen(path);
+    if (pathlen > sizeof(un.sun_path)) {
         error_setg(errp, "UNIX socket path '%s' is too long", path);
         error_append_hint(errp, "Path must be less than %zu bytes\n",
                           sizeof(un.sun_path));
@@ -877,7 +879,7 @@ static int unix_listen_saddr(UnixSocketAddress *saddr,
 
     memset(&un, 0, sizeof(un));
     un.sun_family = AF_UNIX;
-    strncpy(un.sun_path, path, sizeof(un.sun_path));
+    memcpy(un.sun_path, path, pathlen);
 
     if (bind(sock, (struct sockaddr*) &un, sizeof(un)) < 0) {
         error_setg_errno(errp, errno, "Failed to bind socket to %s", path);
@@ -901,6 +903,7 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp)
 {
     struct sockaddr_un un;
     int sock, rc;
+    size_t pathlen;
 
     if (saddr->path == NULL) {
         error_setg(errp, "unix connect: no path specified");
@@ -913,7 +916,8 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp)
         return -1;
     }
 
-    if (strlen(saddr->path) > sizeof(un.sun_path)) {
+    pathlen = strlen(saddr->path);
+    if (pathlen > sizeof(un.sun_path)) {
         error_setg(errp, "UNIX socket path '%s' is too long", saddr->path);
         error_append_hint(errp, "Path must be less than %zu bytes\n",
                           sizeof(un.sun_path));
@@ -922,7 +926,7 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp)
 
     memset(&un, 0, sizeof(un));
     un.sun_family = AF_UNIX;
-    strncpy(un.sun_path, saddr->path, sizeof(un.sun_path));
+    memcpy(un.sun_path, saddr->path, pathlen);
 
     /* connect to peer */
     do {
-- 
2.20.1



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

* Re: [Qemu-devel] [PULL v2 00/12] Trivial branch patches
  2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
                   ` (12 preceding siblings ...)
  2019-05-03 11:26 ` [Qemu-devel] [PULL v2 12/12] sockets: avoid string truncation warnings when copying UNIX path Laurent Vivier
@ 2019-05-07 19:08 ` Laurent Vivier
  2019-05-07 20:48   ` Peter Maydell
  13 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-07 19:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	Michael Roth, Fabien Chouteau, Gerd Hoffmann, Paolo Bonzini,
	Andreas Färber, Artyom Tarasenko, Richard Henderson

Ping ?


On 03/05/2019 13:26, Laurent Vivier wrote:
> The following changes since commit 8482ff2eb3bb95020eb2f370a9b3ea26511e41df:
> 
>    Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)
> 
> are available in the Git repository at:
> 
>    git://github.com/vivier/qemu.git tags/trivial-branch-pull-request
> 
> for you to fetch changes up to 2d2023c3b99edb33ad4bb9791f70456ea1a1c049:
> 
>    sockets: avoid string truncation warnings when copying UNIX path (2019-05-03 13:03:04 +0200)
> 
> ----------------------------------------------------------------
> Pull request trivial branch 2019-05-03
> 
> ----------------------------------------------------------------
> 
> Aruna Jayasena (1):
>    Header cleanups
> 
> Daniel P. Berrangé (1):
>    sockets: avoid string truncation warnings when copying UNIX path
> 
> Dr. David Alan Gilbert (1):
>    configure: fix pam test warning
> 
> Marc-André Lureau (1):
>    doc: fix the configuration path
> 
> Philippe Mathieu-Daudé (3):
>    hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
>    Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
>    hw/sparc/leon3: Allow load of uImage firmwares
> 
> Stefan Weil (1):
>    Update configure
> 
> Thomas Huth (1):
>    net: Print output of "-net nic, model=help" to stdout instead of
>      stderr
> 
> Wei Yang (3):
>    CODING_STYLE: specify the indent rule for multiline code
>    CODING_STYLE: indent example code as all others
>    qom: use object_new_with_type in object_new_with_propv
> 
>   qemu-ga.texi              |  4 ++--
>   configure                 |  5 ++---
>   Makefile                  | 11 +++++----
>   include/exec/cpu-common.h |  3 ---
>   hw/net/pcnet.c            |  4 +++-
>   hw/sparc/leon3.c          |  4 ++++
>   net/net.c                 |  7 +++---
>   qom/object.c              |  2 +-
>   util/qemu-sockets.c       | 12 ++++++----
>   CODING_STYLE              | 47 +++++++++++++++++++++++++++++++++++----
>   10 files changed, 74 insertions(+), 25 deletions(-)
> 



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

* Re: [Qemu-devel] [PULL v2 00/12] Trivial branch patches
  2019-05-07 19:08 ` [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
@ 2019-05-07 20:48   ` Peter Maydell
  2019-05-09  8:51     ` Peter Maydell
  0 siblings, 1 reply; 35+ messages in thread
From: Peter Maydell @ 2019-05-07 20:48 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: QEMU Trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	QEMU Developers, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Paolo Bonzini, Andreas Färber, Artyom Tarasenko,
	Richard Henderson

On Tue, 7 May 2019 at 20:10, Laurent Vivier <laurent@vivier.eu> wrote:
>
> Ping ?

This is in my queue to process, but there are still a bunch of
other pullreqs in the queue too; I am working through them.

thanks
-- PMM


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

* Re: [Qemu-devel] [PULL v2 00/12] Trivial branch patches
  2019-05-07 20:48   ` Peter Maydell
@ 2019-05-09  8:51     ` Peter Maydell
  2019-05-09  8:58       ` Laurent Vivier
  0 siblings, 1 reply; 35+ messages in thread
From: Peter Maydell @ 2019-05-09  8:51 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: QEMU Trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	QEMU Developers, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Paolo Bonzini, Andreas Färber, Artyom Tarasenko,
	Richard Henderson

On Tue, 7 May 2019 at 21:48, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> On Tue, 7 May 2019 at 20:10, Laurent Vivier <laurent@vivier.eu> wrote:
> >
> > Ping ?
>
> This is in my queue to process, but there are still a bunch of
> other pullreqs in the queue too; I am working through them.

Wait, I'm confused now. Looking back through my emails you
said "Forget this series, the send has been aborted for an
unknown reason.". So should I be applying something ?

thanks
-- PMM


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

* Re: [Qemu-devel] [PULL v2 00/12] Trivial branch patches
  2019-05-09  8:51     ` Peter Maydell
@ 2019-05-09  8:58       ` Laurent Vivier
  2019-05-09 14:27         ` Peter Maydell
  0 siblings, 1 reply; 35+ messages in thread
From: Laurent Vivier @ 2019-05-09  8:58 UTC (permalink / raw)
  To: Peter Maydell
  Cc: QEMU Trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	QEMU Developers, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Paolo Bonzini, Andreas Färber, Artyom Tarasenko,
	Richard Henderson

On 09/05/2019 10:51, Peter Maydell wrote:
> On Tue, 7 May 2019 at 21:48, Peter Maydell <peter.maydell@linaro.org> wrote:
>>
>> On Tue, 7 May 2019 at 20:10, Laurent Vivier <laurent@vivier.eu> wrote:
>>>
>>> Ping ?
>>
>> This is in my queue to process, but there are still a bunch of
>> other pullreqs in the queue too; I am working through them.
> 
> Wait, I'm confused now. Looking back through my emails you
> said "Forget this series, the send has been aborted for an
> unknown reason.". So should I be applying something ?

Yes, it's why I pinged.

I sent the v2 three times because the sent was aborted for an known 
reason two times. The third is the good one.

You must apply this series.

I can send a v3 if your prefer.

Thanks,
Laurent


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

* Re: [Qemu-devel] [PULL v2 00/12] Trivial branch patches
  2019-05-09  8:58       ` Laurent Vivier
@ 2019-05-09 14:27         ` Peter Maydell
  0 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2019-05-09 14:27 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: QEMU Trivial, Mark Cave-Ayland, Jason Wang, Michael Tokarev,
	QEMU Developers, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
	Paolo Bonzini, Andreas Färber, Artyom Tarasenko,
	Richard Henderson

On Thu, 9 May 2019 at 09:58, Laurent Vivier <laurent@vivier.eu> wrote:
>
> On 09/05/2019 10:51, Peter Maydell wrote:
> > On Tue, 7 May 2019 at 21:48, Peter Maydell <peter.maydell@linaro.org> wrote:
> >>
> >> On Tue, 7 May 2019 at 20:10, Laurent Vivier <laurent@vivier.eu> wrote:
> >>>
> >>> Ping ?
> >>
> >> This is in my queue to process, but there are still a bunch of
> >> other pullreqs in the queue too; I am working through them.
> >
> > Wait, I'm confused now. Looking back through my emails you
> > said "Forget this series, the send has been aborted for an
> > unknown reason.". So should I be applying something ?
>
> Yes, it's why I pinged.
>
> I sent the v2 three times because the sent was aborted for an known
> reason two times. The third is the good one.
>
> You must apply this series.

Applied, thanks.

-- PMM


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

end of thread, other threads:[~2019-05-09 14:29 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-03 11:26 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
2019-05-03 11:26 ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 02/12] CODING_STYLE: specify the indent rule for multiline code Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 03/12] CODING_STYLE: indent example code as all others Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 04/12] doc: fix the configuration path Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 05/12] qom: use object_new_with_type in object_new_with_propv Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 06/12] configure: fix pam test warning Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 07/12] Update configure Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 08/12] Header cleanups Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 09/12] net: Print output of "-net nic, model=help" to stdout instead of stderr Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 10/12] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 11/12] hw/sparc/leon3: Allow load of uImage firmwares Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-03 11:26 ` [Qemu-devel] [PULL v2 12/12] sockets: avoid string truncation warnings when copying UNIX path Laurent Vivier
2019-05-03 11:26   ` Laurent Vivier
2019-05-07 19:08 ` [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
2019-05-07 20:48   ` Peter Maydell
2019-05-09  8:51     ` Peter Maydell
2019-05-09  8:58       ` Laurent Vivier
2019-05-09 14:27         ` Peter Maydell
  -- strict thread matches above, loose matches on Subject: below --
2019-05-03 11:19 Laurent Vivier
2019-05-03 11:19 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
2019-05-03 11:19   ` Laurent Vivier
2019-05-03 11:18 [Qemu-devel] [PULL v2 00/12] Trivial branch patches Laurent Vivier
2019-05-03 11:18 ` [Qemu-devel] [PULL v2 01/12] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
2019-05-03 11:18   ` Laurent Vivier

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