Re: [PATCH 1/2] char: Skip CLI aliases in query-chardev-backends

2020-11-13 Thread Markus Armbruster
Kevin Wolf writes: > Am 12.11.2020 um 09:22 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > The aliases "tty" and "parport" are only valid on the command line, QMP >> > commands like chardev-add don't know them. query-chardev-backends should >> > describe QMP and therefore not

[PATCH 05/10] ui: Improve a client_migrate_info error message

2020-11-13 Thread Markus Armbruster
client_migrate_info reports spice_server_migrate_connect() failure as "An undefined error has occurred". Improve to "Could not set up display for migration". QERR_UNDEFINED_ERROR is now unused. Drop. Cc: Gerd Hoffmann Signed-off-by: Markus Armbruster --- include/qapi/qmp/qerror.h | 3 --- mo

[PATCH 00/10] Chipping away at qerror.h

2020-11-13 Thread Markus Armbruster
Obviously not for 5.2. Please review anyway. Markus Armbruster (10): qerror: Drop unused QERR_ macros qerror: Eliminate QERR_ macros used in just one place block: Improve some block-commit, block-stream error messages ui: Improve some set_passwd, expire_password error messages ui: Impro

[PATCH 01/10] qerror: Drop unused QERR_ macros

2020-11-13 Thread Markus Armbruster
QERR_INVALID_BLOCK_FORMAT is dead since commit e6641719fe "block: Always pass NULL as drv for bdrv_open()", 2015-09-14. QERR_INVALID_PASSWORD is dead since commit c01c214b69 "block: remove all encryption handling APIs", 2017-07-11. Bury them. Signed-off-by: Markus Armbruster --- include/qapi/q

[PATCH 03/10] block: Improve some block-commit, block-stream error messages

2020-11-13 Thread Markus Armbruster
block-commit defaults @base-node to the deepest backing image. When there is none, it fails with "Base 'NULL' not found". Improve to "There is no backing image". block-commit and block-stream reject a @base argument that doesn't resolve with "Base 'BASE' not found". Commit 6b33f3ae8b "qemu-img:

[PATCH 07/10] qga: Replace an unreachable error by abort()

2020-11-13 Thread Markus Armbruster
check_suspend_mode()'s error message Parameter 'mode' expects GuestSuspendMode makes no sense to users: GuestSuspendMode is a C enum. Fortunately, it is unreachable. Replace it by abort(). Cc: Michael Roth Signed-off-by: Markus Armbruster --- qga/commands-win32.c | 3 +-- 1 file changed

[PATCH 09/10] qom: Improve {qom, device}-list-properties error messages

2020-11-13 Thread Markus Armbruster
qom-list-properties reports Parameter 'typename' expects device when @typename exists, but isn't a TYPE_DEVICE. Improve this to Parameter 'typename' expects a non-abstract device type device-list-properties reports Parameter 'typename' expects object when @typename exists, but is

[PATCH 08/10] qga: Tweak a guest-shutdown error message

2020-11-13 Thread Markus Armbruster
Change Parameter 'mode' expects halt|powerdown|reboot to Parameter 'mode' expects 'halt', 'powerdown', or 'reboot' for consistency with similar error messages elsewhere. Cc: Michael Roth Signed-off-by: Markus Armbruster --- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 10/10] Tweak a few "Parameter 'NAME' expects THING" error message

2020-11-13 Thread Markus Armbruster
Change to "expects a THING" where that's an obvious improvement Signed-off-by: Markus Armbruster --- block/quorum.c | 2 +- blockdev.c | 2 +- chardev/char.c | 2 +- hw/core/qdev-properties-system.c | 2 +- softmmu/qdev-monitor.c

[PATCH 02/10] qerror: Eliminate QERR_ macros used in just one place

2020-11-13 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- include/qapi/qmp/qerror.h | 9 - monitor/misc.c| 8 net/net.c | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.h index 3eabd451d8..c272e3fc2

[PATCH 04/10] ui: Improve some set_passwd, expire_password error messages

2020-11-13 Thread Markus Armbruster
set_passwd and expire_password reject invalid "protocol" with "Invalid parameter 'protocol'". Misleading; the parameter is valid, its value isn't. Improve to "Parameter 'protocol' expects 'vnc' or 'spice'". expire_password fails with "Could not set password". Misleading; improve to "Could not s

[PATCH 06/10] ui: Tweak a client_migrate_info error message

2020-11-13 Thread Markus Armbruster
Change Parameter 'protocol' expects spice to Parameter 'protocol' expects 'spice' for consistency with similar error messages elsewhere. Cc: Gerd Hoffmann Signed-off-by: Markus Armbruster --- monitor/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/

Re: [PATCH] Clean up includes

2020-11-13 Thread Paolo Bonzini
On 13/11/20 07:12, Markus Armbruster wrote: 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/plugins/, tests/plugin/

Re: [PATCH 09/10] qom: Improve {qom,device}-list-properties error messages

