Misc patches for 2018-08-21
The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88:
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100)
are available in the Git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 07c8c1c9311b81cbf3bcc49d4fed18e1d889a8f2:
test-char: add socket reconnect test (2018-08-23 13:32:50 +0200)
I removed the offending patch.
----------------------------------------------------------------
* x86 TCG fixes for 64-bit call gates (Andrew)
* qumu-guest-agent freeze-hook tweak (Christian)
* pm_smbus improvements (Corey)
* Move validation to pre_plug for pc-dimm (David)
* Fix memory leaks (Eduardo, Marc-André)
* synchronization profiler (Emilio)
* Convert the CPU list to RCU (Emilio)
* LSI support for PPR Extended Message (George)
* vhost-scsi support for protection information (Greg)
* Mark mptsas as a storage device in the help (Guenter)
* checkpatch tweak cherry-picked from Linux (me)
* Typos, cleanups and dead-code removal (Julia, Marc-André)
* qemu-pr-helper support for old libmultipath (Murilo)
* Annotate fallthroughs (me)
* MemoryRegionOps cleanup (me, Peter)
* Make s390 qtests independent from libqos, which doesn't actually support it (me)
* Make cpu_get_ticks independent from BQL (me)
* Introspection fixes (Thomas)
* Support QEMU_MODULE_DIR environment variable (ryang)
----------------------------------------------------------------
Andrew Oates (2):
target-i386: Fix lcall/ljmp to call gate in IA-32e mode
target-i386: fix segment limit check in ljmp
Christian Ehrhardt (1):
qemu-guest-agent: freeze-hook to ignore dpkg files as well
Corey Minyard (8):
ipmi: Use proper struct reference for BT vmstate
i2c: pm_smbus: Clean up some style issues
i2c: pm_smbus: Fix the semantics of block I2C transfers
i2c: pm_smbus: Make the I2C block read command read-only
i2c: pm_smbus: Add block transfer capability
i2c: pm_smbus: Add interrupt handling
i2c: pm_smbus: Don't delay host status register busy bit when interrupts are enabled
i2c: pm_smbus: Add the ability to force block transfer enable
David Hildenbrand (4):
pc-dimm: assign and verify the "slot" property during pre_plug util/oslib-win32: indicate alignment for qemu_anon_ram_alloc()
pc: drop memory region alignment check for 0
pc-dimm: assign and verify the "addr" property during pre_plug
Eduardo Habkost (1):
i386: Fix arch_query_cpu_model_expansion() leak
Emilio G. Cota (20):
seqlock: constify seqlock_read_begin
qsp: QEMU's Synchronization Profiler
qsp: add sort_by option to qsp_report
qsp: add qsp_reset
qsp: support call site coalescing
qsp: track BQL callers explicitly tests/atomic_add-bench: add -p to enable sync profiler
vl: add -enable-sync-profile
hmp-commands: add sync-profile
hmp-commands-info: add sync-profile
rcu_queue: use atomic_set in QLIST_REMOVE_RCU
rcu_queue: remove barrier from QLIST_EMPTY_RCU
rcu_queue: add RCU QSIMPLEQ
rcu_queue: add RCU QTAILQ
test-rcu-list: access goflag with atomics
test-rcu-list: abstract the list implementation
tests: add test-list-simpleq
tests: add test-rcu-tailq
spapr: do not use CPU_FOREACH_REVERSE
qom: convert the CPU list to RCU
George Kennedy (1):
lsi_scsi: add support for PPR Extended Message
Greg Edwards (3):
vhost-user-scsi: move host_features into VHostSCSICommon
vhost-scsi: unify vhost-scsi get_features implementations
vhost-scsi: expose 't10_pi' property for VIRTIO_SCSI_F_T10_PI
Guenter Roeck (1):
scsi: mptsas: Mark as storage device
Heinrich Schuchardt (1):
checkpatch: allow space in more places before a bracket
Julia Suvorova (1):
chardev/char-fe: Fix typos
Marc-André Lureau (8):
megasas: fix sglist leak
update-linux-headers.sh: add qemu_fw_cfg.h
fw_cfg: import & use linux/qemu_fw_cfg.h
build-sys: remove glib_subprocess check
Revert "chardev: tcp: postpone TLS work until machine done" Revert "chardev: tcp: postpone async connection setup"
char-socket: update all ioc handlers when changing context
test-char: add socket reconnect test
Murilo Opsfelder Araujo (1):
qemu-pr-helper: Fix build on CentOS 7
Paolo Bonzini (11):
tests: virtio: separate ccw tests from libqos
es1370: simplify MemoryRegionOps
fix "Missing break in switch" coverity reports
checkpatch: fix filename detection when using -f
MAINTAINERS: add maintainers for qtest
cpus: protect all icount computation with seqlock
seqlock: add QemuLockable support
cpus: protect TimerState writes with a spinlock
cpus: allow cpu_get_ticks out of BQL target/i386: update MPX flags when CPL changes
KVM: cleanup unnecessary #ifdef KVM_CAP_...
Peter Maydell (1):
hw/intc/apic: Switch away from old_mmio
Prasad Singamsetty (1):
kvm: add call to qemu_add_opts() for -overcommit option
Thomas Huth (7):
tests/migration-test: Silence the kvm_hv message by default
net: Silence 'has no peer' messages in testing mode hw/timer/mc146818rtc: White space clean-up hw/timer/mc146818rtc: Fix introspection problem
tests: Skip old versioned machine types in quick testing mode tests/device-introspection: Check that the qom-tree and qtree do not change tests/device-introspect: Test with all machines, not only with "none"
ryang (1):
module: Use QEMU_MODULE_DIR as a search path
MAINTAINERS | 11 +- accel/kvm/kvm-all.c | 2 - chardev/char-socket.c | 86 ++- configure | 27 +- cpus-common.c | 4 +- cpus.c | 186 +++--- disas/m68k.c | 1 + dump.c | 2 +- hmp-commands-info.hx | 22 + hmp-commands.hx | 15 + hmp.c | 24 + hmp.h | 1 + hw/acpi/piix4.c | 2 +- hw/arm/pxa2xx.c | 2 +- hw/audio/cs4231a.c | 1 + hw/audio/es1370.c | 235 +------- hw/audio/gusemu_hal.c | 1 + hw/audio/sb16.c | 11 +- hw/display/cg3.c | 1 + hw/display/cirrus_vga.c | 3 +- hw/i2c/pm_smbus.c | 254 ++++++-- hw/i2c/smbus.c | 37 +- hw/i2c/smbus_ich9.c | 26 +- hw/i386/pc.c | 16 +- hw/intc/apic.c | 42 +- hw/ipmi/isa_ipmi_bt.c | 68 ++- hw/isa/vt82c686.c | 2 +- hw/mem/pc-dimm.c | 61 +- hw/misc/vmcoreinfo.c | 6 +- hw/ppc/prep.c | 3 + hw/ppc/spapr.c | 30 +- hw/scsi/lsi53c895a.c | 4 + hw/scsi/megasas.c | 2 +- hw/scsi/mptsas.c | 1 + hw/scsi/vhost-scsi-common.c | 3 + hw/scsi/vhost-scsi.c | 3 + hw/scsi/vhost-user-scsi.c | 28 +- hw/timer/mc146818rtc.c | 20 +- hw/timer/sh_timer.c | 1 + include/chardev/char-fe.h | 10 +- include/hw/i2c/pm_smbus.h | 24 +- include/hw/i2c/smbus.h | 17 +- include/hw/mem/pc-dimm.h | 5 +- include/hw/misc/vmcoreinfo.h | 12 +- include/hw/nvram/fw_cfg.h | 18 +- include/hw/nvram/fw_cfg_keys.h | 45 -- include/hw/virtio/vhost-scsi-common.h | 1 + include/hw/virtio/vhost-user-scsi.h | 1 - include/qemu/main-loop.h | 4 +- include/qemu/qht.h | 1 + include/qemu/qsp.h | 29 + include/qemu/rcu_queue.h | 135 ++++- include/qemu/seqlock.h | 22 +- include/qemu/thread-posix.h | 4 +- include/qemu/thread-win32.h | 5 +- include/qemu/thread.h | 66 ++- include/qom/cpu.h | 11 +- include/standard-headers/linux/qemu_fw_cfg.h | 97 ++++ linux-user/main.c | 2 +- linux-user/syscall.c | 2 +- monitor.c | 11 + pc-bios/optionrom/linuxboot_dma.c | 4 +- pc-bios/optionrom/optionrom.h | 15 +- qemu-options.hx | 10 + scripts/checkpatch.pl | 7 +- scripts/qemu-guest-agent/fsfreeze-hook | 2 +- scripts/update-linux-headers.sh | 4 +- scsi/qemu-pr-helper.c | 4 + stubs/iothread-lock.c | 2 +- target/arm/helper.c | 1 + target/i386/cpu.c | 9 +- target/i386/cpu.h | 7 +- target/i386/kvm.c | 8 - target/i386/seg_helper.c | 196 +++++-- target/i386/translate.c | 2 + target/s390x/cpu_models.c | 2 +- tests/Makefile.include | 15 +- tests/atomic_add-bench.c | 6 +- tests/boot-order-test.c | 2 +- tests/cpu-plug-test.c | 6 +- tests/device-introspect-test.c | 55 +- tests/fw_cfg-test.c | 2 +- tests/libqos/malloc-pc.c | 2 +- tests/libqtest.c | 52 +- tests/libqtest.h | 4 +- tests/migration-test.c | 20 +- tests/qom-test.c | 2 +- tests/test-char.c | 22 +- tests/test-hmp.c | 2 +- tests/test-rcu-list.c | 92 ++- tests/test-rcu-simpleq.c | 2 + tests/test-rcu-tailq.c | 2 + tests/test-x86-cpuid-compat.c | 6 - tests/vhost-user-test.c | 4 - tests/virtio-ccw-test.c | 110 ++++ util/Makefile.objs | 1 + util/module.c | 22 +- util/oslib-win32.c | 15 +- util/qemu-thread-win32.c | 4 +- util/qht.c | 47 +- util/qsp.c | 828 +++++++++++++++++++++++++++ vl.c | 7 +- 102 files changed, 2579 insertions(+), 790 deletions(-) delete mode 100644 include/hw/nvram/fw_cfg_keys.h create mode 100644 include/qemu/qsp.h create mode 100644 include/standard-headers/linux/qemu_fw_cfg.h create mode 100644 tests/test-rcu-simpleq.c create mode 100644 tests/test-rcu-tailq.c create mode 100644 tests/virtio-ccw-test.c create mode 100644 util/qsp.c
Signature · 1 line
2.17.1
Quoted 6 lines · Paolo Bonzini
The following changes since commit
659b11e7a7239529cfdb4968418268ff9aa22d88:Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100)
are available in the Git repository at:
Quoted 7 lines
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
07c8c1c9311b81cbf3bcc49d4fed18e1d889a8f2:test-char: add socket reconnect test (2018-08-23 13:32:50 +0200)
I removed the offending patch.
Test failure on FreeBSD:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} gtester -k --verbose -m=quick tests/test-char
TEST: tests/test-char... (pid=16190)
/char/null: OK /char/invalid: OK /char/ringbuf: OK /char/mux: OK /char/stdio: OK /char/pipe: OK /char/file: OK /char/file-fifo: OK /char/udp: OK /char/serial: OK /char/hotswap: OK /char/socket/basic: OK /char/socket/reconnect: FAIL
GTester: last random seed: R02S521380d9c12f1dac3ad1763bf5665c27 (pid=16367)
/char/socket/fdpass: OK
FAIL: tests/test-char
**
ERROR:tests/test-char.c:353:char_socket_test_common: assertion failed:
(object_property_get_bool(OBJECT(chr_client), "connected", &error_abort))
thanks
-- PMM
Quoted 33 lines · Peter Maydell
Quoted 6 lines · Paolo Bonzini
The following changes since commit
659b11e7a7239529cfdb4968418268ff9aa22d88:Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100)
are available in the Git repository at:
Quoted 7 lines
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
07c8c1c9311b81cbf3bcc49d4fed18e1d889a8f2:test-char: add socket reconnect test (2018-08-23 13:32:50 +0200)
I removed the offending patch.
Test failure on FreeBSD:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} gtester -k --verbose -m=quick tests/test-char
TEST: tests/test-char... (pid=16190)/char/null: OK /char/invalid: OK /char/ringbuf: OK /char/mux: OK /char/stdio: OK /char/pipe: OK /char/file: OK /char/file-fifo: OK /char/udp: OK /char/serial: OK /char/hotswap: OK /char/socket/basic: OK /char/socket/reconnect: FAIL
Quoted 8 lines
GTester: last random seed: R02S521380d9c12f1dac3ad1763bf5665c27 (pid=16367)
/char/socket/fdpass: OK
FAIL: tests/test-char
**
ERROR:tests/test-char.c:353:char_socket_test_common: assertion failed:
(object_property_get_bool(OBJECT(chr_client), "connected", &error_abort))
Fairly reproducible (I think it passed about once in 10 tries.) Backtrace, which looks bogus, probably due to compiler optimisation:
(gdb) bt
#0 0x0000000801ff884a in thr_kill () from /lib/libc.so.7 #1 0x0000000801ff8814 in raise () from /lib/libc.so.7 #2 0x0000000801ff8789 in abort () from /lib/libc.so.7 #3 0x0000000800d4e36c in g_assertion_message () from
/usr/local/lib/libglib-2.0.so.0
#4 0x0000000800d4e3ce in g_assertion_message_expr () from /usr/local/lib/libglib-2.0.so.0
#5 0x0000000000409a40 in char_socket_test_common (chr=0x802ea5100,
reconnect=<value optimized out>) at test-char.c:352
#6 0x0000000800d4deee in g_test_queue_destroy () from /usr/local/lib/libglib-2.0.so.0
#7 0x0000000800d4e14b in g_test_queue_destroy () from /usr/local/lib/libglib-2.0.so.0
#8 0x0000000800d4e14b in g_test_queue_destroy () from /usr/local/lib/libglib-2.0.so.0
#9 0x0000000800d4d2a3 in g_test_run_suite () from /usr/local/lib/libglib-2.0.so.0
#10 0x0000000800d4d1d8 in g_test_run () from /usr/local/lib/libglib-2.0.so.0 #11 0x00000000004074a4 in main (argc=1, argv=0x7fffffffebc8) at test-char.c:839
thanks
-- PMM
Hi
Quoted 34 lines · Peter Maydell
Quoted 6 lines · Paolo Bonzini
The following changes since commit
659b11e7a7239529cfdb4968418268ff9aa22d88:Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100)
are available in the Git repository at:
Quoted 7 lines
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
07c8c1c9311b81cbf3bcc49d4fed18e1d889a8f2:test-char: add socket reconnect test (2018-08-23 13:32:50 +0200)
I removed the offending patch.
Test failure on FreeBSD:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} gtester -k --verbose -m=quick tests/test-char
TEST: tests/test-char... (pid=16190)/char/null: OK /char/invalid: OK /char/ringbuf: OK /char/mux: OK /char/stdio: OK /char/pipe: OK /char/file: OK /char/file-fifo: OK /char/udp: OK /char/serial: OK /char/hotswap: OK /char/socket/basic: OK /char/socket/reconnect: FAIL
Quoted 9 lines
GTester: last random seed: R02S521380d9c12f1dac3ad1763bf5665c27 (pid=16367)
/char/socket/fdpass: OK
FAIL: tests/test-char
**
ERROR:tests/test-char.c:353:char_socket_test_common: assertion failed:
(object_property_get_bool(OBJECT(chr_client), "connected", &error_abort))
Hmm, it looks like a race that pre-existed char_socket_test_common(), we wait for the server to be connected, and check both client and server have the connected option set. It may be that the client hasn't yet processed the connection event.
Paolo, can you drop the test?
Quoted 3 lines
thanks
-- PMM
Signature · 1 line
Marc-André Lureau
Quoted 7 lines · Marc-André Lureau
Hmm, it looks like a race that pre-existed
char_socket_test_common(), we wait for the server to be connected, and check both client and server have the connected option set. It may be that the client hasn't yet processed the connection event.Paolo, can you drop the test?
Well, I dropped all the four patches. :)
Paolo