Re: [PULL 00/30] Misc patches

2022-04-21 Thread Richard Henderson

On 4/21/22 06:49, marcandre.lur...@redhat.com wrote:

From: Marc-André Lureau 

The following changes since commit 9c125d17e9402c232c46610802e5931b3639d77b:

   Merge tag 'pull-tcg-20220420' of https://gitlab.com/rth7680/qemu into 
staging (2022-04-20 16:43:11 -0700)

are available in the Git repository at:

   g...@gitlab.com:marcandre.lureau/qemu.git tags/misc-pull-request

for you to fetch changes up to 55fa0170721e827c1701db3a66a54d44b5660d53:

   qga: use fixed-length and GDateTime for log timestamp (2022-04-21 17:37:16 
+0400)


Misc cleanups




Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/7.1 as 
appropriate.


r~




Marc-André Lureau (30):
   glib-compat: isolate g_date_time_format_iso8601 version-bypass
   scripts/analyze-inclusions: drop qemu-common.h from analysis
   Simplify softmmu/main.c
   hw/hyperv: remove needless qemu-common.h include
   include: rename qemu-common.h qemu/help-texts.h
   qga: replace usleep() with g_usleep()
   docs: trace-events-all is installed without renaming
   arm/digic: replace snprintf() with g_strdup_printf()
   arm/allwinner-a10: replace snprintf() with g_strdup_printf()
   intc/exynos4210_gic: replace snprintf() with g_strdup_printf()
   doc/style: CLang -> Clang
   osdep.h: move qemu_build_not_reached()
   compiler.h: replace QEMU_NORETURN with G_NORETURN
   include: move qemu_msync() to osdep
   include: move qemu_fdatasync() to osdep
   include: add qemu/keyval.h
   include: move qdict_{crumple,flatten} declarations
   tests: remove block/qdict checks from check-qobject.c
   compiler.h: add QEMU_SANITIZE_{ADDRESS,THREAD}
   tests: run-time skip test-qga if TSAN is enabled
   Move error_printf_unless_qmp() with monitor unit
   qga: move qga_get_host_name()
   qtest: simplify socket_send()
   util: simplify write in signal handler
   util: use qemu_write_full() in qemu_write_pidfile()
   util: use qemu_create() in qemu_write_pidfile()
   util: replace qemu_get_local_state_pathname()
   qga: remove need for QEMU atomic.h
   tests/fuzz: fix warning
   qga: use fixed-length and GDateTime for log timestamp

  docs/devel/style.rst |  2 +-
  docs/devel/tracing.rst   |  2 +-
  accel/tcg/internal.h |  3 +-
  include/block/qdict.h|  3 +
  include/exec/exec-all.h  | 20 +++---
  include/exec/helper-head.h   |  2 +-
  include/glib-compat.h| 12 +---
  include/hw/core/cpu.h|  2 +-
  include/hw/core/tcg-cpu-ops.h|  6 +-
  include/hw/hw.h  |  2 +-
  include/monitor/monitor.h|  3 +
  include/qapi/qmp/qdict.h |  3 -
  include/qemu-main.h  | 10 +++
  include/qemu/compiler.h  | 26 +++-
  include/qemu/cutils.h|  2 -
  include/qemu/error-report.h  |  2 -
  include/{qemu-common.h => qemu/help-texts.h} |  5 --
  include/qemu/keyval.h| 14 +
  include/qemu/option.h|  6 --
  include/qemu/osdep.h | 43 +
  include/qemu/thread.h|  2 +-
  include/tcg/tcg-ldst.h   |  4 +-
  include/tcg/tcg.h|  2 +-
  linux-user/user-internals.h  |  2 +-
  qga/commands-common.h| 11 
  scripts/cocci-macro-file.h   |  2 +-
  target/alpha/cpu.h   | 10 +--
  target/arm/internals.h   | 12 ++--
  target/hppa/cpu.h|  2 +-
  target/i386/tcg/helper-tcg.h | 24 
  target/microblaze/cpu.h  |  6 +-
  target/mips/tcg/tcg-internal.h   | 17 ++---
  target/nios2/cpu.h   |  6 +-
  target/openrisc/exception.h  |  2 +-
  target/ppc/cpu.h | 14 ++---
  target/ppc/internal.h|  6 +-
  target/riscv/cpu.h   | 10 +--
  target/s390x/s390x-internal.h|  6 +-
  target/s390x/tcg/tcg_s390x.h | 12 ++--
  target/sh4/cpu.h |  6 +-
  target/sparc/cpu.h   | 10 +--
  target/xtensa/cpu.h  |  6 +-
  accel/stubs/tcg-stub.c   |  4 +-
  bsd-user/main.c  |  2 +-
  bsd-user/signal.c|  3 +-
  hw/arm/allwinner-a10.c   |  4 +-
  hw/arm/digic.c   |  5 +-
  hw/hyperv/syndbg.c   |  1 -
  hw/intc/exynos4210_gic.c |  9 +--
  hw/misc/mips_itu.c 

