* [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 01/13] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
` (13 subsequent siblings)
14 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Laurent Vivier, Peter Maydell, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, qemu-trivial, Michael Tokarev, Jason Wang,
Mark Cave-Ayland, Laurent Vivier, Fabien Chouteau, Michael Roth,
Gerd Hoffmann, Aurelien Jarno, Paolo Bonzini, Alex Bennée,
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 f7c03a68b814254df414977ff299468fbf0fa1c0:
sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
----------------------------------------------------------------
Pull request trivial branch 2019-05-02
----------------------------------------------------------------
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
Markus Armbruster (1):
Clean up includes
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 +++++----
hw/display/ati_int.h | 1 -
include/exec/cpu-common.h | 3 ---
include/hw/cpu/cluster.h | 1 -
tests/fp/platform.h | 1 -
tests/libqos/qgraph.h | 4 ----
contrib/elf2dmp/main.c | 3 +--
contrib/elf2dmp/pdb.c | 3 +--
hw/display/ati.c | 1 +
hw/display/ati_2d.c | 1 +
hw/display/ati_dbg.c | 1 +
hw/net/pcnet.c | 4 +++-
hw/sparc/leon3.c | 4 ++++
net/net.c | 7 +++---
qom/object.c | 2 +-
tests/qos-test.c | 2 +-
util/qemu-sockets.c | 12 ++++++----
CODING_STYLE | 47 +++++++++++++++++++++++++++++++++++----
20 files changed, 80 insertions(+), 37 deletions(-)
--
2.20.1
^ permalink raw reply [flat|nested] 43+ messages in thread
* [Qemu-devel] [PULL 01/13] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 02/13] CODING_STYLE: specify the indent rule for multiline code Laurent Vivier
` (12 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, Philippe Mathieu-Daudé
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] 43+ messages in thread
* [Qemu-devel] [PULL 01/13] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
2019-05-02 18:58 ` [Qemu-devel] [PULL 01/13] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Philippe Mathieu-Daudé,
Artyom Tarasenko, Laurent Vivier, Thomas Huth, Eduardo Habkost,
Mark Cave-Ayland, Fabien Chouteau, Alex Bennée,
Richard Henderson, Viktor Prutyanov, Laurent Vivier,
Paolo Bonzini, Andreas Färber, Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 02/13] CODING_STYLE: specify the indent rule for multiline code
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 01/13] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 03/13] CODING_STYLE: indent example code as all others Laurent Vivier
` (11 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 02/13] CODING_STYLE: specify the indent rule for multiline code
2019-05-02 18:58 ` [Qemu-devel] [PULL 02/13] CODING_STYLE: specify the indent rule for multiline code Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Artyom Tarasenko, Stefano Garzarella,
Laurent Vivier, Thomas Huth, Eduardo Habkost, Mark Cave-Ayland,
Fabien Chouteau, Igor Mammedov, Alex Bennée,
Richard Henderson, Viktor Prutyanov, Laurent Vivier, Wei Yang,
Paolo Bonzini, Andreas Färber, Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 03/13] CODING_STYLE: indent example code as all others
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (2 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 02/13] CODING_STYLE: specify the indent rule for multiline code Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 04/13] Clean up includes Laurent Vivier
` (10 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 03/13] CODING_STYLE: indent example code as all others
2019-05-02 18:58 ` [Qemu-devel] [PULL 03/13] CODING_STYLE: indent example code as all others Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Philippe Mathieu-Daudé,
Artyom Tarasenko, Stefano Garzarella, Laurent Vivier, Thomas Huth,
Eduardo Habkost, Mark Cave-Ayland, Fabien Chouteau, Igor Mammedov,
Alex Bennée, Richard Henderson, Viktor Prutyanov,
Laurent Vivier, Wei Yang, Paolo Bonzini, Andreas Färber,
Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 04/13] Clean up includes
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (3 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 03/13] CODING_STYLE: indent example code as all others Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 05/13] doc: fix the configuration path Laurent Vivier
` (9 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, Markus Armbruster, Eric Blake
From: Markus Armbruster <armbru@redhat.com>
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.
This commit was created with scripts/clean-includes, with the changes
to the following files manually reverted:
contrib/libvhost-user/libvhost-user-glib.h
contrib/libvhost-user/libvhost-user.c
contrib/libvhost-user/libvhost-user.h
linux-user/mips64/cpu_loop.c
linux-user/mips64/signal.c
linux-user/sparc64/cpu_loop.c
linux-user/sparc64/signal.c
linux-user/x86_64/cpu_loop.c
linux-user/x86_64/signal.c
slirp/src/*
target/s390x/gen-features.c
tests/migration/s390x/a-b-bios.c
tests/test-rcu-simpleq.c
tests/test-rcu-tailq.c
tests/uefi-test-tools/UefiTestToolsPkg/BiosTablesTest/BiosTablesTest.c
We're in the process of spinning out slirp/. tests/uefi-test-tools/
is guest software. The remaining reverts are the same as in commit
b7d89466dde.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190313162812.8885-1-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/display/ati_int.h | 1 -
include/hw/cpu/cluster.h | 1 -
tests/fp/platform.h | 1 -
tests/libqos/qgraph.h | 4 ----
contrib/elf2dmp/main.c | 3 +--
contrib/elf2dmp/pdb.c | 3 +--
hw/display/ati.c | 1 +
hw/display/ati_2d.c | 1 +
hw/display/ati_dbg.c | 1 +
tests/qos-test.c | 2 +-
10 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/hw/display/ati_int.h b/hw/display/ati_int.h
index a6f3e20e6319..2f426064cf7d 100644
--- a/hw/display/ati_int.h
+++ b/hw/display/ati_int.h
@@ -9,7 +9,6 @@
#ifndef ATI_INT_H
#define ATI_INT_H
-#include "qemu/osdep.h"
#include "hw/pci/pci.h"
#include "vga_int.h"
diff --git a/include/hw/cpu/cluster.h b/include/hw/cpu/cluster.h
index 549c2d31d438..01c1e50cd221 100644
--- a/include/hw/cpu/cluster.h
+++ b/include/hw/cpu/cluster.h
@@ -20,7 +20,6 @@
#ifndef HW_CPU_CLUSTER_H
#define HW_CPU_CLUSTER_H
-#include "qemu/osdep.h"
#include "hw/qdev.h"
/*
diff --git a/tests/fp/platform.h b/tests/fp/platform.h
index c20ba70baa07..f8c423dde3dc 100644
--- a/tests/fp/platform.h
+++ b/tests/fp/platform.h
@@ -29,7 +29,6 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config-host.h"
#ifndef HOST_WORDS_BIGENDIAN
#define LITTLEENDIAN 1
diff --git a/tests/libqos/qgraph.h b/tests/libqos/qgraph.h
index ef0c73837a60..e799095b308a 100644
--- a/tests/libqos/qgraph.h
+++ b/tests/libqos/qgraph.h
@@ -19,11 +19,7 @@
#ifndef QGRAPH_H
#define QGRAPH_H
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
#include <gmodule.h>
-#include <glib.h>
#include "qemu/module.h"
#include "malloc.h"
diff --git a/contrib/elf2dmp/main.c b/contrib/elf2dmp/main.c
index 1bfeb89ba7bd..9a2dbc290214 100644
--- a/contrib/elf2dmp/main.c
+++ b/contrib/elf2dmp/main.c
@@ -5,9 +5,8 @@
*
*/
-#include <inttypes.h>
-
#include "qemu/osdep.h"
+
#include "err.h"
#include "addrspace.h"
#include "pe.h"
diff --git a/contrib/elf2dmp/pdb.c b/contrib/elf2dmp/pdb.c
index 64af20f5842e..a5bd40c99dca 100644
--- a/contrib/elf2dmp/pdb.c
+++ b/contrib/elf2dmp/pdb.c
@@ -18,9 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <inttypes.h>
-
#include "qemu/osdep.h"
+
#include "pdb.h"
#include "err.h"
diff --git a/hw/display/ati.c b/hw/display/ati.c
index db409be3c958..75716dd944ec 100644
--- a/hw/display/ati.c
+++ b/hw/display/ati.c
@@ -16,6 +16,7 @@
* No 3D at all yet (maybe after 2D works, but feel free to improve it)
*/
+#include "qemu/osdep.h"
#include "ati_int.h"
#include "ati_regs.h"
#include "vga_regs.h"
diff --git a/hw/display/ati_2d.c b/hw/display/ati_2d.c
index bc98ba6eebf6..f31b3c27c7d8 100644
--- a/hw/display/ati_2d.c
+++ b/hw/display/ati_2d.c
@@ -7,6 +7,7 @@
* This work is licensed under the GNU GPL license version 2 or later.
*/
+#include "qemu/osdep.h"
#include "ati_int.h"
#include "ati_regs.h"
#include "qemu/log.h"
diff --git a/hw/display/ati_dbg.c b/hw/display/ati_dbg.c
index 1e6c32624e5a..b045f81d0602 100644
--- a/hw/display/ati_dbg.c
+++ b/hw/display/ati_dbg.c
@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
#include "ati_int.h"
#ifdef DEBUG_ATI
diff --git a/tests/qos-test.c b/tests/qos-test.c
index 6b1145ecccff..ae2fb5de1c9b 100644
--- a/tests/qos-test.c
+++ b/tests/qos-test.c
@@ -16,8 +16,8 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
-#include <getopt.h>
#include "qemu/osdep.h"
+#include <getopt.h>
#include "libqtest.h"
#include "qapi/qmp/qdict.h"
#include "qapi/qmp/qbool.h"
--
2.20.1
^ permalink raw reply related [flat|nested] 43+ messages in thread
* [Qemu-devel] [PULL 04/13] Clean up includes
2019-05-02 18:58 ` [Qemu-devel] [PULL 04/13] Clean up includes Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Markus Armbruster,
Gerd Hoffmann, qemu-trivial, Michael Roth, Artyom Tarasenko,
Laurent Vivier, Thomas Huth, Eduardo Habkost, Mark Cave-Ayland,
Fabien Chouteau, Alex Bennée, Richard Henderson,
Viktor Prutyanov, Laurent Vivier, Paolo Bonzini,
Andreas Färber, Aurelien Jarno
From: Markus Armbruster <armbru@redhat.com>
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.
This commit was created with scripts/clean-includes, with the changes
to the following files manually reverted:
contrib/libvhost-user/libvhost-user-glib.h
contrib/libvhost-user/libvhost-user.c
contrib/libvhost-user/libvhost-user.h
linux-user/mips64/cpu_loop.c
linux-user/mips64/signal.c
linux-user/sparc64/cpu_loop.c
linux-user/sparc64/signal.c
linux-user/x86_64/cpu_loop.c
linux-user/x86_64/signal.c
slirp/src/*
target/s390x/gen-features.c
tests/migration/s390x/a-b-bios.c
tests/test-rcu-simpleq.c
tests/test-rcu-tailq.c
tests/uefi-test-tools/UefiTestToolsPkg/BiosTablesTest/BiosTablesTest.c
We're in the process of spinning out slirp/. tests/uefi-test-tools/
is guest software. The remaining reverts are the same as in commit
b7d89466dde.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190313162812.8885-1-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/display/ati_int.h | 1 -
include/hw/cpu/cluster.h | 1 -
tests/fp/platform.h | 1 -
tests/libqos/qgraph.h | 4 ----
contrib/elf2dmp/main.c | 3 +--
contrib/elf2dmp/pdb.c | 3 +--
hw/display/ati.c | 1 +
hw/display/ati_2d.c | 1 +
hw/display/ati_dbg.c | 1 +
tests/qos-test.c | 2 +-
10 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/hw/display/ati_int.h b/hw/display/ati_int.h
index a6f3e20e6319..2f426064cf7d 100644
--- a/hw/display/ati_int.h
+++ b/hw/display/ati_int.h
@@ -9,7 +9,6 @@
#ifndef ATI_INT_H
#define ATI_INT_H
-#include "qemu/osdep.h"
#include "hw/pci/pci.h"
#include "vga_int.h"
diff --git a/include/hw/cpu/cluster.h b/include/hw/cpu/cluster.h
index 549c2d31d438..01c1e50cd221 100644
--- a/include/hw/cpu/cluster.h
+++ b/include/hw/cpu/cluster.h
@@ -20,7 +20,6 @@
#ifndef HW_CPU_CLUSTER_H
#define HW_CPU_CLUSTER_H
-#include "qemu/osdep.h"
#include "hw/qdev.h"
/*
diff --git a/tests/fp/platform.h b/tests/fp/platform.h
index c20ba70baa07..f8c423dde3dc 100644
--- a/tests/fp/platform.h
+++ b/tests/fp/platform.h
@@ -29,7 +29,6 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config-host.h"
#ifndef HOST_WORDS_BIGENDIAN
#define LITTLEENDIAN 1
diff --git a/tests/libqos/qgraph.h b/tests/libqos/qgraph.h
index ef0c73837a60..e799095b308a 100644
--- a/tests/libqos/qgraph.h
+++ b/tests/libqos/qgraph.h
@@ -19,11 +19,7 @@
#ifndef QGRAPH_H
#define QGRAPH_H
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
#include <gmodule.h>
-#include <glib.h>
#include "qemu/module.h"
#include "malloc.h"
diff --git a/contrib/elf2dmp/main.c b/contrib/elf2dmp/main.c
index 1bfeb89ba7bd..9a2dbc290214 100644
--- a/contrib/elf2dmp/main.c
+++ b/contrib/elf2dmp/main.c
@@ -5,9 +5,8 @@
*
*/
-#include <inttypes.h>
-
#include "qemu/osdep.h"
+
#include "err.h"
#include "addrspace.h"
#include "pe.h"
diff --git a/contrib/elf2dmp/pdb.c b/contrib/elf2dmp/pdb.c
index 64af20f5842e..a5bd40c99dca 100644
--- a/contrib/elf2dmp/pdb.c
+++ b/contrib/elf2dmp/pdb.c
@@ -18,9 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <inttypes.h>
-
#include "qemu/osdep.h"
+
#include "pdb.h"
#include "err.h"
diff --git a/hw/display/ati.c b/hw/display/ati.c
index db409be3c958..75716dd944ec 100644
--- a/hw/display/ati.c
+++ b/hw/display/ati.c
@@ -16,6 +16,7 @@
* No 3D at all yet (maybe after 2D works, but feel free to improve it)
*/
+#include "qemu/osdep.h"
#include "ati_int.h"
#include "ati_regs.h"
#include "vga_regs.h"
diff --git a/hw/display/ati_2d.c b/hw/display/ati_2d.c
index bc98ba6eebf6..f31b3c27c7d8 100644
--- a/hw/display/ati_2d.c
+++ b/hw/display/ati_2d.c
@@ -7,6 +7,7 @@
* This work is licensed under the GNU GPL license version 2 or later.
*/
+#include "qemu/osdep.h"
#include "ati_int.h"
#include "ati_regs.h"
#include "qemu/log.h"
diff --git a/hw/display/ati_dbg.c b/hw/display/ati_dbg.c
index 1e6c32624e5a..b045f81d0602 100644
--- a/hw/display/ati_dbg.c
+++ b/hw/display/ati_dbg.c
@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
#include "ati_int.h"
#ifdef DEBUG_ATI
diff --git a/tests/qos-test.c b/tests/qos-test.c
index 6b1145ecccff..ae2fb5de1c9b 100644
--- a/tests/qos-test.c
+++ b/tests/qos-test.c
@@ -16,8 +16,8 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
-#include <getopt.h>
#include "qemu/osdep.h"
+#include <getopt.h>
#include "libqtest.h"
#include "qapi/qmp/qdict.h"
#include "qapi/qmp/qbool.h"
--
2.20.1
^ permalink raw reply related [flat|nested] 43+ messages in thread
* [Qemu-devel] [PULL 05/13] doc: fix the configuration path
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (4 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 04/13] Clean up includes Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 06/13] qom: use object_new_with_type in object_new_with_propv Laurent Vivier
` (8 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 05/13] doc: fix the configuration path
2019-05-02 18:58 ` [Qemu-devel] [PULL 05/13] doc: fix the configuration path Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Marc-André Lureau,
Philippe Mathieu-Daudé, Artyom Tarasenko, Laurent Vivier,
Thomas Huth, Eduardo Habkost, Mark Cave-Ayland, Fabien Chouteau,
Alex Bennée, Richard Henderson, Viktor Prutyanov,
Laurent Vivier, Paolo Bonzini, Andreas Färber,
Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 06/13] qom: use object_new_with_type in object_new_with_propv
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (5 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 05/13] doc: fix the configuration path Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 07/13] configure: fix pam test warning Laurent Vivier
` (7 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 06/13] qom: use object_new_with_type in object_new_with_propv
2019-05-02 18:58 ` [Qemu-devel] [PULL 06/13] qom: use object_new_with_type in object_new_with_propv Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Marc-André Lureau,
Artyom Tarasenko, Stefano Garzarella, Laurent Vivier, Thomas Huth,
Eduardo Habkost, Mark Cave-Ayland, Fabien Chouteau,
Alex Bennée, Richard Henderson, Viktor Prutyanov,
Laurent Vivier, Wei Yang, Paolo Bonzini, Andreas Färber,
Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 07/13] configure: fix pam test warning
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (6 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 06/13] qom: use object_new_with_type in object_new_with_propv Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 08/13] Update configure Laurent Vivier
` (6 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 07/13] configure: fix pam test warning
2019-05-02 18:58 ` [Qemu-devel] [PULL 07/13] configure: fix pam test warning Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Philippe Mathieu-Daudé,
Artyom Tarasenko, Laurent Vivier, Thomas Huth, Eduardo Habkost,
Mark Cave-Ayland, Dr. David Alan Gilbert, Fabien Chouteau,
Alex Bennée, Richard Henderson, Viktor Prutyanov,
Laurent Vivier, Paolo Bonzini, Andreas Färber,
Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 08/13] Update configure
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (7 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 07/13] configure: fix pam test warning Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 09/13] Header cleanups Laurent Vivier
` (5 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 08/13] Update configure
2019-05-02 18:58 ` [Qemu-devel] [PULL 08/13] Update configure Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Stefan Weil,
Philippe Mathieu-Daudé, Artyom Tarasenko, Laurent Vivier,
Thomas Huth, Eduardo Habkost, Mark Cave-Ayland, Fabien Chouteau,
Igor Mammedov, Alex Bennée, Richard Henderson,
Viktor Prutyanov, Laurent Vivier, Paolo Bonzini,
Andreas Färber, Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 09/13] Header cleanups
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (8 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 08/13] Update configure Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 10/13] net: Print output of "-net nic, model=help" to stdout instead of stderr Laurent Vivier
` (4 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, Aruna Jayasena
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] 43+ messages in thread
* [Qemu-devel] [PULL 09/13] Header cleanups
2019-05-02 18:58 ` [Qemu-devel] [PULL 09/13] Header cleanups Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
Aruna Jayasena, qemu-trivial, Michael Roth, Artyom Tarasenko,
Laurent Vivier, Thomas Huth, Eduardo Habkost, Mark Cave-Ayland,
Fabien Chouteau, Alex Bennée, Richard Henderson,
Viktor Prutyanov, Laurent Vivier, Paolo Bonzini,
Andreas Färber, Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 10/13] net: Print output of "-net nic, model=help" to stdout instead of stderr
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (9 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 09/13] Header cleanups Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 11/13] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts Laurent Vivier
` (3 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 10/13] net: Print output of "-net nic, model=help" to stdout instead of stderr
2019-05-02 18:58 ` [Qemu-devel] [PULL 10/13] net: Print output of "-net nic, model=help" to stdout instead of stderr Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Philippe Mathieu-Daudé,
Artyom Tarasenko, Laurent Vivier, Thomas Huth, Eduardo Habkost,
Mark Cave-Ayland, Fabien Chouteau, Alex Bennée,
Richard Henderson, Viktor Prutyanov, Laurent Vivier,
Paolo Bonzini, Andreas Färber, Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 11/13] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (10 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 10/13] net: Print output of "-net nic, model=help" to stdout instead of stderr Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 12/13] hw/sparc/leon3: Allow load of uImage firmwares Laurent Vivier
` (2 subsequent siblings)
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 11/13] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
2019-05-02 18:58 ` [Qemu-devel] [PULL 11/13] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Stefan Weil,
Philippe Mathieu-Daudé, Artyom Tarasenko, Laurent Vivier,
Thomas Huth, Eduardo Habkost, Mark Cave-Ayland, Fabien Chouteau,
Alex Bennée, Richard Henderson, Viktor Prutyanov,
Laurent Vivier, Paolo Bonzini, Andreas Färber,
Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 12/13] hw/sparc/leon3: Allow load of uImage firmwares
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (11 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 11/13] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` [Qemu-devel] [PULL 13/13] sockets: avoid string truncation warnings when copying UNIX path Laurent Vivier
2019-05-03 10:34 ` [Qemu-devel] [PULL 00/13] Trivial branch patches Peter Maydell
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 12/13] hw/sparc/leon3: Allow load of uImage firmwares
2019-05-02 18:58 ` [Qemu-devel] [PULL 12/13] hw/sparc/leon3: Allow load of uImage firmwares Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Laurent Vivier,
KONRAD Frederic, Gerd Hoffmann, qemu-trivial, Michael Roth,
Artyom Tarasenko, Laurent Vivier, Thomas Huth, Eduardo Habkost,
Mark Cave-Ayland, Fabien Chouteau, Alex Bennée,
Richard Henderson, Viktor Prutyanov, Philippe Mathieu-Daudé,
Paolo Bonzini, Andreas Färber, Aurelien Jarno
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] 43+ messages in thread
* [Qemu-devel] [PULL 13/13] sockets: avoid string truncation warnings when copying UNIX path
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (12 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 12/13] hw/sparc/leon3: Allow load of uImage firmwares Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
2019-05-02 18:58 ` Laurent Vivier
2019-05-03 10:34 ` [Qemu-devel] [PULL 00/13] Trivial branch patches Peter Maydell
14 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Laurent Vivier, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
qemu-trivial, Laurent Vivier, Michael Tokarev, Peter Maydell,
Daniel P. Berrangé, Alex Bennée, Gerd Hoffmann,
Michael Roth, 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] 43+ messages in thread
* [Qemu-devel] [PULL 13/13] sockets: avoid string truncation warnings when copying UNIX path
2019-05-02 18:58 ` [Qemu-devel] [PULL 13/13] sockets: avoid string truncation warnings when copying UNIX path Laurent Vivier
@ 2019-05-02 18:58 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-02 18:58 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Jason Wang, Michael Tokarev, Gerd Hoffmann,
qemu-trivial, Michael Roth, Artyom Tarasenko, Stefano Garzarella,
Laurent Vivier, Thomas Huth, Eduardo Habkost, Mark Cave-Ayland,
Fabien Chouteau, Alex Bennée, Richard Henderson,
Viktor Prutyanov, Laurent Vivier, Paolo Bonzini,
Andreas Färber, Aurelien Jarno
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] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-02 18:58 [Qemu-devel] [PULL 00/13] Trivial branch patches Laurent Vivier
` (13 preceding siblings ...)
2019-05-02 18:58 ` [Qemu-devel] [PULL 13/13] sockets: avoid string truncation warnings when copying UNIX path Laurent Vivier
@ 2019-05-03 10:34 ` Peter Maydell
2019-05-03 10:34 ` Peter Maydell
` (2 more replies)
14 siblings, 3 replies; 43+ messages in thread
From: Peter Maydell @ 2019-05-03 10:34 UTC (permalink / raw)
To: Laurent Vivier
Cc: QEMU Developers, Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Eduardo Habkost, Andreas Färber,
Marcel Apfelbaum, Aurelien Jarno, Jason Wang, QEMU Trivial,
Laurent Vivier, Michael Tokarev, Daniel P. Berrangé,
Alex Bennée, Gerd Hoffmann, Michael Roth
On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>
> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>
> ----------------------------------------------------------------
> Pull request trivial branch 2019-05-02
>
> ----------------------------------------------------------------
Markus's "Clean up includes" patch breaks 'make check' on
big-endian hosts:
cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>> Testing i32_to_f16, rounding near_even
^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found in i32_to_f16, rounding near_even.
>> Testing i32_to_f16, rounding minMag
[...]
^MErrors found in i32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....
expected +401B.006FFFF000000000000000000000 .....
^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
expected +400F.DDEB000000000000000000000000 .....
^MFFF6FFFC => +0000.000000000000C012200080000000 .....
expected -4012.2000800000000000000000000000 .....
^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
expected -4002.0000000000000000000000000000 .....
[etc]
(I had to bounce Markus' own pullreq from a week or
so back because it had this patch in too and also failed
for this reason.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-03 10:34 ` [Qemu-devel] [PULL 00/13] Trivial branch patches Peter Maydell
@ 2019-05-03 10:34 ` Peter Maydell
2019-05-03 11:03 ` Laurent Vivier
2019-05-03 11:17 ` Alex Bennée
2 siblings, 0 replies; 43+ messages in thread
From: Peter Maydell @ 2019-05-03 10:34 UTC (permalink / raw)
To: Laurent Vivier
Cc: Laurent Vivier, Thomas Huth, Eduardo Habkost, Viktor Prutyanov,
QEMU Trivial, Michael Tokarev, Jason Wang, Mark Cave-Ayland,
QEMU Developers, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
Aurelien Jarno, Paolo Bonzini, Alex Bennée,
Andreas Färber, Artyom Tarasenko, Richard Henderson
On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>
> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>
> ----------------------------------------------------------------
> Pull request trivial branch 2019-05-02
>
> ----------------------------------------------------------------
Markus's "Clean up includes" patch breaks 'make check' on
big-endian hosts:
cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>> Testing i32_to_f16, rounding near_even
^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found in i32_to_f16, rounding near_even.
>> Testing i32_to_f16, rounding minMag
[...]
^MErrors found in i32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....
expected +401B.006FFFF000000000000000000000 .....
^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
expected +400F.DDEB000000000000000000000000 .....
^MFFF6FFFC => +0000.000000000000C012200080000000 .....
expected -4012.2000800000000000000000000000 .....
^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
expected -4002.0000000000000000000000000000 .....
[etc]
(I had to bounce Markus' own pullreq from a week or
so back because it had this patch in too and also failed
for this reason.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-03 10:34 ` [Qemu-devel] [PULL 00/13] Trivial branch patches Peter Maydell
2019-05-03 10:34 ` Peter Maydell
@ 2019-05-03 11:03 ` Laurent Vivier
2019-05-03 11:03 ` Laurent Vivier
2019-05-03 11:17 ` Alex Bennée
2 siblings, 1 reply; 43+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:03 UTC (permalink / raw)
To: Peter Maydell
Cc: QEMU Developers, Paolo Bonzini, Fabien Chouteau, Viktor Prutyanov,
Richard Henderson, Thomas Huth, Artyom Tarasenko,
Mark Cave-Ayland, Eduardo Habkost, Andreas Färber,
Marcel Apfelbaum, Aurelien Jarno, Jason Wang, QEMU Trivial,
Laurent Vivier, Michael Tokarev, Daniel P. Berrangé,
Alex Bennée, Gerd Hoffmann, Michael Roth
On 03/05/2019 12:34, Peter Maydell wrote:
> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>
>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>
>> ----------------------------------------------------------------
>> Pull request trivial branch 2019-05-02
>>
>> ----------------------------------------------------------------
>
> Markus's "Clean up includes" patch breaks 'make check' on
> big-endian hosts:
> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>> Testing i32_to_f16, rounding near_even
> ^M372 tests total.
> ^M372 tests performed.
> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>> Testing i32_to_f16, rounding minMag
> [...]
> ^MErrors found in i32_to_f128:
> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
> expected +401B.006FFFF000000000000000000000 .....
> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
> expected +400F.DDEB000000000000000000000000 .....
> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
> expected -4012.2000800000000000000000000000 .....
> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
> expected -4002.0000000000000000000000000000 .....
> [etc]
>
> (I had to bounce Markus' own pullreq from a week or
> so back because it had this patch in too and also failed
> for this reason.)
ok, I remove it and re-send the PR.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-03 11:03 ` Laurent Vivier
@ 2019-05-03 11:03 ` Laurent Vivier
0 siblings, 0 replies; 43+ messages in thread
From: Laurent Vivier @ 2019-05-03 11:03 UTC (permalink / raw)
To: Peter Maydell
Cc: Laurent Vivier, Thomas Huth, Eduardo Habkost, Viktor Prutyanov,
QEMU Trivial, Michael Tokarev, Jason Wang, Mark Cave-Ayland,
QEMU Developers, Fabien Chouteau, Michael Roth, Gerd Hoffmann,
Aurelien Jarno, Paolo Bonzini, Alex Bennée,
Andreas Färber, Artyom Tarasenko, Richard Henderson
On 03/05/2019 12:34, Peter Maydell wrote:
> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>
>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>
>> ----------------------------------------------------------------
>> Pull request trivial branch 2019-05-02
>>
>> ----------------------------------------------------------------
>
> Markus's "Clean up includes" patch breaks 'make check' on
> big-endian hosts:
> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>> Testing i32_to_f16, rounding near_even
> ^M372 tests total.
> ^M372 tests performed.
> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>> Testing i32_to_f16, rounding minMag
> [...]
> ^MErrors found in i32_to_f128:
> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
> expected +401B.006FFFF000000000000000000000 .....
> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
> expected +400F.DDEB000000000000000000000000 .....
> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
> expected -4012.2000800000000000000000000000 .....
> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
> expected -4002.0000000000000000000000000000 .....
> [etc]
>
> (I had to bounce Markus' own pullreq from a week or
> so back because it had this patch in too and also failed
> for this reason.)
ok, I remove it and re-send the PR.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-03 10:34 ` [Qemu-devel] [PULL 00/13] Trivial branch patches Peter Maydell
2019-05-03 10:34 ` Peter Maydell
2019-05-03 11:03 ` Laurent Vivier
@ 2019-05-03 11:17 ` Alex Bennée
2019-05-03 11:17 ` Alex Bennée
2019-05-08 14:33 ` Markus Armbruster
2 siblings, 2 replies; 43+ messages in thread
From: Alex Bennée @ 2019-05-03 11:17 UTC (permalink / raw)
To: Peter Maydell
Cc: Laurent Vivier, QEMU Developers, Paolo Bonzini, Fabien Chouteau,
Viktor Prutyanov, Richard Henderson, Thomas Huth,
Artyom Tarasenko, Mark Cave-Ayland, Eduardo Habkost,
Andreas Färber, Marcel Apfelbaum, Aurelien Jarno, Jason Wang,
QEMU Trivial, Laurent Vivier, Michael Tokarev,
Daniel P. Berrangé, Gerd Hoffmann, Michael Roth
Peter Maydell <peter.maydell@linaro.org> writes:
> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>
>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>
>> ----------------------------------------------------------------
>> Pull request trivial branch 2019-05-02
>>
>> ----------------------------------------------------------------
>
> Markus's "Clean up includes" patch breaks 'make check' on
> big-endian hosts:
> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>> Testing i32_to_f16, rounding near_even
> ^M372 tests total.
> ^M372 tests performed.
> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>> Testing i32_to_f16, rounding minMag
> [...]
> ^MErrors found in i32_to_f128:
> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
> expected +401B.006FFFF000000000000000000000 .....
> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
> expected +400F.DDEB000000000000000000000000 .....
> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
> expected -4012.2000800000000000000000000000 .....
> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
> expected -4002.0000000000000000000000000000 .....
> [etc]
Considering the header clean-ups moved bswap related stuff and the
patterns look incorrectly swapped something has gone fishy.
If it's just stuff touching f128 then we have some magic in
softfloat-types:
typedef struct {
#ifdef HOST_WORDS_BIGENDIAN
uint64_t high, low;
#else
uint64_t low, high;
#endif
} float128;
but I would have though HOST_WORDS_BIGENDIAN is in the config. I shall
have a poke once I get onto the s390 machine.
>
> (I had to bounce Markus' own pullreq from a week or
> so back because it had this patch in too and also failed
> for this reason.)
>
> thanks
> -- PMM
--
Alex Bennée
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-03 11:17 ` Alex Bennée
@ 2019-05-03 11:17 ` Alex Bennée
2019-05-08 14:33 ` Markus Armbruster
1 sibling, 0 replies; 43+ messages in thread
From: Alex Bennée @ 2019-05-03 11:17 UTC (permalink / raw)
To: Peter Maydell
Cc: Laurent Vivier, Thomas Huth, Eduardo Habkost, Viktor Prutyanov,
QEMU Trivial, Michael Tokarev, Jason Wang, Mark Cave-Ayland,
Laurent Vivier, Fabien Chouteau, QEMU Developers, Gerd Hoffmann,
Aurelien Jarno, Paolo Bonzini, Michael Roth, Andreas Färber,
Artyom Tarasenko, Richard Henderson
Peter Maydell <peter.maydell@linaro.org> writes:
> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>
>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>
>> ----------------------------------------------------------------
>> Pull request trivial branch 2019-05-02
>>
>> ----------------------------------------------------------------
>
> Markus's "Clean up includes" patch breaks 'make check' on
> big-endian hosts:
> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>> Testing i32_to_f16, rounding near_even
> ^M372 tests total.
> ^M372 tests performed.
> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>> Testing i32_to_f16, rounding minMag
> [...]
> ^MErrors found in i32_to_f128:
> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
> expected +401B.006FFFF000000000000000000000 .....
> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
> expected +400F.DDEB000000000000000000000000 .....
> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
> expected -4012.2000800000000000000000000000 .....
> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
> expected -4002.0000000000000000000000000000 .....
> [etc]
Considering the header clean-ups moved bswap related stuff and the
patterns look incorrectly swapped something has gone fishy.
If it's just stuff touching f128 then we have some magic in
softfloat-types:
typedef struct {
#ifdef HOST_WORDS_BIGENDIAN
uint64_t high, low;
#else
uint64_t low, high;
#endif
} float128;
but I would have though HOST_WORDS_BIGENDIAN is in the config. I shall
have a poke once I get onto the s390 machine.
>
> (I had to bounce Markus' own pullreq from a week or
> so back because it had this patch in too and also failed
> for this reason.)
>
> thanks
> -- PMM
--
Alex Bennée
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-03 11:17 ` Alex Bennée
2019-05-03 11:17 ` Alex Bennée
@ 2019-05-08 14:33 ` Markus Armbruster
2019-05-08 14:46 ` Alex Bennée
2019-05-08 14:48 ` Markus Armbruster
1 sibling, 2 replies; 43+ messages in thread
From: Markus Armbruster @ 2019-05-08 14:33 UTC (permalink / raw)
To: Alex Bennée
Cc: Laurent Vivier, Peter Maydell, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Mark Cave-Ayland, Jason Wang,
Michael Tokarev, Laurent Vivier, Fabien Chouteau, QEMU Developers,
Gerd Hoffmann, Andreas Färber, Paolo Bonzini,
Richard Henderson, Michael Roth, Aurelien Jarno, Artyom Tarasenko
Alex Bennée <alex.bennee@linaro.org> writes:
> Peter Maydell <peter.maydell@linaro.org> writes:
>
>> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>>
>>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>>
>>> ----------------------------------------------------------------
>>> Pull request trivial branch 2019-05-02
>>>
>>> ----------------------------------------------------------------
>>
>> Markus's "Clean up includes" patch breaks 'make check' on
>> big-endian hosts:
>> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
>> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
>> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>>> Testing i32_to_f16, rounding near_even
>> ^M372 tests total.
>> ^M372 tests performed.
>> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>>> Testing i32_to_f16, rounding minMag
>> [...]
>> ^MErrors found in i32_to_f128:
>> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
>> expected +401B.006FFFF000000000000000000000 .....
>> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
>> expected +400F.DDEB000000000000000000000000 .....
>> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
>> expected -4012.2000800000000000000000000000 .....
>> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
>> expected -4002.0000000000000000000000000000 .....
>> [etc]
>
> Considering the header clean-ups moved bswap related stuff and the
> patterns look incorrectly swapped something has gone fishy.
>
> If it's just stuff touching f128 then we have some magic in
> softfloat-types:
>
> typedef struct {
> #ifdef HOST_WORDS_BIGENDIAN
> uint64_t high, low;
> #else
> uint64_t low, high;
> #endif
> } float128;
>
> but I would have though HOST_WORDS_BIGENDIAN is in the config. I shall
> have a poke once I get onto the s390 machine.
Any luck?
In my own poking, I stumbled over
#ifndef HOST_WORDS_BIGENDIAN
#define LITTLEENDIAN 1
/* otherwise do not define it */
#endif
in platform.h. Is LITTLEENDIAN unused, or am I confused?
[...]
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-08 14:33 ` Markus Armbruster
@ 2019-05-08 14:46 ` Alex Bennée
2019-05-09 8:32 ` Markus Armbruster
2019-05-08 14:48 ` Markus Armbruster
1 sibling, 1 reply; 43+ messages in thread
From: Alex Bennée @ 2019-05-08 14:46 UTC (permalink / raw)
To: Markus Armbruster
Cc: Laurent Vivier, Peter Maydell, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Mark Cave-Ayland, Jason Wang,
Michael Tokarev, Laurent Vivier, Fabien Chouteau, QEMU Developers,
Gerd Hoffmann, Andreas Färber, Paolo Bonzini,
Richard Henderson, Michael Roth, Aurelien Jarno, Artyom Tarasenko
Markus Armbruster <armbru@redhat.com> writes:
> Alex Bennée <alex.bennee@linaro.org> writes:
>
>> Peter Maydell <peter.maydell@linaro.org> writes:
>>
>>> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>>>
>>>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>>>
>>>> ----------------------------------------------------------------
>>>> Pull request trivial branch 2019-05-02
>>>>
>>>> ----------------------------------------------------------------
>>>
>>> Markus's "Clean up includes" patch breaks 'make check' on
>>> big-endian hosts:
>>> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
>>> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
>>> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>>>> Testing i32_to_f16, rounding near_even
>>> ^M372 tests total.
>>> ^M372 tests performed.
>>> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>>>> Testing i32_to_f16, rounding minMag
>>> [...]
>>> ^MErrors found in i32_to_f128:
>>> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
>>> expected +401B.006FFFF000000000000000000000 .....
>>> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
>>> expected +400F.DDEB000000000000000000000000 .....
>>> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
>>> expected -4012.2000800000000000000000000000 .....
>>> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
>>> expected -4002.0000000000000000000000000000 .....
>>> [etc]
>>
>> Considering the header clean-ups moved bswap related stuff and the
>> patterns look incorrectly swapped something has gone fishy.
>>
>> If it's just stuff touching f128 then we have some magic in
>> softfloat-types:
>>
>> typedef struct {
>> #ifdef HOST_WORDS_BIGENDIAN
>> uint64_t high, low;
>> #else
>> uint64_t low, high;
>> #endif
>> } float128;
>>
>> but I would have though HOST_WORDS_BIGENDIAN is in the config. I shall
>> have a poke once I get onto the s390 machine.
>
> Any luck?
>
> In my own poking, I stumbled over
>
> #ifndef HOST_WORDS_BIGENDIAN
> #define LITTLEENDIAN 1
> /* otherwise do not define it */
> #endif
>
> in platform.h. Is LITTLEENDIAN unused, or am I confused?
I couldn't replicate the bug with access to my s390 account so I think
it might be existing build artefact related which is odd.
--
Alex Bennée
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-08 14:46 ` Alex Bennée
@ 2019-05-09 8:32 ` Markus Armbruster
2019-05-09 8:53 ` Peter Maydell
0 siblings, 1 reply; 43+ messages in thread
From: Markus Armbruster @ 2019-05-09 8:32 UTC (permalink / raw)
To: Alex Bennée
Cc: Laurent Vivier, Peter Maydell, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Michael Tokarev, Jason Wang,
Mark Cave-Ayland, Laurent Vivier, Fabien Chouteau,
QEMU Developers, Gerd Hoffmann, Artyom Tarasenko, Paolo Bonzini,
Michael Roth, Andreas Färber, Aurelien Jarno,
Richard Henderson
Alex Bennée <alex.bennee@linaro.org> writes:
> Markus Armbruster <armbru@redhat.com> writes:
>
>> Alex Bennée <alex.bennee@linaro.org> writes:
>>
>>> Peter Maydell <peter.maydell@linaro.org> writes:
>>>
>>>> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>>>>
>>>>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>>>>
>>>>> ----------------------------------------------------------------
>>>>> Pull request trivial branch 2019-05-02
>>>>>
>>>>> ----------------------------------------------------------------
>>>>
>>>> Markus's "Clean up includes" patch breaks 'make check' on
>>>> big-endian hosts:
>>>> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
>>>> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
>>>> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>>>>> Testing i32_to_f16, rounding near_even
>>>> ^M372 tests total.
>>>> ^M372 tests performed.
>>>> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>>>>> Testing i32_to_f16, rounding minMag
>>>> [...]
>>>> ^MErrors found in i32_to_f128:
>>>> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
>>>> expected +401B.006FFFF000000000000000000000 .....
>>>> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
>>>> expected +400F.DDEB000000000000000000000000 .....
>>>> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
>>>> expected -4012.2000800000000000000000000000 .....
>>>> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
>>>> expected -4002.0000000000000000000000000000 .....
>>>> [etc]
>>>
>>> Considering the header clean-ups moved bswap related stuff and the
>>> patterns look incorrectly swapped something has gone fishy.
>>>
>>> If it's just stuff touching f128 then we have some magic in
>>> softfloat-types:
>>>
>>> typedef struct {
>>> #ifdef HOST_WORDS_BIGENDIAN
>>> uint64_t high, low;
>>> #else
>>> uint64_t low, high;
>>> #endif
>>> } float128;
>>>
>>> but I would have though HOST_WORDS_BIGENDIAN is in the config. I shall
>>> have a poke once I get onto the s390 machine.
>>
>> Any luck?
>>
>> In my own poking, I stumbled over
>>
>> #ifndef HOST_WORDS_BIGENDIAN
>> #define LITTLEENDIAN 1
>> /* otherwise do not define it */
>> #endif
>>
>> in platform.h. Is LITTLEENDIAN unused, or am I confused?
>
> I couldn't replicate the bug with access to my s390 account so I think
> it might be existing build artefact related which is odd.
Any ideas on how to debug this further?
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-09 8:32 ` Markus Armbruster
@ 2019-05-09 8:53 ` Peter Maydell
2019-05-10 15:04 ` Markus Armbruster
0 siblings, 1 reply; 43+ messages in thread
From: Peter Maydell @ 2019-05-09 8:53 UTC (permalink / raw)
To: Markus Armbruster
Cc: Laurent Vivier, Thomas Huth, Eduardo Habkost, Viktor Prutyanov,
QEMU Trivial, Michael Tokarev, Jason Wang, Mark Cave-Ayland,
Laurent Vivier, Fabien Chouteau, QEMU Developers, Aurelien Jarno,
Gerd Hoffmann, Artyom Tarasenko, Paolo Bonzini, Alex Bennée,
Andreas Färber, Michael Roth, Richard Henderson
On Thu, 9 May 2019 at 09:32, Markus Armbruster <armbru@redhat.com> wrote:
>
> Alex Bennée <alex.bennee@linaro.org> writes:
> > I couldn't replicate the bug with access to my s390 account so I think
> > it might be existing build artefact related which is odd.
>
> Any ideas on how to debug this further?
It's consistently failed for me both times I've tried
to merge the pullreq, on both s390 and ppc (which is
doing a straightforward 'git merge, then do an incremental
build out-of-tree'). Alex has access to the s390 box,
and there's a ppc box in the gcc compile farm...
thanks
-- PMM
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-09 8:53 ` Peter Maydell
@ 2019-05-10 15:04 ` Markus Armbruster
2019-05-10 16:25 ` Peter Maydell
0 siblings, 1 reply; 43+ messages in thread
From: Markus Armbruster @ 2019-05-10 15:04 UTC (permalink / raw)
To: Peter Maydell
Cc: Laurent Vivier, Michael Roth, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Mark Cave-Ayland, Jason Wang,
Michael Tokarev, Laurent Vivier, Fabien Chouteau, QEMU Developers,
Gerd Hoffmann, Paolo Bonzini, Richard Henderson, Alex Bennée,
Andreas Färber, Aurelien Jarno, Artyom Tarasenko
Peter Maydell <peter.maydell@linaro.org> writes:
> On Thu, 9 May 2019 at 09:32, Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Alex Bennée <alex.bennee@linaro.org> writes:
>> > I couldn't replicate the bug with access to my s390 account so I think
>> > it might be existing build artefact related which is odd.
>>
>> Any ideas on how to debug this further?
>
> It's consistently failed for me both times I've tried
> to merge the pullreq, on both s390 and ppc (which is
> doing a straightforward 'git merge, then do an incremental
> build out-of-tree'). Alex has access to the s390 box,
> and there's a ppc box in the gcc compile farm...
I tried to reproduce on a ppc64 box in the gcc compile farm, no dice. I
double-checked config-host.h has #define HOST_WORDS_BIGENDIAN 1.
Clutching at straws... you say you tried "an incremental build
out-of-tree". I also built out-of-tree, but it wasn't incremental.
Could you try a non-incremental build just to exclude the possibility
something wonky in your build tree is breaking "make check" for you?
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-10 15:04 ` Markus Armbruster
@ 2019-05-10 16:25 ` Peter Maydell
2019-05-10 16:32 ` Peter Maydell
2019-05-10 16:51 ` Markus Armbruster
0 siblings, 2 replies; 43+ messages in thread
From: Peter Maydell @ 2019-05-10 16:25 UTC (permalink / raw)
To: Markus Armbruster
Cc: Laurent Vivier, Michael Roth, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Mark Cave-Ayland, Jason Wang,
Michael Tokarev, Laurent Vivier, Fabien Chouteau, QEMU Developers,
Gerd Hoffmann, Paolo Bonzini, Richard Henderson, Alex Bennée,
Andreas Färber, Aurelien Jarno, Artyom Tarasenko
On Fri, 10 May 2019 at 16:05, Markus Armbruster <armbru@redhat.com> wrote:
> I tried to reproduce on a ppc64 box in the gcc compile farm, no dice. I
> double-checked config-host.h has #define HOST_WORDS_BIGENDIAN 1.
On s390:
git clone git://git.qemu.org/qemu.git qemu-tmp
cd qemu-tmp
mkdir build
cd build
../configure
make -j3
make -j3 check V=1 # passes
wget https://patchew.org/QEMU/20190313162812.8885-1-armbru@redhat.com/mbox
git am mbox
make -j3
make -j3 check V=1 # fails
thanks
-- PMM
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-10 16:25 ` Peter Maydell
@ 2019-05-10 16:32 ` Peter Maydell
2019-05-10 16:51 ` Markus Armbruster
1 sibling, 0 replies; 43+ messages in thread
From: Peter Maydell @ 2019-05-10 16:32 UTC (permalink / raw)
To: Markus Armbruster
Cc: Laurent Vivier, Michael Roth, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Mark Cave-Ayland, Jason Wang,
Michael Tokarev, Laurent Vivier, Fabien Chouteau, QEMU Developers,
Gerd Hoffmann, Paolo Bonzini, Richard Henderson, Alex Bennée,
Andreas Färber, Aurelien Jarno, Artyom Tarasenko
On Fri, 10 May 2019 at 17:25, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> On Fri, 10 May 2019 at 16:05, Markus Armbruster <armbru@redhat.com> wrote:
> > I tried to reproduce on a ppc64 box in the gcc compile farm, no dice. I
> > double-checked config-host.h has #define HOST_WORDS_BIGENDIAN 1.
>
> On s390:
> git clone git://git.qemu.org/qemu.git qemu-tmp
> cd qemu-tmp
> mkdir build
> cd build
> ../configure
> make -j3
> make -j3 check V=1 # passes
> wget https://patchew.org/QEMU/20190313162812.8885-1-armbru@redhat.com/mbox
> git am mbox
> make -j3
> make -j3 check V=1 # fails
For completeness, the commit I got from git clone was efb4f3b62c69383a7308.
thanks
-- PMM
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-10 16:25 ` Peter Maydell
2019-05-10 16:32 ` Peter Maydell
@ 2019-05-10 16:51 ` Markus Armbruster
1 sibling, 0 replies; 43+ messages in thread
From: Markus Armbruster @ 2019-05-10 16:51 UTC (permalink / raw)
To: Peter Maydell
Cc: Laurent Vivier, Thomas Huth, QEMU Developers, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Michael Tokarev, Jason Wang,
Mark Cave-Ayland, Michael Roth, Fabien Chouteau, Laurent Vivier,
Gerd Hoffmann, Artyom Tarasenko, Paolo Bonzini, Alex Bennée,
Andreas Färber, Aurelien Jarno, Richard Henderson
Peter Maydell <peter.maydell@linaro.org> writes:
> On Fri, 10 May 2019 at 16:05, Markus Armbruster <armbru@redhat.com> wrote:
>> I tried to reproduce on a ppc64 box in the gcc compile farm, no dice. I
>> double-checked config-host.h has #define HOST_WORDS_BIGENDIAN 1.
>
> On s390:
> git clone git://git.qemu.org/qemu.git qemu-tmp
> cd qemu-tmp
> mkdir build
> cd build
> ../configure
> make -j3
> make -j3 check V=1 # passes
> wget https://patchew.org/QEMU/20190313162812.8885-1-armbru@redhat.com/mbox
> git am mbox
> make -j3
> make -j3 check V=1 # fails
>
> thanks
> -- PMM
I double-checked my testing and found where I screwed up. Thanks for
your help!
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [Qemu-devel] [PULL 00/13] Trivial branch patches
2019-05-08 14:33 ` Markus Armbruster
2019-05-08 14:46 ` Alex Bennée
@ 2019-05-08 14:48 ` Markus Armbruster
1 sibling, 0 replies; 43+ messages in thread
From: Markus Armbruster @ 2019-05-08 14:48 UTC (permalink / raw)
To: Alex Bennée
Cc: Laurent Vivier, Peter Maydell, Thomas Huth, Eduardo Habkost,
Viktor Prutyanov, QEMU Trivial, Mark Cave-Ayland, Jason Wang,
Michael Tokarev, Laurent Vivier, Fabien Chouteau, QEMU Developers,
Gerd Hoffmann, Andreas Färber, Paolo Bonzini,
Richard Henderson, Michael Roth, Aurelien Jarno, Artyom Tarasenko
Markus Armbruster <armbru@redhat.com> writes:
> Alex Bennée <alex.bennee@linaro.org> writes:
>
>> Peter Maydell <peter.maydell@linaro.org> writes:
>>
>>> On Thu, 2 May 2019 at 19:58, Laurent Vivier <laurent@vivier.eu> 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 f7c03a68b814254df414977ff299468fbf0fa1c0:
>>>>
>>>> sockets: avoid string truncation warnings when copying UNIX path (2019-05-02 20:50:47 +0200)
>>>>
>>>> ----------------------------------------------------------------
>>>> Pull request trivial branch 2019-05-02
>>>>
>>>> ----------------------------------------------------------------
>>>
>>> Markus's "Clean up includes" patch breaks 'make check' on
>>> big-endian hosts:
>>> cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i
>>> 64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 >
>>> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
>>>>> Testing i32_to_f16, rounding near_even
>>> ^M372 tests total.
>>> ^M372 tests performed.
>>> In 372 tests, no errors found in i32_to_f16, rounding near_even.
>>>>> Testing i32_to_f16, rounding minMag
>>> [...]
>>> ^MErrors found in i32_to_f128:
>>> 1006FFFF => +0000.000000000000401B006FFFF00000 .....
>>> expected +401B.006FFFF000000000000000000000 .....
>>> ^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
>>> expected +400F.DDEB000000000000000000000000 .....
>>> ^MFFF6FFFC => +0000.000000000000C012200080000000 .....
>>> expected -4012.2000800000000000000000000000 .....
>>> ^MFFFFFFF8 => +0000.000000000000C002000000000000 .....
>>> expected -4002.0000000000000000000000000000 .....
>>> [etc]
>>
>> Considering the header clean-ups moved bswap related stuff and the
>> patterns look incorrectly swapped something has gone fishy.
>>
>> If it's just stuff touching f128 then we have some magic in
>> softfloat-types:
>>
>> typedef struct {
>> #ifdef HOST_WORDS_BIGENDIAN
>> uint64_t high, low;
>> #else
>> uint64_t low, high;
>> #endif
>> } float128;
>>
>> but I would have though HOST_WORDS_BIGENDIAN is in the config. I shall
Me too; qemu/osdep.h should pull it in.
>> have a poke once I get onto the s390 machine.
>
> Any luck?
>
> In my own poking, I stumbled over
>
> #ifndef HOST_WORDS_BIGENDIAN
> #define LITTLEENDIAN 1
> /* otherwise do not define it */
> #endif
>
> in platform.h. Is LITTLEENDIAN unused, or am I confused?
INLINE appears just as unused.
> [...]
^ permalink raw reply [flat|nested] 43+ messages in thread