[Qemu-devel] [PULL 00/34] Misc patches for 2018-03-06

Paolo Bonzini posted 34 patches 7 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1520342370-123606-1-git-send-email-pbonzini@redhat.com
Test checkpatch failed
Test docker-build@min-glib passed
Test docker-mingw@fedora passed
Test docker-quick@centos6 passed
Test ppcbe passed
Test ppcle passed
Test s390x passed
chardev/char-socket.c          | 10 +++--
configure                      | 47 +++++++++-------------
cpus.c                         | 33 +++++-----------
exec.c                         | 90 +++++++++++++++++++++++++-----------------
fsdev/virtfs-proxy-helper.c    | 15 ++++---
hw/display/g364fb.c            |  1 +
hw/i386/pc.c                   | 17 --------
hw/i386/pc_piix.c              |  4 --
hw/i386/pc_q35.c               |  3 --
hw/intc/openpic_kvm.c          |  4 --
hw/s390x/s390-ccw.c            |  2 +-
hw/scsi/lsi53c895a.c           |  2 +-
hw/scsi/scsi-bus.c             | 49 +----------------------
hw/scsi/spapr_vscsi.c          |  3 +-
hw/vfio/pci.c                  |  2 +-
hw/vfio/platform.c             |  2 +-
include/exec/memory-internal.h | 13 ++++--
include/exec/memory.h          | 47 ++++++++++++++--------
include/hw/scsi/scsi.h         |  2 +-
include/qemu/lockable.h        |  2 +-
include/qom/object.h           | 16 ++++++++
memory.c                       | 30 --------------
qapi/misc.json                 | 34 ++++++++--------
qdev-monitor.c                 |  6 +--
qemu-doc.texi                  | 33 ++++++++--------
qemu-io.c                      |  2 +-
qemu-options.hx                | 11 ++----
qga/commands-posix.c           |  4 +-
qmp.c                          | 69 +++++++++++++++++++++++++++-----
qom/object.c                   |  7 ++++
scripts/checkpatch.pl          | 10 ++++-
target/i386/whpx-all.c         | 70 +++++++++++---------------------
tests/ahci-test.c              |  1 +
tests/qemu-iotests/051         |  4 --
tests/sdhci-test.c             |  2 +
vl.c                           | 20 ++++------
36 files changed, 315 insertions(+), 352 deletions(-)
[Qemu-devel] [PULL 00/34] Misc patches for 2018-03-06
Posted by Paolo Bonzini 7 years, 7 months ago
The following changes since commit 58e2e17dba49b43f4ac9de19468aeae1c787dcc2:

  Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2018-03-06 11:20:44 +0000)

are available in the git repository at:


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

for you to fetch changes up to 3e015d815b3f28bfd874bf8a1697308ef9af2b4c:

  use g_path_get_basename instead of basename (2018-03-06 14:01:29 +0100)

----------------------------------------------------------------
* new QMP command qom-list-properties (Alexey)
* TCG cleanups (David)
* use g_path_get_basename/g_path_get_dirname when useful (Julia)
* WHPX fixes (Justin)
* ASAN fixes (Marc-André)
* g364fb memory leak fix, address_space_to_flatview RCU fixes (me)
* chardev memory leak fix (Peter)
* checkpatch improvements (Julia, Su Hang)
* next round of deprecation patches (Thomas)

----------------------------------------------------------------
Alexey Kardashevskiy (2):
      qmp: Merge ObjectPropertyInfo and DevicePropertyInfo
      qmp: Add qom-list-properties to list QOM object properties

David Hildenbrand (3):
      cpus: properly inititalize CPU > 1 under single-threaded TCG
      cpus: wait for CPU creation at central place
      cpus: CPU threads are always created initially for one CPU only

Julia Suvorova (2):
      checkpatch: add a warning for basename/dirname
      use g_path_get_basename instead of basename

Justin Terry (VM) via Qemu-devel (8):
      Fixing WHPX casing to match SDK
      Resolves WHPX breaking changes in SDK 17095
      Remove unnecessary WHPX __debugbreak();
      Fix WHPX additional lock acquisition
      Fix WHPX typo in 'mmio'
      Fix WHPX issue leaking tpr values
      WHXP Removes the use of WHvGetExitContextSize
      WHPX improve interrupt notification registration

Marc-André Lureau (4):
      build-sys: fix -fsanitize=address check
      lockable: workaround GCC link issue with ASAN
      ahci-test: fix opts leak of skip tests
      sdhci-test: fix leaks