[PULL 00/30] Misc patches

2022-04-21 Thread marcandre . lureau
From: Marc-André Lureau 

The following changes since commit 9c125d17e9402c232c46610802e5931b3639d77b:

  Merge tag 'pull-tcg-20220420' of https://gitlab.com/rth7680/qemu into staging 
(2022-04-20 16:43:11 -0700)

are available in the Git repository at:

  g...@gitlab.com:marcandre.lureau/qemu.git tags/misc-pull-request

for you to fetch changes up to 55fa0170721e827c1701db3a66a54d44b5660d53:

  qga: use fixed-length and GDateTime for log timestamp (2022-04-21 17:37:16 
+0400)


Misc cleanups



Marc-André Lureau (30):
  glib-compat: isolate g_date_time_format_iso8601 version-bypass
  scripts/analyze-inclusions: drop qemu-common.h from analysis
  Simplify softmmu/main.c
  hw/hyperv: remove needless qemu-common.h include
  include: rename qemu-common.h qemu/help-texts.h
  qga: replace usleep() with g_usleep()
  docs: trace-events-all is installed without renaming
  arm/digic: replace snprintf() with g_strdup_printf()
  arm/allwinner-a10: replace snprintf() with g_strdup_printf()
  intc/exynos4210_gic: replace snprintf() with g_strdup_printf()
  doc/style: CLang -> Clang
  osdep.h: move qemu_build_not_reached()
  compiler.h: replace QEMU_NORETURN with G_NORETURN
  include: move qemu_msync() to osdep
  include: move qemu_fdatasync() to osdep
  include: add qemu/keyval.h
  include: move qdict_{crumple,flatten} declarations
  tests: remove block/qdict checks from check-qobject.c
  compiler.h: add QEMU_SANITIZE_{ADDRESS,THREAD}
  tests: run-time skip test-qga if TSAN is enabled
  Move error_printf_unless_qmp() with monitor unit
  qga: move qga_get_host_name()
  qtest: simplify socket_send()
  util: simplify write in signal handler
  util: use qemu_write_full() in qemu_write_pidfile()
  util: use qemu_create() in qemu_write_pidfile()
  util: replace qemu_get_local_state_pathname()
  qga: remove need for QEMU atomic.h
  tests/fuzz: fix warning
  qga: use fixed-length and GDateTime for log timestamp

 docs/devel/style.rst |  2 +-
 docs/devel/tracing.rst   |  2 +-
 accel/tcg/internal.h |  3 +-
 include/block/qdict.h|  3 +
 include/exec/exec-all.h  | 20 +++---
 include/exec/helper-head.h   |  2 +-
 include/glib-compat.h| 12 +---
 include/hw/core/cpu.h|  2 +-
 include/hw/core/tcg-cpu-ops.h|  6 +-
 include/hw/hw.h  |  2 +-
 include/monitor/monitor.h|  3 +
 include/qapi/qmp/qdict.h |  3 -
 include/qemu-main.h  | 10 +++
 include/qemu/compiler.h  | 26 +++-
 include/qemu/cutils.h|  2 -
 include/qemu/error-report.h  |  2 -
 include/{qemu-common.h => qemu/help-texts.h} |  5 --
 include/qemu/keyval.h| 14 +
 include/qemu/option.h|  6 --
 include/qemu/osdep.h | 43 +
 include/qemu/thread.h|  2 +-
 include/tcg/tcg-ldst.h   |  4 +-
 include/tcg/tcg.h|  2 +-
 linux-user/user-internals.h  |  2 +-
 qga/commands-common.h| 11 
 scripts/cocci-macro-file.h   |  2 +-
 target/alpha/cpu.h   | 10 +--
 target/arm/internals.h   | 12 ++--
 target/hppa/cpu.h|  2 +-
 target/i386/tcg/helper-tcg.h | 24 
 target/microblaze/cpu.h  |  6 +-
 target/mips/tcg/tcg-internal.h   | 17 ++---
 target/nios2/cpu.h   |  6 +-
 target/openrisc/exception.h  |  2 +-
 target/ppc/cpu.h | 14 ++---
 target/ppc/internal.h|  6 +-
 target/riscv/cpu.h   | 10 +--
 target/s390x/s390x-internal.h|  6 +-
 target/s390x/tcg/tcg_s390x.h | 12 ++--
 target/sh4/cpu.h |  6 +-
 target/sparc/cpu.h   | 10 +--
 target/xtensa/cpu.h  |  6 +-
 accel/stubs/tcg-stub.c   |  4 +-
 bsd-user/main.c  |  2 +-
 bsd-user/signal.c|  3 +-
 hw/arm/allwinner-a10.c   |  4 +-
 hw/arm/digic.c   |  5 +-
 hw/hyperv/syndbg.c   |  1 -
 hw/intc/exynos4210_gic.c |  9 +--
 hw/misc/mips_itu.c   |  3 +-
 linux-user/main.c|  2 +-
 linux-user/signal.c  |  3 +-
 monitor/hmp.c|  4 +-
 monitor/monitor.c   