2020-11-13 Thread Paolo Bonzini
On 13/11/20 09:26, Markus Armbruster wrote: qom-list-properties reports Parameter 'typename' expects device when @typename exists, but isn't a TYPE_DEVICE. Improve this to Parameter 'typename' expects a non-abstract device type device-list-properties reports Parameter 'typena

Re: [PATCH] Clean up includes

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > 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/libv

Re: [PATCH] Clean up includes

2020-11-13 Thread Thomas Huth
On 13/11/2020 07.12, Markus Armbruster wrote: > 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/libvh

Re: [PATCH] hmp: Update current monitor acts on the entire handle_hmp_command()

2020-11-13 Thread Kevin Wolf
Am 13.11.2020 um 12:13 hat lichun geschrieben: > monitor_parse_arguments() also need to known the current monitoar: > (gdb) bt > #0 0x55ac6a6d in mon_get_cpu_sync (mon=0x0, > synchronize=synchronize@entry=true) at ../monitor/misc.c:270 > #1 0x55ac6b4a in mon_get_cpu () at ../m

RE: [PATCH v6] introduce vfio-user protocol specification

2020-11-13 Thread Thanos Makatos
> +Version Data Format > +^^^ > + > +The version data is an optional JSON byte array with the following format: > + > ++--+--+---+ > +| Name | Type | Description >

Re: [PATCH 2/2] authz-list-file: Improve an error message

2020-11-13 Thread Daniel P . Berrangé
On Fri, Nov 13, 2020 at 07:23:58AM +0100, Markus Armbruster wrote: > When qauthz_list_file_load() rejects JSON values other than JSON > object with a rather confusing error message: > > $ echo 1 | qemu-system-x86_64 -nodefaults -S -display none -object > authz-list-file,id=authz0,filename=/d

Re: [PATCH 1/2] authz-list-file: Fix file read error handling

2020-11-13 Thread Daniel P . Berrangé
On Fri, Nov 13, 2020 at 07:23:57AM +0100, Markus Armbruster wrote: > The Error ** argument must be NULL, &error_abort, &error_fatal, or a > pointer to a variable containing NULL. Passing an argument of the > latter kind twice without clearing it in between is wrong: if the > first call sets an err

Re: [Qemu-devel] [PULL 8/8] target/mips: Preparing for adding MMI instructions