Paolo Bonzini (9):
      g364fb: fix DirtyBitmapSnapshot leak
      openpic_kvm: drop address_space_to_flatview call
      memory: inline some performance-sensitive accessors
      address_space_write: address_space_to_flatview needs RCU lock
      address_space_read: address_space_to_flatview needs RCU lock
      address_space_access_valid: address_space_to_flatview needs RCU lock
      address_space_map: address_space_to_flatview needs RCU lock
      address_space_rw: address_space_to_flatview needs RCU lock
      Revert "build-sys: compile with -Og or -O1 when --enable-debug"

Peter Xu (1):
      chardev: fix leak in tcp_chr_telnet_init_io()

Su Hang (1):
      checkpatch: add check for `while` and `for`

Thomas Huth (4):
      Remove the deprecated -tdf option
      scsi: Remove automatic creation of SCSI controllers with -drive if=scsi
      Document --rtc-td-hack, --localtime and --startdate as deprecated
      balloon: Fix documentation of the --balloon parameter and deprecate it

 chardev/char-socket.c          | 10 +++--
 configure                      | 47 +++++++++-------------
 cpus.c                         | 33 +++++-----------
 exec.c                         | 90 +++++++++++++++++++++++++-----------------
 fsdev/virtfs-proxy-helper.c    | 15 ++++---
 hw/display/g364fb.c            |  1 +
 hw/i386/pc.c                   | 17 --------
 hw/i386/pc_piix.c              |  4 --
 hw/i386/pc_q35.c               |  3 --
 hw/intc/openpic_kvm.c          |  4 --
 hw/s390x/s390-ccw.c            |  2 +-
 hw/scsi/lsi53c895a.c           |  2 +-
 hw/scsi/scsi-bus.c             | 49 +----------------------
 hw/scsi/spapr_vscsi.c          |  3 +-
 hw/vfio/pci.c                  |  2 +-
 hw/vfio/platform.c             |  2 +-
 include/exec/memory-internal.h | 13 ++++--
 include/exec/memory.h          | 47 ++++++++++++++--------
 include/hw/scsi/scsi.h         |  2 +-
 include/qemu/lockable.h        |  2 +-
 include/qom/object.h           | 16 ++++++++
 memory.c                       | 30 --------------
 qapi/misc.json                 | 34 ++++++++--------
 qdev-monitor.c                 |  6 +--
 qemu-doc.texi                  | 33 ++++++++--------
 qemu-io.c                      |  2 +-
 qemu-options.hx                | 11 ++----
 qga/commands-posix.c           |  4 +-
 qmp.c                          | 69 +++++++++++++++++++++++++++-----
 qom/object.c                   |  7 ++++
 scripts/checkpatch.pl          | 10 ++++-
 target/i386/whpx-all.c         | 70 +++++++++++---------------------
 tests/ahci-test.c              |  1 +
 tests/qemu-iotests/051         |  4 --
 tests/sdhci-test.c             |  2 +
 vl.c                           | 20 ++++------
 36 files changed, 315 insertions(+), 352 deletions(-)
-- 
1.8.3.1


Re: [Qemu-devel] [PULL 00/34] Misc patches for 2018-03-06
Posted by no-reply@patchew.org 7 years, 7 months ago
Hi,

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

Type: series
Message-id: 1520342370-123606-1-git-send-email-pbonzini@redhat.com
Subject: [Qemu-devel] [PULL 00/34] Misc patches for 2018-03-06

=== TEST SCRIPT BEGIN ===
#!/bin/bash

BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0

git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram

commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
    echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
    if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
        failed=1
        echo
    fi
    n=$((n+1))
done

exit $failed
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 * [new tag]               patchew/1520342370-123606-1-git-send-email-pbonzini@redhat.com -> patchew/1520342370-123606-1-git-send-email-pbonzini@redhat.com
 * [new tag]               patchew/20180306132430.32110-1-berrange@redhat.com -> patchew/20180306132430.32110-1-berrange@redhat.com