[PULL 00/30] Misc patches for 2010-10-02

2019-10-03 Thread Paolo Bonzini
The following changes since commit 7f21573c822805a8e6be379d9bcf3ad9effef3dc:

  Merge remote-tracking branch 
'remotes/huth-gitlab/tags/pull-request-2019-10-01' into staging (2019-10-01 
13:13:38 +0100)

are available in the git repository at:


  git://github.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to 52c8850d80c5bf34afd3b203b912217f45327a9e:

  accel/kvm: ensure ret always set (2019-10-02 18:37:27 +0200)


* Compilation fix for KVM (Alex)
* SMM fix (Dmitry)
* VFIO error reporting (Eric)
* win32 fixes and workarounds (Marc-André)
* qemu-pr-helper crash bugfix (Maxim)
* VMX feature flags (myself)
* Memory leak fixes (myself)
* Record-replay deadlock (Pavel)
* i386 CPUID bits (Sebastian)
* kconfig tweak (Thomas)
* Valgrind fix (Thomas)
* distclean improvement (Thomas)
* Autoconverge test (Yury)


Alex Bennée (1):
  accel/kvm: ensure ret always set

Dmitry Poletaev (1):
  Fix wrong behavior of cpu_memory_rw_debug() function in SMM

Eric Auger (2):
  vfio: Turn the container error into an Error handle
  memory: allow memory_region_register_iommu_notifier() to fail

Marc-André Lureau (3):
  util: WSAEWOULDBLOCK on connect should map to EINPROGRESS
  tests: skip serial test on windows
  win32: work around main-loop busy loop on socket/fd event

Maxim Levitsky (1):
  qemu-pr-helper: fix crash in mpath_reconstruct_sense

Paolo Bonzini (16):
  target/i386: handle filtered_features in a new function 
mark_unavailable_features
  target/i386: introduce generic feature dependency mechanism
  target/i386: expand feature words to 64 bits
  target/i386: add VMX definitions
  vmxcap: correct the name of the variables
  target/i386: add VMX features
  target/i386: work around KVM_GET_MSRS bug for secondary execution controls
  ide: fix leak from qemu_allocate_irqs
  microblaze: fix leak of fdevice tree blob
  mcf5208: fix leak from qemu_allocate_irqs
  hppa: fix leak from g_strdup_printf
  mips: fix memory leaks in board initialization
  cris: do not leak struct cris_disasm_data
  lm32: do not leak memory on object_new/object_unref
  docker: test-debug: disable LeakSanitizer
  tests/docker: only enable ubsan for test-clang

Pavel Dovgaluk (1):
  replay: don't synchronize memory operations in replay mode

Sebastian Andrzej Siewior (1):
  i386: Add CPUID bit for CLZERO and XSAVEERPTR

Thomas Huth (3):
  target/i386/kvm: Silence warning from Valgrind about uninitialized bytes
  Makefile: Remove generated files when doing 'distclean'
  hw/isa: Introduce a CONFIG_ISA_SUPERIO switch for isa-superio.c

Yury Kotov (1):
  tests/migration: Add a test for auto converge

 Makefile  |   6 +-
 accel/kvm/kvm-all.c   |   6 +-
 disas/cris.c  |  59 +++---
 exec.c|  23 ++-
 hw/arm/smmuv3.c   |  18 +-
 hw/hppa/dino.c|   1 +
 hw/hppa/machine.c |   4 +-
 hw/i386/amd_iommu.c   |  17 +-
 hw/i386/intel_iommu.c |   8 +-
 hw/ide/cmd646.c   |   1 +
 hw/isa/Kconfig|  10 +-
 hw/isa/Makefile.objs  |   2 +-
 hw/m68k/mcf5208.c |   2 +
 hw/microblaze/boot.c  |   1 +
 hw/mips/Kconfig   |   1 +
 hw/mips/mips_int.c|   1 +
 hw/mips/mips_jazz.c   |   2 +
 hw/ppc/spapr_iommu.c  |   8 +-
 hw/timer/lm32_timer.c |   6 +-
 hw/timer/milkymist-sysctl.c   |  10 +-
 hw/vfio/common.c  |  52 +++--
 hw/vfio/spapr.c   |   4 +-
 hw/virtio/vhost.c |   9 +-
 include/exec/memory.h |  21 +-
 include/hw/vfio/vfio-common.h |   2 +-
 include/sysemu/kvm.h  |   2 +-
 memory.c  |  31 +--
 scripts/kvm/vmxcap|  14 +-
 scsi/qemu-pr-helper.c |   6 +-
 target/i386/cpu.c | 447 +-
 target/i386/cpu.h | 146 +-
 target/i386/helper.c  |   5 +-
 target/i386/kvm.c | 183 -
 tests/Makefile.include|  12 +-
 tests/docker/test-clang   |   4 +-
 tests/docker/test-debug   |   1 +
 tests/migration-test.c| 157 +--
 tests/test-char.c |   4 +-
 util/async.c  |   6 +-
 util/oslib-win32.c|   6 +-
 40 files changed, 1050 insertions(+), 248 deletions(-)