2020-11-13 Thread Philippe Mathieu-Daudé
Hi Mateja, (Cc'ing Fredrik) On 2/27/19 3:00 PM, Aleksandar Markovic wrote: > From: Mateja Marjanovic > > Set up MMI code to be compiled only for TARGET_MIPS64. This is > needed so that GPRs are 64 bit, and combined with MMI registers, > they will form full 128 bit registers. > > Signed-off-by:

Re: [PATCH 5/6] qapi: Add support for aliases

2020-11-13 Thread Kevin Wolf
Am 12.11.2020 um 19:34 hat Eric Blake geschrieben: > On 11/12/20 11:28 AM, Kevin Wolf wrote: > > Introduce alias definitions for object types (structs and unions). This > > allows using the same QAPI type and visitor for many syntax variations > > that exist in the external representation, like bet

Re: [PATCH] Clean up includes

2020-11-13 Thread Cornelia Huck
On Fri, 13 Nov 2020 07:12:16 +0100 Markus Armbruster wrote: > 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: > >

Re: [PATCH] docs: Better mention of qemu-img amend limitations

2020-11-13 Thread Kevin Wolf
Am 23.09.2020 um 22:37 hat Eric Blake geschrieben: > Missed during merge resolution of commit bc5ee6da71. > > Signed-off-by: Eric Blake > --- > docs/tools/qemu-img.rst | 4 > 1 file changed, 4 insertions(+) > > diff --git a/docs/tools/qemu-img.rst b/docs/tools/qemu-img.rst > index c35bd648

[PATCH v2] target/i386: seg_helper: Correct segement selector nullification in the RET/IRET helper

2020-11-13 Thread Bin Meng
From: Bin Meng Per the SDM, when returning to outer privilege level, for segment registers (ES, FS, GS, and DS) if the check fails, the segment selector becomes null, but QEMU clears the base/limit/flags as well as nullifying the segment selector, which should be a spec violation. Real hardware

[PATCH] arm/monitor: Add support for 'info tlb' command

2020-11-13 Thread Changbin Du
This adds hmp 'info tlb' command support for the arm platform. The limitation is that this only implements a page walker for ARMv8-A AArch64 Long Descriptor format, 32bit addressing is not supported yet. Signed-off-by: Changbin Du --- hmp-commands-info.hx | 3 +- target/arm/helper.c| 17

Re: [PATCH] arm/monitor: Add support for 'info tlb' command

2020-11-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20201113095854.67668-1-changbin...@gmail.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20201113095854.67668-1-changbin...@gmail.com Type: series Subject: [PATCH] arm/monitor: Add support

[PATCH for-5.2] iotests: Replace deprecated ConfigParser.readfp()

2020-11-13 Thread Kevin Wolf
iotest 277 fails on Fedora 33 (Python 3.9) because a deprecation warning changes the output: nbd-fault-injector.py:230: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead. In fact, readfp() has already been deprecated in Python 3.2 and th

Re: [PATCH 0/2] RFC: Issue with discards on raw block device without O_DIRECT

2020-11-13 Thread Jan Kara
On Thu 12-11-20 17:38:36, Maxim Levitsky wrote: > On Thu, 2020-11-12 at 12:19 +0100, Jan Kara wrote: > > [added some relevant people and lists to CC] > > > > On Wed 11-11-20 17:44:05, Maxim Levitsky wrote: > > > On Wed, 2020-11-11 at 17:39 +0200, Maxim Levitsky wrote: > > > > clone of "starship_pr

Re: [PATCH v2 1/2] fuzz: add virtio-blk fuzz target

2020-11-13 Thread Dima Stepanov
On Mon, Nov 09, 2020 at 01:24:20PM +0100, Thomas Huth wrote: > On 09/11/2020 12.25, Dima Stepanov wrote: > > The virtio-blk fuzz target sets up and fuzzes the available virtio-blk > > queues. The implementation is based on two files: > > - tests/qtest/fuzz/virtio_scsi_fuzz.c > > - tests/qtest/v

Re: [PATCH] arm/monitor: Add support for 'info tlb' command

2020-11-13 Thread Peter Maydell
On Fri, 13 Nov 2020 at 09:59, Changbin Du wrote: > > This adds hmp 'info tlb' command support for the arm platform. > The limitation is that this only implements a page walker for > ARMv8-A AArch64 Long Descriptor format, 32bit addressing is > not supported yet. "info tlb" needs its own entirely

Re: [PATCH v3 2/4] ads7846: put it into the 'input' category

2020-11-13 Thread Peter Maydell
On Fri, 13 Nov 2020 at 03:32, Gan Qixin wrote: > > The category of the ads7846 device is not set, put it into the 'input' > category. > > Signed-off-by: Gan Qixin > --- > Cc: Peter Maydell > --- > hw/display/ads7846.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/display/ads7846

[PATCH v2 002/122] arm: do not use ram_size global

2020-11-13 Thread Paolo Bonzini
Use the machine properties instead. Cc: qemu-...@nongnu.org Signed-off-by: Paolo Bonzini --- hw/arm/aspeed.c | 8 hw/display/pxa2xx_lcd.c | 5 +++-- target/arm/arm-semi.c | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c

[PATCH v2 003/122] cris: do not use ram_size global

2020-11-13 Thread Paolo Bonzini
Use the machine properties instead. Signed-off-by: Paolo Bonzini --- hw/cris/axis_dev88.c | 1 + hw/cris/boot.c | 2 +- hw/cris/boot.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/cris/axis_dev88.c b/hw/cris/axis_dev88.c index dab7423c73..b0cb6d84af 100644

[PATCH v2 005/122] i386: do not use ram_size global

2020-11-13 Thread Paolo Bonzini
Use the loader parameters instead. Signed-off-by: Paolo Bonzini --- hw/i386/fw_cfg.c | 2 +- hw/i386/vmport.c | 3 ++- hw/i386/xen/xen-hvm.c | 2 +- hw/intc/apic_common.c | 3 ++- hw/smbios/smbios.c| 8 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/i38

[PATCH v2 001/122] vl: remove bios_name

2020-11-13 Thread Paolo Bonzini
bios_name was a legacy variable used by machine code, but it is no more. Signed-off-by: Paolo Bonzini Reviewed-by: Alex Bennée Message-Id: <20201026143028.3034018-16-pbonz...@redhat.com> Signed-off-by: Paolo Bonzini --- include/sysemu/sysemu.h | 1 - softmmu/vl.c| 2 -- 2 files cha

[PATCH v2 006/122] m68k: do not use ram_size global

2020-11-13 Thread Paolo Bonzini
Use the machine properties instead. Cc: Laurent Vivier Signed-off-by: Paolo Bonzini --- hw/m68k/mcf5206.c | 4 +++- hw/m68k/mcf5208.c | 3 ++- target/m68k/m68k-semi.c | 5 +++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/m68k/mcf5206.c b/hw/m68k/mcf5206.c inde

[PATCH v2 004/122] hppa: do not use ram_size global

2020-11-13 Thread Paolo Bonzini
Use the machine properties instead. Cc: Richard Henderson Signed-off-by: Paolo Bonzini --- hw/hppa/machine.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 5e745d5ea9..7e41cb2462 100644 --- a/hw/hppa/machine.c +++ b/hw/

Re: [PATCH v2] digic: remove bios_name

2020-11-13 Thread Peter Maydell
On Fri, 13 Nov 2020 at 10:17, Paolo Bonzini wrote: > > Pull defaults to digic4_board_init so that a MachineState is available. > > Cc: Peter Maydell > Signed-off-by: Paolo Bonzini > --- > hw/arm/digic_boards.c | 19 +++ > 1 file changed, 7 insertions(+), 12 deletions(-) Reviewe

[PATCH v2] digic: remove bios_name

2020-11-13 Thread Paolo Bonzini
Pull defaults to digic4_board_init so that a MachineState is available. Cc: Peter Maydell Signed-off-by: Paolo Bonzini --- hw/arm/digic_boards.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index d5524d3e7

Re: [PATCH v2] target/i386: seg_helper: Correct segement selector nullification in the RET/IRET helper

2020-11-13 Thread Bin Meng
Hi Paolo, On Fri, Nov 13, 2020 at 6:18 PM Paolo Bonzini wrote: > > On 13/11/20 10:56, Bin Meng wrote: > > From: Bin Meng > > > > Per the SDM, when returning to outer privilege level, for segment > > registers (ES, FS, GS, and DS) if the check fails, the segment > > selector becomes null, but QEM

Re: [PATCH v2] target/i386: seg_helper: Correct segement selector nullification in the RET/IRET helper

2020-11-13 Thread Paolo Bonzini
On 13/11/20 10:56, Bin Meng wrote: From: Bin Meng Per the SDM, when returning to outer privilege level, for segment registers (ES, FS, GS, and DS) if the check fails, the segment selector becomes null, but QEMU clears the base/limit/flags as well as nullifying the segment selector, which should

[PATCH v2] net/e1000e_core: adjust count if RDH exceeds RDT in e1000e_ring_advance()

2020-11-13 Thread Mauro Matteo Cascella
The e1000e_write_packet_to_guest() function iterates over a set of receive descriptors by advancing rx descriptor head register (RDH) from its initial value to rx descriptor tail register (RDT). The check in e1000e_ring_empty() is responsible for detecting whether RDH has reached RDT, terminating t

Re: [PATCH v2] digic: remove bios_name

2020-11-13 Thread Paolo Bonzini
On 13/11/20 11:22, Peter Maydell wrote: Pull defaults to digic4_board_init so that a MachineState is available. Cc: Peter Maydell Signed-off-by: Paolo Bonzini --- hw/arm/digic_boards.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) Reviewed-by: Peter Maydell Did

