UUID fixes and one docker patch
The following changes since commit c640f2849ee8775fe1bbd7a2772610aa77816f9f:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2016-09-28 23:02:56 +0100)
are available in the git repository at:
[email protected]:famz/qemu tags/for-upstream
for you to fetch changes up to c16fe84f07a9d3a04c11ce8a139e13a092b384c2:
docker: Build in a clean directory (2016-10-02 09:47:23 +0800)
----------------------------------------------------------------
Two fixes for UUID conversion, and one docker test improvement.
----------------------------------------------------------------
Fam Zheng (2):
xenpv: Fix qemu_uuid compiling error
docker: Build in a clean directory
Marc-André Lureau (1):
smbios: fix uuid copy
hw/smbios/smbios.c | 2 +- hw/xenpv/xen_domainbuild.c | 2 +- tests/docker/common.rc | 3 +++ tests/docker/test-clang | 2 ++ tests/docker/test-full | 2 ++ tests/docker/test-mingw | 2 ++ tests/docker/test-quick | 2 ++ 7 files changed, 13 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 1/3] xenpv: Fix qemu_uuid compiling error
9c5ce8db2 switched the type of qemu_uuid and this should have followed. Fix it.
Message-Id: <[email protected]>
--- hw/xenpv/xen_domainbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/xenpv/xen_domainbuild.c +1 -1
@@ -232,7 +232,7 @@ int xen_domain_build_pv(const char *kernel, const char *ramdisk,unsigned long xenstore_mfn =0 , console_mfn =0 ;int rc; -memcpy (uuid, qemu_uuid,sizeof (uuid)); +memcpy (uuid, &qemu_uuid,sizeof (uuid)); rc =xen_domain_create (xen_xc, ssidref, uuid, flags, &xen_domid);if (rc <0 ) {fprintf (stderr,"xen: xc_domain_create() failed\n" );
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 2/3] smbios: fix uuid copy
In reply to Fam ZhengFrom: Marc-André Lureau <[email protected]>
Since 9c5ce8db, the uuid is wrongly copied, as QemuUUID 'in' argument is already a pointer.
Fixes ASAN complaining:hw/smbios/smbios.c:489:5: runtime error: load of address 0x7fffcdb91b00 with insufficient space for an object of type '__int128 unsigned'
Message-Id: <[email protected]>
--- hw/smbios/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/smbios/smbios.c +1 -1
@@ -486,7 +486,7 @@ static void smbios_build_type_0_table(void)*/ static void smbios_encode_uuid (struct smbios_uuid *uuid,QemuUUID *in) { -memcpy (uuid, &in,16 ); +memcpy (uuid, in,16 );if (smbios_uuid_encoded) { uuid->time_low =bswap32 (uuid->time_low); uuid->time_mid =bswap16 (uuid->time_mid);
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 3/3] docker: Build in a clean directory
In reply to Fam ZhengCurrently we configure and build under "$QEMU_SRC/tests/docker" which is dubious. Create a fixed directory (to be friendly to ccache) and change to there before calling build_qemu.
Message-Id: <[email protected]>
--- tests/docker/common.rc | 3 +++ tests/docker/test-clang | 2 ++ tests/docker/test-full | 2 ++ tests/docker/test-mingw | 2 ++ tests/docker/test-quick | 2 ++ 5 files changed, 11 insertions(+)
tests/docker/common.rc +3 -0
@@ -11,6 +11,9 @@ # or (at your option) any later version. See the COPYING file in # the top-level directory. +BUILD_DIR=/var/tmp/qemu-build +mkdir $BUILD_DIR + requires() { for c in $@; do
tests/docker/test-clang +2 -0
@@ -15,6 +15,8 @@ requires clang +cd "$BUILD_DIR" + OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang" # -fsanitize=undefined is broken on Fedora 23, skip it for now # See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834
tests/docker/test-full +2 -0
@@ -13,5 +13,7 @@ . common.rc +cd "$BUILD_DIR" + build_qemu make check $MAKEFLAGS
tests/docker/test-mingw +2 -0
@@ -15,6 +15,8 @@ requires mingw dtc +cd "$BUILD_DIR" + for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do TARGET_LIST=x86_64-softmmu,aarch64-softmmu \ build_qemu --cross-prefix=$prefix \
tests/docker/test-quick +2 -0
@@ -13,6 +13,8 @@ . common.rc +cd "$BUILD_DIR" + DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu" TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \ build_qemu
Signature · 1 line
2.7.4
Peter Maydell
AppliedQuoted 16 lines · Fam Zheng
The following changes since commit
c640f2849ee8775fe1bbd7a2772610aa77816f9f:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2016-09-28 23:02:56 +0100)
are available in the git repository at:
[email protected]:famz/qemu tags/for-upstream
for you to fetch changes up to
c16fe84f07a9d3a04c11ce8a139e13a092b384c2:docker: Build in a clean directory (2016-10-02 09:47:23 +0800)
----------------------------------------------------------------
Two fixes for UUID conversion, and one docker test improvement.
Quoted 8 lines
----------------------------------------------------------------
Fam Zheng (2):
xenpv: Fixqemu_uuidcompiling error
docker: Build in a clean directoryMarc-André Lureau (1):
smbios: fix uuid copy
Applied, thanks.
-- PMM