Switched to a new branch 'test'
a4ceb15bac use g_path_get_basename instead of basename
6c2567cdf0 balloon: Fix documentation of the --balloon parameter and deprecate it
ae1cb543f3 WHPX improve interrupt notification registration
126902e88b WHXP Removes the use of WHvGetExitContextSize
e2e4d890b2 Fix WHPX issue leaking tpr values
05afbff507 Fix WHPX typo in 'mmio'
738cc18aff Fix WHPX additional lock acquisition
b5d7df4cba Remove unnecessary WHPX __debugbreak();
9de91b4ec7 Resolves WHPX breaking changes in SDK 17095
21fe88200d Fixing WHPX casing to match SDK
78f5194b0f Revert "build-sys: compile with -Og or -O1 when --enable-debug"
8623937bc8 checkpatch: add check for `while` and `for`
bb7b953c4d checkpatch: add a warning for basename/dirname
2c469a02cf address_space_rw: address_space_to_flatview needs RCU lock
c61cb65854 address_space_map: address_space_to_flatview needs RCU lock
a59cf85880 address_space_access_valid: address_space_to_flatview needs RCU lock
0da59bd682 address_space_read: address_space_to_flatview needs RCU lock
6e79fe431d address_space_write: address_space_to_flatview needs RCU lock
c23349c6c2 memory: inline some performance-sensitive accessors
9993848605 openpic_kvm: drop address_space_to_flatview call
f68a1b6e05 chardev: fix leak in tcp_chr_telnet_init_io()
d19120b81f sdhci-test: fix leaks
f291bd7c9c ahci-test: fix opts leak of skip tests
e9cec95067 lockable: workaround GCC link issue with ASAN
829b78b4fe build-sys: fix -fsanitize=address check
832c16ffc0 qmp: Add qom-list-properties to list QOM object properties
4ad1ae9dbc qmp: Merge ObjectPropertyInfo and DevicePropertyInfo
cab2b8d9c7 Document --rtc-td-hack, --localtime and --startdate as deprecated
2441bf2aa9 cpus: CPU threads are always created initially for one CPU only
883c381bf3 cpus: wait for CPU creation at central place
10f3537b7b cpus: properly inititalize CPU > 1 under single-threaded TCG
bab82158ce scsi: Remove automatic creation of SCSI controllers with -drive if=scsi
3bf0e70f24 Remove the deprecated -tdf option
128269f3f0 g364fb: fix DirtyBitmapSnapshot leak

=== OUTPUT BEGIN ===
Checking PATCH 1/34: g364fb: fix DirtyBitmapSnapshot leak...
Checking PATCH 2/34: Remove the deprecated -tdf option...
Checking PATCH 3/34: scsi: Remove automatic creation of SCSI controllers with -drive if=scsi...
Checking PATCH 4/34: cpus: properly inititalize CPU > 1 under single-threaded TCG...
Checking PATCH 5/34: cpus: wait for CPU creation at central place...
Checking PATCH 6/34: cpus: CPU threads are always created initially for one CPU only...
Checking PATCH 7/34: Document --rtc-td-hack, --localtime and --startdate as deprecated...
WARNING: line over 80 characters
#72: FILE: vl.c:3873:
+                warn_report("This option is deprecated, use '-rtc base=' instead.");

total: 0 errors, 1 warnings, 46 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 8/34: qmp: Merge ObjectPropertyInfo and DevicePropertyInfo...
Checking PATCH 9/34: qmp: Add qom-list-properties to list QOM object properties...
Checking PATCH 10/34: build-sys: fix -fsanitize=address check...
Checking PATCH 11/34: lockable: workaround GCC link issue with ASAN...
WARNING: architecture specific defines should be avoided
#28: FILE: include/qemu/lockable.h:31:
+#if defined(__OPTIMIZE__) && !defined(__SANITIZE_ADDRESS__)

total: 0 errors, 1 warnings, 8 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 12/34: ahci-test: fix opts leak of skip tests...
Checking PATCH 13/34: sdhci-test: fix leaks...
Checking PATCH 14/34: chardev: fix leak in tcp_chr_telnet_init_io()...
Checking PATCH 15/34: openpic_kvm: drop address_space_to_flatview call...
Checking PATCH 16/34: memory: inline some performance-sensitive accessors...
Checking PATCH 17/34: address_space_write: address_space_to_flatview needs RCU lock...
Checking PATCH 18/34: address_space_read: address_space_to_flatview needs RCU lock...
Checking PATCH 19/34: address_space_access_valid: address_space_to_flatview needs RCU lock...
Checking PATCH 20/34: address_space_map: address_space_to_flatview needs RCU lock...
Checking PATCH 21/34: address_space_rw: address_space_to_flatview needs RCU lock...
Checking PATCH 22/34: checkpatch: add a warning for basename/dirname...
ERROR: line over 90 characters
#24: FILE: scripts/checkpatch.pl:2589:
+			WARN("consider using g_path_get_$1() in preference to g_strdup($1())\n" . $herecurr);

total: 1 errors, 0 warnings, 11 lines checked

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