Re: [PATCH v2] target/i386: seg_helper: Correct segement selector nullification in the RET/IRET helper

2020-11-13 Thread Paolo Bonzini
On 13/11/20 11:23, Bin Meng wrote: It would be nicer if the commit message explained how the guest can notice the difference. The commit message says "Per the SDM" :) The actual failure case involves a special code sequence that is exposed in VxWorks guest testing. Linux does not expose this ho

Re: [PATCH 3/6] migration: Clean up signed vs. unsigned XBZRLE cache-size

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > 73af8dd8d7 "migration: Make xbzrle_cache_size a migration > parameter" (v2.11.0) made the new parameter unsigned (QAPI type > 'size', uint64_t in C). It neglected to update existing code, which > continues to use int64_t. > > migrate_xbzrle_cache_s

Re: [PATCH v2] digic: remove bios_name

2020-11-13 Thread Peter Maydell
On Fri, 13 Nov 2020 at 10:37, Paolo Bonzini wrote: > > On 13/11/20 11:22, Peter Maydell wrote: > >> Pull defaults to digic4_board_init so that a MachineState is available. > >> > >> Cc: Peter Maydell > >> Signed-off-by: Paolo Bonzini > >> --- > >> hw/arm/digic_boards.c | 19 +++ >

Re: [PATCH v2 006/122] m68k: do not use ram_size global

2020-11-13 Thread Thomas Huth
On 13/11/2020 11.15, Paolo Bonzini wrote: > Use the machine properties instead. > > Cc: Laurent Vivier > Signed-off-by: Paolo Bonzini > --- > hw/m68k/mcf5206.c | 4 +++- > hw/m68k/mcf5208.c | 3 ++- > target/m68k/m68k-semi.c | 5 +++-- > 3 files changed, 8 insertions(+), 4 deletions

Re: [PULL 00/11] migration queue