-- 
1.8.3.1

>From 6a82dc314970c19db9212ee89087ec2dc02c0723 Mon Sep 17 00:00:00 2001
From: Yury Kotov 
Date: Mon, 9 Sep 2019 16:13:35 +0300
Subject: [PULL 01/30] tests/migration: Add a test for auto converge

Signed-off-by: Yury Kotov 
Reviewed-by: Dr. David Alan Gilbert 
Message-Id: <20190909131335.16848-4-yury-ko...@yandex-team.ru>
[Reorganize check_migration_status for rebase. - Paolo]

Re: [PULL 00/30] Misc patches for 2010-10-02

2019-10-02 Thread no-reply
Patchew URL: 
https://patchew.org/QEMU/1570035113-56848-1-git-send-email-pbonz...@redhat.com/



Hi,

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

Type: series
Message-id: 1570035113-56848-1-git-send-email-pbonz...@redhat.com
Subject: [PULL 00/30] Misc patches for 2010-10-02

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Switched to a new branch 'test'
ece968f accel/kvm: ensure ret always set
f809af7 tests/docker: only enable ubsan for test-clang
42bb4d8 win32: work around main-loop busy loop on socket/fd event
6dc6f67 tests: skip serial test on windows
81d8378 util: WSAEWOULDBLOCK on connect should map to EINPROGRESS
68a8749 Fix wrong behavior of cpu_memory_rw_debug() function in SMM
ba6a8cb memory: allow memory_region_register_iommu_notifier() to fail
31fb63b vfio: Turn the container error into an Error handle
9cb898e i386: Add CPUID bit for CLZERO and XSAVEERPTR
223539f docker: test-debug: disable LeakSanitizer
ddc831e lm32: do not leak memory on object_new/object_unref
7e7f903 cris: do not leak struct cris_disasm_data
71ddec4 mips: fix memory leaks in board initialization
0a4aae1 hppa: fix leak from g_strdup_printf
1681302 mcf5208: fix leak from qemu_allocate_irqs
975e236 microblaze: fix leak of fdevice tree blob
3b04059 ide: fix leak from qemu_allocate_irqs
ef7140c hw/isa: Introduce a CONFIG_ISA_SUPERIO switch for isa-superio.c
22144ad Makefile: Remove generated files when doing 'distclean'
b2315db replay: don't synchronize memory operations in replay mode
a8748fb qemu-pr-helper: fix crash in mpath_reconstruct_sense
62af60b target/i386/kvm: Silence warning from Valgrind about uninitialized bytes
354aebb target/i386: work around KVM_GET_MSRS bug for secondary execution 
controls
6dec780 target/i386: add VMX features
0aabf14 vmxcap: correct the name of the variables
79691b9 target/i386: add VMX definitions
31a4f80 target/i386: expand feature words to 64 bits
107c503 target/i386: introduce generic feature dependency mechanism
2444ee0 target/i386: handle filtered_features in a new function 
mark_unavailable_features
ebcabe7 tests/migration: Add a test for auto converge

