Trivial branch patches
Subsystems (2)
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(-)
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 01/13] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf
From: Philippe Mathieu-Daudé <[email protected]>
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
Message-Id: <[email protected]>
--- hw/net/pcnet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
hw/net/pcnet.c +3 -1
@@ -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 ; }
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 08/13] Update configure
In reply to Laurent VivierFrom: Stefan Weil <[email protected]>
The last *.aml file was removed in commit 13b1881aacc7e5018773bd545bbaf8d5476699ee.
Message-Id: <[email protected]>
--- configure | 1 - 1 file changed, 1 deletion(-)
configure +0 -1
@@ -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 \
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 04/13] Clean up includes
In reply to Laurent VivierFrom: Markus Armbruster <[email protected]>
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.cWe'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.
Message-Id: <[email protected]>
--- 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(-)
hw/display/ati_int.h +0 -1
@@ -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"
include/hw/cpu/cluster.h +0 -1
@@ -20,7 +20,6 @@#ifndef HW_CPU_CLUSTER_H #define HW_CPU_CLUSTER_H -#include "qemu/osdep.h" #include "hw/qdev.h" /*
tests/fp/platform.h +0 -1
@@ -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
tests/libqos/qgraph.h +0 -4
@@ -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"
contrib/elf2dmp/main.c +1 -2
@@ -5,9 +5,8 @@* */ -#include <inttypes.h> -#include "qemu/osdep.h" +#include "err.h" #include "addrspace.h" #include "pe.h"
contrib/elf2dmp/pdb.c +1 -2
@@ -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"
hw/display/ati.c +1 -0
@@ -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"
hw/display/ati_2d.c +1 -0
@@ -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"
hw/display/ati_dbg.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "ati_int.h" #ifdef DEBUG_ATI
tests/qos-test.c +1 -1
@@ -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"
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 05/13] doc: fix the configuration path
In reply to Laurent VivierFrom: Marc-André Lureau <[email protected]>
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
Message-Id: <[email protected]>
--- qemu-ga.texi | 4 ++-- Makefile | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-)
qemu-ga.texi +2 -2
@@ -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}).
Makefile +6 -3
@@ -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 \
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 09/13] Header cleanups
In reply to Laurent VivierFrom: Aruna Jayasena <[email protected]>
Removed unwanted includes from cpu-common.h
This task was under https://wiki.qemu.org/Contribute/BiteSizedTasks
Message-Id: <[email protected]>
--- include/exec/cpu-common.h | 3 --- 1 file changed, 3 deletions(-)
include/exec/cpu-common.h +0 -3
@@ -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 );
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 10/13] net: Print output of "-net nic, model=help" to stdout instead of stderr
In reply to Laurent VivierFrom: Thomas Huth <[email protected]>
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.
Message-Id: <[email protected]>
--- net/net.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
net/net.c +4 -3
@@ -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 ; }
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 11/13] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
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.
Message-Id: <[email protected]>
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -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
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 07/13] configure: fix pam test warning
In reply to Laurent VivierFrom: "Dr. David Alan Gilbert" <[email protected]>
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.
Message-Id: <[email protected]>
--- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
@@ -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
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 03/13] CODING_STYLE: indent example code as all others
In reply to Laurent VivierFrom: Wei Yang <[email protected]>
All the example code are indented with four spaces except this one.
Fix this by adding four spaces here.
Message-Id: <[email protected]>
--- CODING_STYLE | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
CODING_STYLE +4 -4
@@ -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 '=',
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 06/13] qom: use object_new_with_type in object_new_with_propv
In reply to Laurent VivierFrom: Wei Yang <[email protected]>
Function object_new_with_propv already get the Type of the object, so we could leverage object_new_with_type here.
Message-Id: <[email protected]>
--- qom/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qom/object.c +1 -1
@@ -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;
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 13/13] sockets: avoid string truncation warnings when copying UNIX path
In reply to Laurent VivierFrom: Daniel P. Berrangé <[email protected]>
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.
Message-Id: <[email protected]>
--- util/qemu-sockets.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
util/qemu-sockets.c +8 -4
@@ -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 {
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 02/13] CODING_STYLE: specify the indent rule for multiline code
In reply to Laurent VivierFrom: Wei Yang <[email protected]>
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.
Message-Id: <[email protected]>
--- CODING_STYLE | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
CODING_STYLE +39 -0
@@ -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.
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 12/13] hw/sparc/leon3: Allow load of uImage firmwares
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
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: 0x37AD87DFSince 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
Message-Id: <[email protected]>
--- hw/sparc/leon3.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/sparc/leon3.c +4 -0
@@ -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 );
Signature · 1 line
2.20.1
Quoted 9 lines · Laurent Vivier
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.gittags/trivial-branch-pull-request
Quoted 8 lines
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;)
Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even
^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found in i32_to_f16, rounding near_even.
Quoted 1 line
Quoted 1 line
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
Quoted 39 lines · Peter Maydell
Quoted 9 lines · Laurent Vivier
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.gittags/trivial-branch-pull-requestQuoted 8 lines
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 alli32_to_f16i 64_to_f16i32_to_f32i64_to_f32i32_to_f64i64_to_f64i32_to_f128i64_to_f128>
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found ini32_to_f16, roundingnear_even.Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, rounding minMag[...]
^MErrors found ini32_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 .....
Quoted 5 lines
[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
Quoted 32 lines · Peter Maydell
Quoted 9 lines · Laurent Vivier
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.gittags/trivial-branch-pull-requestQuoted 8 lines
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 alli32_to_f16i 64_to_f16i32_to_f32i64_to_f32i32_to_f64i64_to_f64i32_to_f128i64_to_f128>
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found ini32_to_f16, roundingnear_even.Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, rounding minMag[...]
^MErrors found ini32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....
Quoted 8 lines
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.
Quoted 7 lines
(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
Quoted 54 lines · Alex Bennée
Quoted 32 lines · Peter Maydell
Quoted 9 lines · Laurent Vivier
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.gittags/trivial-branch-pull-requestQuoted 8 lines
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 alli32_to_f16i 64_to_f16i32_to_f32i64_to_f32i32_to_f64i64_to_f64i32_to_f128i64_to_f128>
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found ini32_to_f16, roundingnear_even.Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, rounding minMag[...]
^MErrors found ini32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....Quoted 8 lines
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;
Quoted 5 lines
#endif
} float128;but I would have though
HOST_WORDS_BIGENDIANis 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 */
#endifin platform.h. Is LITTLEENDIAN unused, or am I confused?
[...]
Quoted 64 lines · Markus Armbruster
Quoted 54 lines · Alex Bennée
Quoted 32 lines · Peter Maydell
Quoted 9 lines · Laurent Vivier
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.gittags/trivial-branch-pull-requestQuoted 8 lines
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 alli32_to_f16i 64_to_f16i32_to_f32i64_to_f32i32_to_f64i64_to_f64i32_to_f128i64_to_f128>
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found ini32_to_f16, roundingnear_even.Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, rounding minMag[...]
^MErrors found ini32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....Quoted 8 lines
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;Quoted 5 lines
#endif
} float128;but I would have though
HOST_WORDS_BIGENDIANis in the config. I shall have a poke once I get onto the s390 machine.Any luck?
Quoted 8 lines
In my own poking, I stumbled over
#ifndef HOST_WORDS_BIGENDIAN #define LITTLEENDIAN 1 /* otherwise do not define it */ #endifin
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
Quoted 73 lines · Alex Bennée
Quoted 71 lines · Markus Armbruster
Quoted 54 lines · Alex Bennée
Quoted 32 lines · Peter Maydell
Quoted 9 lines · Laurent Vivier
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.gittags/trivial-branch-pull-requestQuoted 8 lines
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 alli32_to_f16i 64_to_f16i32_to_f32i64_to_f32i32_to_f64i64_to_f64i32_to_f128i64_to_f128>
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found ini32_to_f16, roundingnear_even.Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, rounding minMag[...]
^MErrors found ini32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....Quoted 8 lines
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;Quoted 5 lines
#endif
} float128;but I would have though
HOST_WORDS_BIGENDIANis 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
Quoted 4 lines
Quoted 1 line
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?
Quoted 6 lines · Markus Armbruster
Quoted 2 lines · Alex Bennée
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
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Markus Armbruster
Quoted 2 lines · Alex Bennée
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.
Quoted 7 lines
Quoted 1 line
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?
Quoted 2 lines · Markus Armbruster
I tried to reproduce on a ppc64 box in the gcc compile farm, no dice. I double-checked
config-host.hhas #defineHOST_WORDS_BIGENDIAN1.
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/[email protected]/mbox
git am mbox
make -j3
make -j3 check V=1 # fails
thanks
-- PMM
Quoted 5 lines · Peter Maydell
Quoted 2 lines · Markus Armbruster
I tried to reproduce on a ppc64 box in the gcc compile farm, no dice. I double-checked
config-host.hhas #defineHOST_WORDS_BIGENDIAN1.
Quoted 12 lines
On s390:
git clonegit://git.qemu.org/qemu.gitqemu-tmp
cd qemu-tmp
mkdir build
cd build
../configure
make -j3
make -j3 check V=1 # passes
wget https://patchew.org/QEMU/[email protected]/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
Quoted 17 lines · Peter Maydell
Quoted 2 lines · Markus Armbruster
I tried to reproduce on a ppc64 box in the gcc compile farm, no dice. I double-checked
config-host.hhas #defineHOST_WORDS_BIGENDIAN1.On s390:
git clonegit://git.qemu.org/qemu.gitqemu-tmp
cd qemu-tmp
mkdir build
cd build
../configure
make -j3
make -j3 check V=1 # passes
wget https://patchew.org/QEMU/[email protected]/mbox
git am mbox
make -j3
make -j3 check V=1 # fails
Quoted 2 lines
thanks
-- PMM
I double-checked my testing and found where I screwed up. Thanks for your help!
Quoted 59 lines · Markus Armbruster
Quoted 57 lines · Alex Bennée
Quoted 32 lines · Peter Maydell
Quoted 9 lines · Laurent Vivier
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.gittags/trivial-branch-pull-requestQuoted 8 lines
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 alli32_to_f16i 64_to_f16i32_to_f32i64_to_f32i32_to_f64i64_to_f64i32_to_f128i64_to_f128>
int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found ini32_to_f16, roundingnear_even.Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, rounding minMag[...]
^MErrors found ini32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....Quoted 8 lines
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;
Quoted 1 line
Quoted 1 line
but I would have though
HOST_WORDS_BIGENDIANis in the config. I shall
Me too; qemu/osdep.h should pull it in.
Quoted 4 lines
Quoted 1 line
have a poke once I get onto the s390 machine.
Any luck?
Quoted 8 lines
In my own poking, I stumbled over
#ifndef HOST_WORDS_BIGENDIAN #define LITTLEENDIAN 1 /* otherwise do not define it */ #endifin
platform.h. Is LITTLEENDIAN unused, or am I confused?
INLINE appears just as unused.
Quoted 1 line
[...]