2020-11-13 Thread Peter Maydell
On Thu, 12 Nov 2020 at 18:41, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > The following changes since commit cb5d19e8294486551c422759260883ed290226d9: > > Merge remote-tracking branch 'remotes/mcayland/tags/qemu-macppc-20201112' > into staging (2020-11-12 11:33:2

Re: [PATCH 4/6] migration: Check xbzrle-cache-size more carefully

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > migrate-set-parameters passes the size to xbzrle_cache_resize(). > xbzrle_cache_resize() checks it fits into size_t before it passes it > on to cache_init(). cache_init() checks it is a power of two no > smaller than @page_size. > > cache_init() is

Re: [PATCH 5/6] migration: Fix cache_init()'s "Failed to allocate" error messages

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > cache_init() attempts to handle allocation failure.. The two error > messages are garbage, as untested error messages commonly are: > > Parameter 'cache size' expects Failed to allocate cache > Parameter 'cache size' expects Failed to alloc

Re: [PATCH] hmp: Update current monitor acts on the entire handle_hmp_command()

2020-11-13 Thread lichun
>Am 13.11.2020 um 12:13 hat lichun geschrieben: >> monitor_parse_arguments() also need to known the current monitoar: >>  (gdb) bt >>  #0  0x55ac6a6d in mon_get_cpu_sync (mon=0x0, >>synchronize=synchronize@entry=true) at ../monitor/misc.c:270 >>  #1  0x55ac6b4a in mon_get_cpu () at

RE: [PATCH v3 2/4] ads7846: put it into the 'input' category

2020-11-13 Thread ganqixin
> -Original Message- > From: Peter Maydell [mailto:peter.mayd...@linaro.org] > Sent: Friday, November 13, 2020 6:13 PM > To: ganqixin > Cc: QEMU Developers ; QEMU Trivial > ; Thomas Huth ; Laurent > Vivier ; Philippe Mathieu-Daudé ; > Markus Armbruster ; Michael S. Tsirkin > ; Chenqun (kuh

Re: [PATCH v2 006/122] m68k: do not use ram_size global

2020-11-13 Thread Paolo Bonzini
On 13/11/20 11:44, Thomas Huth wrote: On 13/11/2020 11.15, Paolo Bonzini wrote: Use the machine properties instead. Cc: Laurent Vivier Signed-off-by: Paolo Bonzini Thanks -- of course this was just an unintentional send, but I'll note your Reviewed-by nevertheless. Paolo Reviewed-by: T

Re: [PATCH v3 09/53] qdev: Make qdev_get_prop_ptr() get Object* arg

2020-11-13 Thread Cornelia Huck
On Thu, 12 Nov 2020 16:43:06 -0500 Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Reviewed-by: Marc-André Lureau > Signed-off-by: Eduardo Habkost > --- > Changes v1 -> v2: > - Fix build error with CONFIG_XEN > I took the liberty of keeping the Review

Re: [PATCH v3 12/53] qdev: Make error_set_from_qdev_prop_error() get Object* argument

2020-11-13 Thread Cornelia Huck
On Thu, 12 Nov 2020 16:43:09 -0500 Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Reviewed-by: Marc-André Lureau > Signed-off-by: Eduardo Habkost > --- > Cc: Paolo Bonzini > Cc: "Daniel P. Berrangé" > Cc: Eduardo Habkost > Cc: Cornelia Huck > Cc: T

Re: [PATCH 6/6] migration: Fix a few absurdly defective error messages

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > migrate_params_check() has a number of error messages of the form > > Parameter 'NAME' expects is invalid, it should be ... > > Fix them to something like > > Parameter 'NAME' expects a ... > > Signed-off-by: Markus Armbruster Reviewed-

Re: [PULL 0/1] vfio fix for QEMU 5.2-rc2

2020-11-13 Thread Peter Maydell
On Thu, 12 Nov 2020 at 23:07, Alex Williamson wrote: > > The following changes since commit cb5d19e8294486551c422759260883ed290226d9: > > Merge remote-tracking branch 'remotes/mcayland/tags/qemu-macppc-20201112' > into staging (2020-11-12 11:33:26 +) > > are available in the Git repository

Re: [PATCH v3 1/2] quorum: Implement bdrv_co_block_status()

2020-11-13 Thread Max Reitz
On 11.11.20 17:53, Alberto Garcia wrote: The quorum driver does not implement bdrv_co_block_status() and because of that it always reports to contain data even if all its children are known to be empty. One consequence of this is that if we for example create a quorum with a size of 10GB and we

[PATCH for-5.2 0/3] hmp: Fix arg evaluation crash (regression)

2020-11-13 Thread Kevin Wolf
When I restricted the section where the current monitor is set to only the command handler, I missed that monitor_parse_arguments() can use it indirectly, too, when evaluating register variables. These cases get NULL now and crash (easy to reproduce with "x $pc"). This series passes the right moni

[PATCH for-5.2 2/3] hmp: Pass monitor to MonitorDef.get_value()

2020-11-13 Thread Kevin Wolf
All of these callbacks use mon_get_cpu_env(). Pass the Monitor pointer to them it in preparation for adding a monitor argument to mon_get_cpu_env(). Signed-off-by: Kevin Wolf --- include/monitor/hmp-target.h | 3 ++- monitor/misc.c | 2 +- target/i386/monitor.c| 3 ++- t

[PATCH for-5.2 1/3] hmp: Pass monitor to mon_get_cpu()

2020-11-13 Thread Kevin Wolf
mon_get_cpu() is indirectly called monitor_parse_arguments() where the current monitor isn't set yet. Instead of using monitor_cur(), explicitly pass the Monitor pointer to the function. Signed-off-by: Kevin Wolf --- include/monitor/hmp-target.h | 2 +- monitor/monitor-internal.h | 2 +- mon

[PATCH for-5.2 3/3] hmp: Pass monitor to mon_get_cpu_env()

2020-11-13 Thread Kevin Wolf
mon_get_cpu_env() is indirectly called monitor_parse_arguments() where the current monitor isn't set yet. Instead of using monitor_cur_env(), explicitly pass the Monitor pointer to the function. Without this fix, an HMP command like "x $pc" crashes like this: #0 0x55caa01f in mon_get_c

Re: [PATCH v3 2/2] quorum: Implement bdrv_co_pwrite_zeroes()

2020-11-13 Thread Max Reitz
On 11.11.20 17:53, Alberto Garcia wrote: This simply calls bdrv_co_pwrite_zeroes() in all children Signed-off-by: Alberto Garcia --- block/quorum.c | 18 -- tests/qemu-iotests/312 | 7 +++ tests/qemu-iotests/312.out | 4 3 files changed, 27 insert

Re: [PATCH 2/6] migration: Fix migrate-set-parameters argument validation

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > Commit 741d4086c8 "migration: Use proper types in json" (v2.12.0) > switched MigrationParameters to narrower integer types, and removed > the simplified qmp_migrate_set_parameters()'s argument checking > accordingly. > > Good idea, except qmp_migrat

Re: [PATCH 08/13] char: Add mux option to ChardevOptions

2020-11-13 Thread Paolo Bonzini
On 12/11/20 18:59, Kevin Wolf wrote: The final missing piece to achieve compatibility between qemu_chr_parse_cli_str()/qemu_chr_new_cli() and the legacy command line is support for the 'mux' option. Implement it. Signed-off-by: Kevin Wolf --- qapi/char.json | 4 +++- chardev/char.c | 41

Re: [PATCH 1/6] migration: Fix and clean up around @tls-authz

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > Commit d2f1d29b95 "migration: add support for a "tls-authz" migration > parameter" added MigrationParameters member @tls-authz. Whereas the > other members aren't really optional (see commit 1bda8b3c695), this > one is genuinely optional: migration_

Re: [PATCH 0/6] migration: Fixes and cleanups aroung migrate-set-parameters

2020-11-13 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > Not sure about 5.2. The bugs aren't recent regressions. Lets leave it till 5.3 > Markus Armbruster (6): > migration: Fix and clean up around @tls-authz > migration: Fix migrate-set-parameters argument validation > migration: Clean up signed

Re: [PATCH for-5.2 0/3] hmp: Fix arg evaluation crash (regression)

2020-11-13 Thread Dr. David Alan Gilbert
* Kevin Wolf (kw...@redhat.com) wrote: > When I restricted the section where the current monitor is set to only > the command handler, I missed that monitor_parse_arguments() can use it > indirectly, too, when evaluating register variables. These cases get > NULL now and crash (easy to reproduce wi

[PULL 5/6] hw/display/cirrus_vga: Fix hexadecimal format string specifier

2020-11-13 Thread Gerd Hoffmann
From: Philippe Mathieu-Daudé The '%u' conversion specifier is for decimal notation. When prefixing a format with '0x', we want the hexadecimal specifier ('%x'). Inspired-by: Dov Murik Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Dr. David Alan Gilbert Message-id: 20201103112558.2554390-

[PULL 4/6] hw/display/cirrus_vga: Remove debugging code commented out

2020-11-13 Thread Gerd Hoffmann
From: Philippe Mathieu-Daudé Commit ec87f206d70 ("cirrus: replace debug printf with trace points") forgot to remove this code once replaced. Do it now. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Dr. David Alan Gilbert Message-id: 20201103112558.2554390-2-phi...@redhat.com Signed-off-by

[PULL 0/6] Fixes 20201113 patches

2020-11-13 Thread Gerd Hoffmann
The following changes since commit cb5d19e8294486551c422759260883ed290226d9: Merge remote-tracking branch 'remotes/mcayland/tags/qemu-macppc-20201112' i= nto staging (2020-11-12 11:33:26 +) are available in the Git repository at: git://git.kraxel.org/qemu tags/fixes-202

[PULL 3/6] hw/usb/Kconfig: Fix USB_XHCI_NEC (depends on USB_XHCI_PCI)

2020-11-13 Thread Gerd Hoffmann
From: Philippe Mathieu-Daudé Since commit 755fba11fbc and 8ddab8dd3d8 we can not build USB_XHCI_NEC without USB_XHCI_PCI. Correct the Kconfig dependency. Fixes: 755fba11fbc ("usb/hcd-xhci: Move qemu-xhci device to hcd-xhci-pci.c") Reviewed-by: Sai Pavan Boddu Reviewed-by: Richard Henderson Sig

[PULL 6/6] xhci: fix nec-usb-xhci properties

2020-11-13 Thread Gerd Hoffmann
Storing properties directly in XHCIPciState.xhci doesn't work, the object_initialize_child() call in xhci_instance_init() will overwrite them. This changes the defaults for some properties, which in turn breaks live migration and possibly other things as well. So add XHCINecState, store propertie

Re: [PULL for-5.2 0/1] MAINTAINERS: Replace my twiddle.net address

2020-11-13 Thread Peter Maydell
On Fri, 13 Nov 2020 at 04:40, Richard Henderson wrote: > > The following changes since commit cb5d19e8294486551c422759260883ed290226d9: > > Merge remote-tracking branch 'remotes/mcayland/tags/qemu-macppc-20201112' > into staging (2020-11-12 11:33:26 +) > > are available in the Git repositor

[PULL 1/6] audio/jack: fix use after free segfault

2020-11-13 Thread Gerd Hoffmann
From: Geoffrey McRae This change registers a bottom handler to close the JACK client connection when a server shutdown signal is received. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae Reviewed-by: Christian Schoeneb

[PULL 2/6] console: avoid passing con=NULL to graphic_hw_update_done()

2020-11-13 Thread Gerd Hoffmann
From: lichun In graphic_hw_update(), first select an existing console, a specific-console or active_console(if not specified), then updating the console. Signed-off-by: lichun Message-id: 1604682219-114389-1-git-send-email-lic...@ruijie.com.cn Signed-off-by: Gerd Hoffmann --- ui/console.c | 5

Re: [PATCH for-5.2 0/3] hmp: Fix arg evaluation crash (regression)

2020-11-13 Thread Kevin Wolf
Am 13.11.2020 um 13:13 hat Dr. David Alan Gilbert geschrieben: > * Kevin Wolf (kw...@redhat.com) wrote: > > When I restricted the section where the current monitor is set to only > > the command handler, I missed that monitor_parse_arguments() can use it > > indirectly, too, when evaluating registe

Re: [PATCH for-5.2 0/3] hmp: Fix arg evaluation crash (regression)

2020-11-13 Thread Dr. David Alan Gilbert
* Kevin Wolf (kw...@redhat.com) wrote: > Am 13.11.2020 um 13:13 hat Dr. David Alan Gilbert geschrieben: > > * Kevin Wolf (kw...@redhat.com) wrote: > > > When I restricted the section where the current monitor is set to only > > > the command handler, I missed that monitor_parse_arguments() can use

Re: [PATCH for-5.2 0/3] hmp: Fix arg evaluation crash (regression)

2020-11-13 Thread Dr. David Alan Gilbert
* Kevin Wolf (kw...@redhat.com) wrote: > When I restricted the section where the current monitor is set to only > the command handler, I missed that monitor_parse_arguments() can use it > indirectly, too, when evaluating register variables. These cases get > NULL now and crash (easy to reproduce wi

Re: [PATCH 2/2] authz-list-file: Improve an error message

2020-11-13 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Fri, Nov 13, 2020 at 07:23:58AM +0100, Markus Armbruster wrote: >> When qauthz_list_file_load() rejects JSON values other than JSON >> object with a rather confusing error message: >> >> $ echo 1 | qemu-system-x86_64 -nodefaults -S -display none -object >> a

[PATCH 1/5] block/prl-xml: add Parallels xml BlockDriver

2020-11-13 Thread Vladimir Sementsov-Ogievskiy
From: Klim Kireev This patch introduces new BlockDriver: prl-xml. It adds opening and closing capabilities. All operations are performed using libxml2. Signed-off-by: Klim Kireev --- block/prl-xml.c | 492 block/Makefile.objs | 5 +- 2 files c

[PATCH 3/5] block/prl-xml: add bdrv_probe

2020-11-13 Thread Vladimir Sementsov-Ogievskiy
From: Klim Kireev This commit adds bdrv_probe implementation. It checks the filename (it must be DiskDescriptor.xml). Then it checks correctness of the xml file using libxml2. Signed-off-by: Klim Kireev --- block/prl-xml.c | 25 + 1 file changed, 25 insertions(+) diff

[PATCH 2/5] block/prl-xml: add bdrv_co_readv/writev and flush

2020-11-13 Thread Vladimir Sementsov-Ogievskiy
From: Klim Kireev This commit adds bdrv_co_readv, bdrv_co_writev, and bdrv_co_flush_to_os implementation. It merely passes these functions down to top BlockDriverState in the snapshot chain. Signed-off-by: Klim Kireev Signed-off-by: Edgar Kaziakhmedov Reviewed-by: Vladimir Sementsov-Ogievskiy

[PATCH 5/5] iotests: add test for prl-xml format

2020-11-13 Thread Vladimir Sementsov-Ogievskiy
From: Edgar Kaziakhmedov Signed-off-by: Edgar Kaziakhmedov Reviewed-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/164| 98 ++ tests/qemu-iotests/164.out| 54 ++ tests/qemu-iotests/check | 7 +

[PATCH 4/5] block/prl-xml: add bdrv_check

2020-11-13 Thread Vladimir Sementsov-Ogievskiy
From: Klim Kireev Add bdrv_check, which just checks child image and all backings. Signed-off-by: Klim Kireev --- block/prl-xml.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/block/prl-xml.c b/block/prl-xml.c index 023651342c..736cd98469 100644 --- a/block/prl-xml.c +

[PULL 1/3] hmp: Pass monitor to mon_get_cpu()

2020-11-13 Thread Dr. David Alan Gilbert (git)
From: Kevin Wolf mon_get_cpu() is indirectly called monitor_parse_arguments() where the current monitor isn't set yet. Instead of using monitor_cur(), explicitly pass the Monitor pointer to the function. Signed-off-by: Kevin Wolf Message-Id: <20201113114326.97663-2-kw...@redhat.com> Reviewed-by

[PULL 3/3] hmp: Pass monitor to mon_get_cpu_env()

2020-11-13 Thread Dr. David Alan Gilbert (git)
From: Kevin Wolf mon_get_cpu_env() is indirectly called monitor_parse_arguments() where the current monitor isn't set yet. Instead of using monitor_cur_env(), explicitly pass the Monitor pointer to the function. Without this fix, an HMP command like "x $pc" crashes like this: #0 0x55

[PULL 0/3] hmp queue

2020-11-13 Thread Dr. David Alan Gilbert (git)
b.com/dagrh/qemu.git tags/pull-hmp-20201113 for you to fetch changes up to e7cff9c68d4a46343861fbc3cc6b2a0b63b2dbb8: hmp: Pass monitor to mon_get_cpu_env() (2020-11-13 12:45:51 +) HMP fixe

[PULL 2/3] hmp: Pass monitor to MonitorDef.get_value()

2020-11-13 Thread Dr. David Alan Gilbert (git)
From: Kevin Wolf All of these callbacks use mon_get_cpu_env(). Pass the Monitor pointer to them it in preparation for adding a monitor argument to mon_get_cpu_env(). Signed-off-by: Kevin Wolf Message-Id: <20201113114326.97663-3-kw...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-b

Re: [PATCH] arm/monitor: Add support for 'info tlb' command

2020-11-13 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > On Fri, 13 Nov 2020 at 09:59, Changbin Du wrote: > > > > This adds hmp 'info tlb' command support for the arm platform. > > The limitation is that this only implements a page walker for > > ARMv8-A AArch64 Long Descriptor format, 32bit addressing

[PATCH RFC 0/5] block: implement Parallels Disk format driver

2020-11-13 Thread Vladimir Sementsov-Ogievskiy
Hi all! I just send these old patches as they can be useful. I'm not the author of the code and not going to discuss them. "RFC" is here just to mark the series as "not-for-applying-to-master". So, please don't answer here. If you want to continue this work, post v2 first. Virtuozzo doesn't have

Re: [PATCH 08/13] char: Add mux option to ChardevOptions

2020-11-13 Thread Kevin Wolf
Am 13.11.2020 um 12:50 hat Paolo Bonzini geschrieben: > On 12/11/20 18:59, Kevin Wolf wrote: > > The final missing piece to achieve compatibility between > > qemu_chr_parse_cli_str()/qemu_chr_new_cli() and the legacy command line > > is support for the 'mux' option. Implement it. > > > > Signed-of

Re: [PATCH 2/6] migration: Fix migrate-set-parameters argument validation

2020-11-13 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: >> Commit 741d4086c8 "migration: Use proper types in json" (v2.12.0) >> switched MigrationParameters to narrower integer types, and removed >> the simplified qmp_migrate_set_parameters()'s argument checking >> accor

Re: [PATCH 03/10] block: Improve some block-commit, block-stream error messages

2020-11-13 Thread Max Reitz
On 13.11.20 09:26, Markus Armbruster wrote: block-commit defaults @base-node to the deepest backing image. When there is none, it fails with "Base 'NULL' not found". Improve to "There is no backing image". block-commit and block-stream reject a @base argument that doesn't resolve with "Base 'B

[PATCH] tests: add prefixes to the bare mkdtemp calls

2020-11-13 Thread Alex Bennée
The first step to debug a thing is to know what created the thing in the first place. Add some prefixes so random tmpdir's have something grep in the code. Signed-off-by: Alex Bennée --- python/qemu/machine.py| 2 +- tests/acceptance/avocado_qemu/__init__.py | 2 +- 2 files c

Re: [PATCH 4/6] migration: Check xbzrle-cache-size more carefully

2020-11-13 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: >> migrate-set-parameters passes the size to xbzrle_cache_resize(). >> xbzrle_cache_resize() checks it fits into size_t before it passes it >> on to cache_init(). cache_init() checks it is a power of two no >> smal

Re: [PATCH 09/10] qom: Improve {qom,device}-list-properties error messages

2020-11-13 Thread Markus Armbruster
Paolo Bonzini writes: > On 13/11/20 09:26, Markus Armbruster wrote: >> qom-list-properties reports >> Parameter 'typename' expects device >> when @typename exists, but isn't a TYPE_DEVICE. Improve this to >> Parameter 'typename' expects a non-abstract device type >> device-list-propert

Re: [PATCH] tests: add prefixes to the bare mkdtemp calls

2020-11-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20201113133424.8723-1-alex.ben...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20201113133424.8723-1-alex.ben...@linaro.org Type: series Subject: [PATCH] tests: add prefixes to th

Re: [PULL 0/6] Fixes 20201113 patches

2020-11-13 Thread Peter Maydell
available in the Git repository at: > > git://git.kraxel.org/qemu tags/fixes-20201113-pull-request > > for you to fetch changes up to 172bc8520db1cb98d09b367360068a675fbc9413: > > xhci: fix nec-usb-xhci properties (2020-11-13 07:36:33 +0100) > > -

  1   2   3   >