=== OUTPUT BEGIN ===
1/30 Checking commit ebcabe7df2b9 (tests/migration: Add a test for auto 
converge)
2/30 Checking commit 2444ee0a386b (target/i386: handle filtered_features in a 
new function mark_unavailable_features)
ERROR: suspect code indent for conditional statements (4, 9)
#27: FILE: target/i386/cpu.c:3103:
+for (w = 0; w < FEATURE_WORDS; w++) {
+ if (cpu->filtered_features[w]) {

ERROR: suspect code indent for conditional statements (9, 13)
#28: FILE: target/i386/cpu.c:3104:
+ if (cpu->filtered_features[w]) {
+ return true;

WARNING: line over 80 characters
#139: FILE: target/i386/cpu.c:5215:
+mark_unavailable_features(cpu, FEAT_7_0_EBX, 
CPUID_7_0_EBX_INTEL_PT, prefix);

total: 2 errors, 1 warnings, 147 lines checked

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

3/30 Checking commit 107c50351a12 (target/i386: introduce generic feature 
dependency mechanism)
WARNING: line over 80 characters
#126: FILE: target/i386/cpu.c:5114:
+uint32_t unavailable_features = env->features[d->to.index] & 
d->to.mask;

WARNING: line over 80 characters
#133: FILE: target/i386/cpu.c:5116:
+/* Not an error unless the dependent feature was added explicitly. 
 */

ERROR: line over 90 characters
#135: FILE: target/i386/cpu.c:5118:
+  unavailable_features & 
env->user_features[d->to.index],

total: 1 errors, 2 warnings, 110 lines checked

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

4/30 Checking commit 31a4f805635b (target/i386: expand feature words to 64 bits)
WARNING: line over 80 characters
#153: FILE: target/i386/cpu.c:3442:
+assert(bitnr < 32 || !(name && feature_word_info[w].type == 
CPUID_FEATURE_WORD));

WARNING: line over 80 characters
#209: FILE: target/i386/cpu.c:5117:
+uint64_t unavailable_features = env->features[d->to.index] & 
d->to.mask;

total: 0 errors, 2 warnings, 235 lines checked

Patch 4/30 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
5/30 Checking commit 79691b91fef6 (target/i386: add VMX definitions)
6/30 Checking commit 0aabf142d06c (vmxcap: correct the name of the variables)
7/30 Checking commit 6dec78064317 (target/i386: add VMX features)
ERROR: line over 90 characters
#32: FIL

[PULL 00/30] Misc patches for 2010-10-02

2019-10-02 Thread Paolo Bonzini
The following changes since commit 7f21573c822805a8e6be379d9bcf3ad9effef3dc:

  Merge remote-tracking branch 
'remotes/huth-gitlab/tags/pull-request-2019-10-01' into staging (2019-10-01 
13:13:38 +0100)

are available in the git repository at:


  git://github.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to 52c8850d80c5bf34afd3b203b912217f45327a9e:

  accel/kvm: ensure ret always set (2019-10-02 18:37:27 +0200)


* Compilation fix for KVM (Alex)
* SMM fix (Dmitry)
* VFIO error reporting (Eric)
* win32 fixes and workarounds (Marc-André)
* qemu-pr-helper crash bugfix (Maxim)
* VMX feature flags (myself)
* Memory leak fixes (myself)
* Record-replay deadlock (Pavel)
* i386 CPUID bits (Sebastian)
* kconfig tweak (Thomas)
* Valgrind fix (Thomas)
* distclean improvement (Thomas)
* Autoconverge test (Yury)


Alex Bennée (1):
  accel/kvm: ensure ret always set

Dmitry Poletaev (1):
  Fix wrong behavior of cpu_memory_rw_debug() function in SMM

Eric Auger (2):
  vfio: Turn the container error into an Error handle
  memory: allow memory_region_register_iommu_notifier() to fail

Marc-André Lureau (3):
  util: WSAEWOULDBLOCK on connect should map to EINPROGRESS
  tests: skip serial test on windows
  win32: work around main-loop busy loop on socket/fd event

Maxim Levitsky (1):
  qemu-pr-helper: fix crash in mpath_reconstruct_sense

Paolo Bonzini (16):
  target/i386: handle filtered_features in a new function 
mark_unavailable_features
  target/i386: introduce generic feature dependency mechanism
  target/i386: expand feature words to 64 bits
  target/i386: add VMX definitions
  vmxcap: correct the name of the variables
  target/i386: add VMX features
  target/i386: work around KVM_GET_MSRS bug for secondary execution controls
  ide: fix leak from qemu_allocate_irqs
  microblaze: fix leak of fdevice tree blob
  mcf5208: fix leak from qemu_allocate_irqs
  hppa: fix leak from g_strdup_printf
  mips: fix memory leaks in board initialization
  cris: do not leak struct cris_disasm_data
  lm32: do not leak memory on object_new/object_unref
  docker: test-debug: disable LeakSanitizer
  tests/docker: only enable ubsan for test-clang

Pavel Dovgaluk (1):
  replay: don't synchronize memory operations in replay mode

Sebastian Andrzej Siewior (1):
  i386: Add CPUID bit for CLZERO and XSAVEERPTR

Thomas Huth (3):
  target/i386/kvm: Silence warning from Valgrind about uninitialized bytes
  Makefile: Remove generated files when doing 'distclean'
  hw/isa: Introduce a CONFIG_ISA_SUPERIO switch for isa-superio.c

Yury Kotov (1):
  tests/migration: Add a test for auto converge

 Makefile  |   6 +-
 accel/kvm/kvm-all.c   |   6 +-
 disas/cris.c  |  59 +++---
 exec.c|  23 ++-
 hw/arm/smmuv3.c   |  18 +-
 hw/hppa/dino.c|   1 +
 hw/hppa/machine.c |   4 +-
 hw/i386/amd_iommu.c   |  17 +-
 hw/i386/intel_iommu.c |   8 +-
 hw/ide/cmd646.c   |   1 +
 hw/isa/Kconfig|  10 +-
 hw/isa/Makefile.objs  |   2 +-
 hw/m68k/mcf5208.c |   2 +
 hw/microblaze/boot.c  |   1 +
 hw/mips/Kconfig   |   1 +
 hw/mips/mips_int.c|   1 +
 hw/mips/mips_jazz.c   |   2 +
 hw/ppc/spapr_iommu.c  |   8 +-
 hw/timer/lm32_timer.c |   6 +-
 hw/timer/milkymist-sysctl.c   |  10 +-
 hw/vfio/common.c  |  52 +++--
 hw/vfio/spapr.c   |   4 +-
 hw/virtio/vhost.c |   9 +-
 include/exec/memory.h |  21 +-
 include/hw/vfio/vfio-common.h |   2 +-
 include/sysemu/kvm.h  |   2 +-
 memory.c  |  31 +--
 scripts/kvm/vmxcap|  14 +-
 scsi/qemu-pr-helper.c |   6 +-
 target/i386/cpu.c | 447 +-
 target/i386/cpu.h | 146 +-
 target/i386/helper.c  |   5 +-
 target/i386/kvm.c | 183 -
 tests/Makefile.include|  12 +-
 tests/docker/test-clang   |   4 +-
 tests/docker/test-debug   |   1 +
 tests/migration-test.c| 157 +--
 tests/test-char.c |   4 +-
 util/async.c  |   6 +-
 util/oslib-win32.c|   6 +-
 40 files changed, 1050 insertions(+), 248 deletions(-)
-- 
1.8.3.1




Re: [Qemu-devel] [PULL 00/30] Misc patches for 2018-05-09

2018-05-11 Thread Daniel P . Berrangé
On Fri, May 11, 2018 at 01:50:28PM +0100, Peter Maydell wrote:
> On 11 May 2018 at 13:42, Daniel P. Berrangé  wrote:
> > On Fri, May 11, 2018 at 01:19:51PM +0100, Peter Maydell wrote:
> >> Some of my build setups barf on the new glib version requirement:
> >>
> >>  * my aarch64 build host (a gcc compile farm machine which is running
> >>Ubuntu 14.04.5 LTS and has glib 2.40.2)
> >
> > That is expected - per the policy we only aim to support the most recent,
> > and most recent but one for 2 years overlap. Since LTS releases are two
> > years apart, this basically means always just 2 most recent LTS releases
> > for Ubuntu. Since we Ubuntu 18.04 LTS came out last month, we don't
> > need to continue 14.04 LTS
> 
> ...well, I could ask the GCC compile farm admins what their
> upgrade plans are, but I don't particularly see the need
> to impose load on a volunteer set of admins when the distro
> they're running is still supported for another year. And I
> don't want to drop aarch64 from my build test set.

Ah ok, I didn't realize you weren't in control of the OS version.
2.40.2 is not too old, so we can accomodate that without significant
problems.

> >>  * my windows cross compile setups (which have glib 2.34.3)
> >
> > Presumably you're using a Debian host for that ?
> 
> Ubuntu.
> 
> > The debian-win64-cross.docker job seems to pull in packages from
> >
> >   deb http://pkg.mxe.cc/repos/apt/debian jessie main
> >
> > And mxe claims to have glib 2.54
> 
> Thanks, I will have a look at this. (They seem to have tarballs
> as well as debian packages.)

Ok, let me know if that works out, and if so, I'll repost min glib
patches setting it to 2.40.2 to allow for the aarch64 build host.

Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|



Re: [Qemu-devel] [PULL 00/30] Misc patches for 2018-05-09

2018-05-11 Thread Peter Maydell
On 11 May 2018 at 13:42, Daniel P. Berrangé  wrote:
> On Fri, May 11, 2018 at 01:19:51PM +0100, Peter Maydell wrote:
>> Some of my build setups barf on the new glib version requirement:
>>
>>  * my aarch64 build host (a gcc compile farm machine which is running
>>Ubuntu 14.04.5 LTS and has glib 2.40.2)
>
> That is expected - per the policy we only aim to support the most recent,
> and most recent but one for 2 years overlap. Since LTS releases are two
> years apart, this basically means always just 2 most recent LTS releases
> for Ubuntu. Since we Ubuntu 18.04 LTS came out last month, we don't
> need to continue 14.04 LTS

...well, I could ask the GCC compile farm admins what their
upgrade plans are, but I don't particularly see the need
to impose load on a volunteer set of admins when the distro
they're running is still supported for another year. And I
don't want to drop aarch64 from my build test set.

>>  * my windows cross compile setups (which have glib 2.34.3)
>
> Presumably you're using a Debian host for that ?

Ubuntu.

> The debian-win64-cross.docker job seems to pull in packages from
>
>   deb http://pkg.mxe.cc/repos/apt/debian jessie main
>
> And mxe claims to have glib 2.54

Thanks, I will have a look at this. (They seem to have tarballs
as well as debian packages.)

-- PMM



Re: [Qemu-devel] [PULL 00/30] Misc patches for 2018-05-09

2018-05-11 Thread Daniel P . Berrangé
On Fri, May 11, 2018 at 01:19:51PM +0100, Peter Maydell wrote:
> On 8 May 2018 at 23:14, Paolo Bonzini  wrote:
> > The following changes since commit cc8f8ba754bba17eea9791d67b572eb26e30b4ce:
> >
> >   Merge remote-tracking branch 
> > 'remotes/ehabkost/tags/machine-next-pull-request' into staging (2018-05-08 
> > 15:25:17 +0100)
> >
> > are available in the git repository at:
> >
> >
> >   git://github.com/bonzini/qemu.git tags/for-upstream
> >
> > for you to fetch changes up to 3c128df2ec239f5c1abd0aa59254c433a779a347:
> >
> >   rename included C files to foo.inc.c, remove osdep.h (2018-05-09 00:13:41 
> > +0200)
> >
> > 
> > * Don't silently truncate extremely long words in the command line
> > * bump min required glib library version to 2.42
> > * dtc configure fixes
> > * MemoryRegionCache second try
> > * Deprecated option removal
> > * add support for Hyper-V reenlightenment MSRs
> >
> > 
> 
> Some of my build setups barf on the new glib version requirement:
> 
>  * my aarch64 build host (a gcc compile farm machine which is running
>Ubuntu 14.04.5 LTS and has glib 2.40.2)

That is expected - per the policy we only aim to support the most recent,
and most recent but one for 2 years overlap. Since LTS releases are two
years apart, this basically means always just 2 most recent LTS releases
for Ubuntu. Since we Ubuntu 18.04 LTS came out last month, we don't
need to continue 14.04 LTS

>  * my windows cross compile setups (which have glib 2.34.3)

Presumably you're using a Debian host for that ?

The debian-win64-cross.docker job seems to pull in packages from

  deb http://pkg.mxe.cc/repos/apt/debian jessie main

And mxe claims to have glib 2.54

Alternativel Fedora has new mingw packags too

> The latter could probably be fixed, but it will be a pain because
> gtk.org don't distribute prebuilt glib  zipfiles usable for cross
> compile any more. For the former, that LTS is apparently still
> in support for another year.

Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|



Re: [Qemu-devel] [PULL 00/30] Misc patches for 2018-05-09

2018-05-11 Thread Peter Maydell
On 11 May 2018 at 13:33, Paolo Bonzini  wrote:
> On 11/05/2018 14:19, Peter Maydell wrote:
>> Some of my build setups barf on the new glib version requirement:
>>
>>  * my aarch64 build host (a gcc compile farm machine which is running
>>Ubuntu 14.04.5 LTS and has glib 2.40.2)
>>  * my windows cross compile setups (which have glib 2.34.3)
>>
>> The latter could probably be fixed, but it will be a pain because
>> gtk.org don't distribute prebuilt glib  zipfiles usable for cross
>> compile any more. For the former, that LTS is apparently still
>> in support for another year.
>
> Fair enough.  I suppose that for now we can still uniformly bump up to
> 2.34, which is enough to remove all compatibility shims except for a couple.
>
> I'll resend the pull request without that part.

Thanks. If somebody has a recipe for doing mingw32/w64 cross builds
on Ubuntu hosts with a newer glib then I can look at updating
that bit of my build setup...

-- PMM



Re: [Qemu-devel] [PULL 00/30] Misc patches for 2018-05-09

2018-05-11 Thread Paolo Bonzini
On 11/05/2018 14:19, Peter Maydell wrote:
> Some of my build setups barf on the new glib version requirement:
> 
>  * my aarch64 build host (a gcc compile farm machine which is running
>Ubuntu 14.04.5 LTS and has glib 2.40.2)
>  * my windows cross compile setups (which have glib 2.34.3)
> 
> The latter could probably be fixed, but it will be a pain because
> gtk.org don't distribute prebuilt glib  zipfiles usable for cross
> compile any more. For the former, that LTS is apparently still
> in support for another year.

Fair enough.  I suppose that for now we can still uniformly bump up to
2.34, which is enough to remove all compatibility shims except for a couple.

I'll resend the pull request without that part.

Thanks,

Paolo



Re: [Qemu-devel] [PULL 00/30] Misc patches for 2018-05-09

2018-05-11 Thread Peter Maydell
On 8 May 2018 at 23:14, Paolo Bonzini  wrote:
> The following changes since commit cc8f8ba754bba17eea9791d67b572eb26e30b4ce:
>
>   Merge remote-tracking branch 
> 'remotes/ehabkost/tags/machine-next-pull-request' into staging (2018-05-08 
> 15:25:17 +0100)
>
> are available in the git repository at:
>
>
>   git://github.com/bonzini/qemu.git tags/for-upstream
>
> for you to fetch changes up to 3c128df2ec239f5c1abd0aa59254c433a779a347:
>
>   rename included C files to foo.inc.c, remove osdep.h (2018-05-09 00:13:41 
> +0200)
>
> 
> * Don't silently truncate extremely long words in the command line
> * bump min required glib library version to 2.42
> * dtc configure fixes
> * MemoryRegionCache second try
> * Deprecated option removal
> * add support for Hyper-V reenlightenment MSRs
>
> 

Some of my build setups barf on the new glib version requirement:

 * my aarch64 build host (a gcc compile farm machine which is running
   Ubuntu 14.04.5 LTS and has glib 2.40.2)
 * my windows cross compile setups (which have glib 2.34.3)

The latter could probably be fixed, but it will be a pain because
gtk.org don't distribute prebuilt glib  zipfiles usable for cross
compile any more. For the former, that LTS is apparently still
in support for another year.

thanks
-- PMM



[Qemu-devel] [PULL 00/30] Misc patches for 2018-05-09

2018-05-08 Thread Paolo Bonzini
The following changes since commit cc8f8ba754bba17eea9791d67b572eb26e30b4ce:

  Merge remote-tracking branch 
'remotes/ehabkost/tags/machine-next-pull-request' into staging (2018-05-08 
15:25:17 +0100)

are available in the git repository at:


  git://github.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to 3c128df2ec239f5c1abd0aa59254c433a779a347:

  rename included C files to foo.inc.c, remove osdep.h (2018-05-09 00:13:41 
+0200)


* Don't silently truncate extremely long words in the command line
* bump min required glib library version to 2.42
* dtc configure fixes
* MemoryRegionCache second try
* Deprecated option removal
* add support for Hyper-V reenlightenment MSRs


Cédric Le Goater (1):
  cpus: tcg: fix never exiting loop on unplug

Daniel P. Berrangé (5):
  accel: use g_strsplit for parsing accelerator names
  opts: don't silently truncate long parameter keys
  opts: don't silently truncate long option values
  qemu-doc: provide details of supported build platforms
  glib: bump min required glib library version to 2.42

David Hildenbrand (1):
  pc-dimm: fix error messages if no slots were defined

Jan Kiszka (1):
  build: Silence dtc directory creation

Markus Armbruster (1):
  cpus: Fix event order on resume of stopped guest

Olaf Hering (1):
  configure: recognize more rpmbuild macros

Paolo Bonzini (8):
  qom: allow object_get_canonical_path_component without parent
  memdev: remove "id" property
  exec: move memory access declarations to a common header, inline *_phys 
functions
  exec: small changes to flatview_do_translate
  exec: extract address_space_translate_iommu, fix page_mask corner case
  exec: reintroduce MemoryRegion caching
  target/i386: sev: fix memory leaks
  rename included C files to foo.inc.c, remove osdep.h

Peter Xu (2):
  checkpatch.pl: add common glib defines to typelist
  qemu-thread: always keep the posix wrapper layer

Philippe Mathieu-Daudé (3):
  configure: Really use local libfdt if the system one is too old
  configure: Display if libfdt is from system or git
  shippable: Remove Debian 8 libfdt kludge

Roman Kagan (1):
  update-linux-headers: drop hyperv.h

Thomas Huth (5):
  qemu-options: Mark -virtioconsole as deprecated
  qemu-options: Remove remainders of the -tdf option
  qemu-options: Bail out on unsupported options instead of silently 
ignoring them
  qemu-options: Remove deprecated -no-kvm-pit-reinjection
  qemu-options: Remove deprecated -no-kvm-irqchip

Vitaly Kuznetsov (1):
  i386/kvm: add support for Hyper-V reenlightenment MSRs

 .shippable.yml |   8 -
 Makefile   |   2 +-
 accel/accel.c  |  16 +-
 backends/hostmem.c |  26 --
 configure  |  23 +-
 cpus.c |  18 +-
 docs/devel/testing.rst |   4 +-
 exec.c | 242 
 hw/i386/multiboot.c|  33 ++-
 hw/mem/pc-dimm.c   |   9 +-
 include/exec/cpu-all.h |  79 +++--
 include/exec/memory-internal.h |   3 +
 include/exec/memory.h  | 209 +++---
 include/exec/memory_ldst.inc.h |  71 +
 include/exec/memory_ldst_cached.inc.h  | 108 +++
 include/exec/memory_ldst_phys.inc.h| 147 ++
 include/glib-compat.h  | 319 -
 include/qemu-common.h  |   2 +-
 include/qemu/option.h  |   3 +-
 include/qom/object.h   |   1 +
 include/sysemu/hostmem.h   |   1 -
 memory.c   |   4 +-
 memory_ldst.inc.c  | 126 
 numa.c |   2 +-
 os-posix.c |   6 +-
 os-win32.c |   4 +-
 qemu-doc.texi  |  83 +-
 qemu-options.hx|  15 +-
 qom/object.c   |   5 +-
 qom/object_interfaces.c|   6 -
 rules.mak  |   2 +-
 scripts/checkpatch.pl  |  28 ++
 scripts/update-linux-headers.sh|   6 -
 target/cris/translate.c|   2 +-
 .../cris/{translate_v10.c => translate_v10.inc.c}  |