Checking PATCH 23/34: checkpatch: add check for `while` and `for`...
Checking PATCH 24/34: Revert "build-sys: compile with -Og or -O1 when --enable-debug"...
Checking PATCH 25/34: Fixing WHPX casing to match SDK...
Checking PATCH 26/34: Resolves WHPX breaking changes in SDK 17095...
Checking PATCH 27/34: Remove unnecessary WHPX __debugbreak();...
Checking PATCH 28/34: Fix WHPX additional lock acquisition...
Checking PATCH 29/34: Fix WHPX typo in 'mmio'...
Checking PATCH 30/34: Fix WHPX issue leaking tpr values...
Checking PATCH 31/34: WHXP Removes the use of WHvGetExitContextSize...
Checking PATCH 32/34: WHPX improve interrupt notification registration...
Checking PATCH 33/34: balloon: Fix documentation of the --balloon parameter and deprecate it...
Checking PATCH 34/34: use g_path_get_basename instead of basename...
=== OUTPUT END ===

Test command exited with code: 1


---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@freelists.org
Re: [Qemu-devel] [PULL 00/34] Misc patches for 2018-03-06
Posted by Thomas Huth 7 years, 7 months ago
On 06.03.2018 14:18, Paolo Bonzini wrote:
> The following changes since commit 58e2e17dba49b43f4ac9de19468aeae1c787dcc2:
> 
>   Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2018-03-06 11:20:44 +0000)
> 
> are available in the git repository at:
> 
> 
>   git://github.com/bonzini/qemu.git tags/for-upstream
[...]
> Paolo Bonzini (9):
>       g364fb: fix DirtyBitmapSnapshot leak
>       openpic_kvm: drop address_space_to_flatview call
>       memory: inline some performance-sensitive accessors
>       address_space_write: address_space_to_flatview needs RCU lock
>       address_space_read: address_space_to_flatview needs RCU lock
>       address_space_access_valid: address_space_to_flatview needs RCU lock
>       address_space_map: address_space_to_flatview needs RCU lock
>       address_space_rw: address_space_to_flatview needs RCU lock
>       Revert "build-sys: compile with -Og or -O1 when --enable-debug"

 Hi Paolo,

something in this PULL request caused a regression with the 40p machine,
it crashes now when QEMU is quit:

$ ppc-softmmu/qemu-system-ppc -M 40p -monitor stdio
QEMU 2.11.50 monitor - type 'help' for more information
(qemu) quit
qemu-system-ppc: include/qemu/rcu.h:89: rcu_read_unlock: Assertion `p_rcu_reader->depth != 0' failed.
Aborted (core dumped)

(gdb) bt
#0  0x00007ffff1e841b7 in raise () at /lib64/libc.so.6
#1  0x00007ffff1e858a8 in abort () at /lib64/libc.so.6
#2  0x00007ffff1e7cfd6 in __assert_fail_base () at /lib64/libc.so.6
#3  0x00007ffff1e7d082 in  () at /lib64/libc.so.6
#4  0x000055555583f786 in cpu_exec () at include/qemu/rcu.h:89
#5  0x000055555583f786 in cpu_exec (cpu=cpu@entry=0x7ffff7dff010) at accel/tcg/cpu-exec.c:740
#6  0x0000555555811e0d in qemu_tcg_rr_cpu_thread_fn (cpu=0x7ffff7dff010) at cpus.c:1341
#7  0x0000555555811e0d in qemu_tcg_rr_cpu_thread_fn (arg=<optimized out>) at cpus.c:1435
#8  0x00007ffff70d8dd5 in start_thread () at /lib64/libpthread.so.0
#9  0x00007ffff1f4caed in clone () at /lib64/libc.so.6

Any ideas how to fix this?

 Thomas

Re: [Qemu-devel] [PULL 00/34] Misc patches for 2018-03-06
Posted by Peter Maydell 7 years, 7 months ago
On 6 March 2018 at 13:18, Paolo Bonzini <pbonzini@redhat.com> wrote:
> The following changes since commit 58e2e17dba49b43f4ac9de19468aeae1c787dcc2:
>
>   Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2018-03-06 11:20:44 +0000)
>
> are available in the git repository at:
>
>
>   git://github.com/bonzini/qemu.git tags/for-upstream
>
> for you to fetch changes up to 3e015d815b3f28bfd874bf8a1697308ef9af2b4c:
>
>   use g_path_get_basename instead of basename (2018-03-06 14:01:29 +0100)
>
> ----------------------------------------------------------------
> * new QMP command qom-list-properties (Alexey)
> * TCG cleanups (David)
> * use g_path_get_basename/g_path_get_dirname when useful (Julia)
> * WHPX fixes (Justin)
> * ASAN fixes (Marc-André)
> * g364fb memory leak fix, address_space_to_flatview RCU fixes (me)
> * chardev memory leak fix (Peter)
> * checkpatch improvements (Julia, Su Hang)
> * next round of deprecation patches (Thomas)
>

Applied, thanks.

-- PMM