Re: [PATCH 8/9] monitor: move hmp_info_block* to blockdev-hmp-cmds.c

2019-11-27 Thread Markus Armbruster
I think it makes sense to collect *all* block HMP stuff here. Left in monitor/hmp-cmds.c: hmp_eject(), hmp_nbd_server_start(), ... I guess hmp_change() has to stay there, because it's both block and ui. Left in blockdev.c: hmp_drive_add_node(). Quick grep for possible files to check: $ git-gre

Re: [RESEND PATCH v21 2/6] docs: APEI GHES generation and CPER record description

2019-11-27 Thread Igor Mammedov
On Wed, 27 Nov 2019 09:37:57 +0800 Xiang Zheng wrote: > Hi Igor, > > Thanks for your review! > Since the series of patches are going to be merged, we will address your > comments by follow up patches. Yes, I know it's quite frustrating to respin series multiple times, but on the other hand it'

[PATCH v18 1/8] numa: Extend CLI to provide initiator information for numa nodes

2019-11-27 Thread Tao Xu
In ACPI 6.3 chapter 5.2.27 Heterogeneous Memory Attribute Table (HMAT), The initiator represents processor which access to memory. And in 5.2.27.3 Memory Proximity Domain Attributes Structure, the attached initiator is defined as where the memory controller responsible for a memory proximity domain

[PATCH v18 0/8] Build ACPI Heterogeneous Memory Attribute Table (HMAT)

2019-11-27 Thread Tao Xu
This series of patches will build Heterogeneous Memory Attribute Table (HMAT) according to the command line. The ACPI HMAT describes the memory attributes, such as memory side cache attributes and bandwidth and latency details, related to the Memory Proximity Domain. The software is expected to use

[PATCH v18 2/8] numa: Extend CLI to provide memory latency and bandwidth information

2019-11-27 Thread Tao Xu
From: Liu Jingqi Add -numa hmat-lb option to provide System Locality Latency and Bandwidth Information. These memory attributes help to build System Locality Latency and Bandwidth Information Structure(s) in ACPI Heterogeneous Memory Attribute Table (HMAT). Signed-off-by: Liu Jingqi Signed-off-

[PATCH v18 3/8] numa: Extend CLI to provide memory side cache information

2019-11-27 Thread Tao Xu
From: Liu Jingqi Add -numa hmat-cache option to provide Memory Side Cache Information. These memory attributes help to build Memory Side Cache Information Structure(s) in ACPI Heterogeneous Memory Attribute Table (HMAT). Reviewed-by: Igor Mammedov Reviewed-by: Daniel Black Signed-off-by: Liu J

[PATCH v18 4/8] hmat acpi: Build Memory Proximity Domain Attributes Structure(s)

2019-11-27 Thread Tao Xu
From: Liu Jingqi HMAT is defined in ACPI 6.3: 5.2.27 Heterogeneous Memory Attribute Table (HMAT). The specification references below link: http://www.uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdf It describes the memory attributes, such as memory side cache attributes and bandw

[PATCH v18 5/8] hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s)

2019-11-27 Thread Tao Xu
From: Liu Jingqi This structure describes the memory access latency and bandwidth information from various memory access initiator proximity domains. The latency and bandwidth numbers represented in this structure correspond to rated latency and bandwidth for the platform. The software could use

[PATCH v18 7/8] tests/numa: Add case for QMP build HMAT

2019-11-27 Thread Tao Xu
Check configuring HMAT usecase Reviewed-by: Igor Mammedov Suggested-by: Igor Mammedov Signed-off-by: Tao Xu --- Changes in v18: - Rewrite the lines over 80 characters Chenges in v17: - Add some fail test cases (Igor) --- tests/numa-test.c | 197 +++

[PATCH v18 6/8] hmat acpi: Build Memory Side Cache Information Structure(s)

2019-11-27 Thread Tao Xu
From: Liu Jingqi This structure describes memory side cache information for memory proximity domains if the memory side cache is present and the physical device forms the memory side cache. The software could use this information to effectively place the data in memory to maximize the performance

[PATCH v18 8/8] tests/bios-tables-test: add test cases for ACPI HMAT

2019-11-27 Thread Tao Xu
ACPI table HMAT has been introduced, QEMU now builds HMAT tables for Heterogeneous Memory with boot option '-numa node'. Add test cases on PC and Q35 machines with 2 numa nodes. Because HMAT is generated when system enable numa, the following tables need to be added for this test: tests/data/a

[PATCH v3 3/7] gpiolib: Add support for GPIO line table lookup

2019-11-27 Thread Geert Uytterhoeven
Currently GPIOs can only be referred to by GPIO controller and offset in GPIO lookup tables. Add support for looking them up by line name. Signed-off-by: Geert Uytterhoeven --- If this is rejected, the GPIO Aggregator documentation and code must be updated. v3: - New. --- drivers/gpio/gpioli

[PATCH v3 7/7] MAINTAINERS: Add GPIO Aggregator/Repeater section

2019-11-27 Thread Geert Uytterhoeven
Add a maintainership section for the GPIO Aggregator/Repeater, covering documentation, Device Tree bindings, and driver source code. Signed-off-by: Geert Uytterhoeven --- Harish: Do you want to be listed as maintainer, too? v3: - New. --- MAINTAINERS | 8 1 file changed, 8 insertions

[PATCH v3 2/7] gpiolib: Add support for gpiochipN-based table lookup

2019-11-27 Thread Geert Uytterhoeven
Currently GPIO controllers can only be referred to by label in GPIO lookup tables. Add support for looking them up by "gpiochipN" name, with "N" either the corresponding GPIO device's ID number, or the GPIO controller's first GPIO number. Signed-off-by: Geert Uytterhoeven --- If this is rejected

Re: [PATCH 9/9] monitor/hmp: Prefer to use hmp_handle_error for error reporting in block hmp commands

2019-11-27 Thread Markus Armbruster
Title is too long. blockdev-hmp-cmds.c will become block/monitor/block-hmp-cmds.c in v2. With this in mind, suggest block/monitor: Prefer to use hmp_handle_error() to report HMP errors Maxim Levitsky writes: > This way they all will be prefixed with 'Error:' which some parsers > (e.g libv

[PATCH v3 1/7] gpiolib: Add GPIOCHIP_NAME definition

2019-11-27 Thread Geert Uytterhoeven
The string literal "gpiochip" is used in several places. Add a definition for it, and use it everywhere, to make sure everything stays in sync. Signed-off-by: Geert Uytterhoeven --- v3: - New. --- drivers/gpio/gpiolib-sysfs.c | 7 +++ drivers/gpio/gpiolib.c | 4 ++-- drivers/gpio/gpi

[PATCH v3 4/7] dt-bindings: gpio: Add gpio-repeater bindings

2019-11-27 Thread Geert Uytterhoeven
Add Device Tree bindings for a GPIO repeater, with optional translation of physical signal properties. This is useful for describing explicitly the presence of e.g. an inverter on a GPIO line, and was inspired by the non-YAML gpio-inverter bindings by Harish Jenny K N [1]. Note that this is diffe

[PATCH v3 0/7] gpio: Add GPIO Aggregator/Repeater

2019-11-27 Thread Geert Uytterhoeven
Hi all, GPIO controllers are exported to userspace using /dev/gpiochip* character devices. Access control to these devices is provided by standard UNIX file system permissions, on an all-or-nothing basis: either a GPIO controller is accessible for a user, or it is not. Currently no mechan

[PATCH v3 6/7] docs: gpio: Add GPIO Aggregator/Repeater documentation

2019-11-27 Thread Geert Uytterhoeven
Document the GPIO Aggregator/Repeater, and the three typical use-cases. Signed-off-by: Geert Uytterhoeven --- v3: - New. --- .../admin-guide/gpio/gpio-aggregator.rst | 111 ++ Documentation/admin-guide/gpio/index.rst | 1 + 2 files changed, 112 insertions(+) create

[PATCH v3 5/7] gpio: Add GPIO Aggregator/Repeater driver

2019-11-27 Thread Geert Uytterhoeven
GPIO controllers are exported to userspace using /dev/gpiochip* character devices. Access control to these devices is provided by standard UNIX file system permissions, on an all-or-nothing basis: either a GPIO controller is accessible for a user, or it is not. Currently no mechanism exists to con

Re: [PATCH 0/6] Enable Travis builds on arm64, ppc64le and s390x

2019-11-27 Thread Thomas Huth
On 25/11/2019 11.28, Alex Bennée wrote: Alex Bennée writes: Thomas Huth writes: Travis recently added build hosts for arm64, ppc64le and s390x, so this is a welcome addition to our Travis testing matrix. Unfortunately, the builds are running in quite restricted LXD containers there, for e

Re: [PATCH v6 16/20] ppc/xive: Introduce a xive_tctx_ipb_update() helper

2019-11-27 Thread Greg Kurz
On Mon, 25 Nov 2019 07:58:16 +0100 Cédric Le Goater wrote: > We will use it to resend missed interrupts when a vCPU context is > pushed on a HW thread. > > Signed-off-by: Cédric Le Goater > --- > include/hw/ppc/xive.h | 1 + > hw/intc/xive.c| 21 +++-- > 2 files change

Re: [PATCH v18 0/8] Build ACPI Heterogeneous Memory Attribute Table (HMAT)

2019-11-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191127082613.22903-1-tao3...@intel.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #

Re: [PATCH] target/arm: Honor HCR_EL2.TID3 trapping requirements

2019-11-27 Thread Marc Zyngier
On 2019-11-26 21:04, Richard Henderson wrote: On 11/23/19 11:56 AM, Marc Zyngier wrote: HCR_EL2.TID3 mandates that access from EL1 to a long list of id registers traps to EL2, and QEMU has so far ignored this requirement. This breaks (among other things) KVM guests that have PtrAuth enabled,

Re: [PULL 0/5] i386 patches for QEMU 4.2-rc

2019-11-27 Thread Dr. David Alan Gilbert
* Philippe Mathieu-Daudé (phi...@redhat.com) wrote: > On 11/26/19 10:19 AM, no-re...@patchew.org wrote: > > Patchew URL: > > https://patchew.org/QEMU/20191126085936.1689-1-pbonz...@redhat.com/ > > > > This series failed the docker-quick@centos7 build test. Please find the > > testing commands an

Re: [PULL 0/5] i386 patches for QEMU 4.2-rc

2019-11-27 Thread Jens Freimann
On Wed, Nov 27, 2019 at 09:14:01AM +, Dr. David Alan Gilbert wrote: * Philippe Mathieu-Daudé (phi...@redhat.com) wrote: On 11/26/19 10:19 AM, no-re...@patchew.org wrote: > Patchew URL: https://patchew.org/QEMU/20191126085936.1689-1-pbonz...@redhat.com/ > > This series failed the docker-quic

Re: [PATCH] usbredir: remove 'remote wake' capability from configuration descriptor

2019-11-27 Thread Markus Armbruster
Yuri Benditovich writes: > On Wed, Nov 27, 2019 at 8:36 AM Markus Armbruster wrote: >> >> Yuri Benditovich writes: >> >> > If the redirected device has this capability, Windows guest may >> > place the device into D2 and expect it to wake when the device >> > becomes active, but this will never

Re: [PATCH] usbredir: remove 'remote wake' capability from configuration descriptor

2019-11-27 Thread Gerd Hoffmann
On Wed, Nov 27, 2019 at 09:36:21AM +0200, Yuri Benditovich wrote: > On Wed, Nov 27, 2019 at 8:36 AM Markus Armbruster wrote: > > > > Yuri Benditovich writes: > > > > > If the redirected device has this capability, Windows guest may > > > place the device into D2 and expect it to wake when the dev

Re: [PATCH v18 1/8] numa: Extend CLI to provide initiator information for numa nodes

2019-11-27 Thread Markus Armbruster
Tao Xu writes: > In ACPI 6.3 chapter 5.2.27 Heterogeneous Memory Attribute Table (HMAT), > The initiator represents processor which access to memory. And in 5.2.27.3 > Memory Proximity Domain Attributes Structure, the attached initiator is > defined as where the memory controller responsible for

Re: [PATCH v18 2/8] numa: Extend CLI to provide memory latency and bandwidth information

2019-11-27 Thread Markus Armbruster
Tao Xu writes: > From: Liu Jingqi > > Add -numa hmat-lb option to provide System Locality Latency and > Bandwidth Information. These memory attributes help to build > System Locality Latency and Bandwidth Information Structure(s) > in ACPI Heterogeneous Memory Attribute Table (HMAT). Please men

[RFC 09/10] Clean up Radeon Header files

2019-11-27 Thread Aleksandar Markovic
On Tuesday, November 26, 2019, wrote: > From: Aaron Dominick > > --- Your commit message is poor. You should have clearly explained what do you do in this cleanup, and why. Aleksandar > hw/display/atom-bits.h | 48 - > hw/display/atom-names.h | 100 - > hw/display/ato

Re: [PATCH v18 3/8] numa: Extend CLI to provide memory side cache information

2019-11-27 Thread Markus Armbruster
Tao Xu writes: > From: Liu Jingqi > > Add -numa hmat-cache option to provide Memory Side Cache Information. > These memory attributes help to build Memory Side Cache Information > Structure(s) in ACPI Heterogeneous Memory Attribute Table (HMAT). Please mention this requires -machine hmat=on. >

[PATCH 0/2] analyze-migration.py: require python 3

2019-11-27 Thread Marc-André Lureau
Hi, The following 2 patches fix some error and deprecation warnings with python 3. It drops usage of numpy and python 2 support. Marc-André Lureau (2): analyze-migration.py: fix find() type error analyze-migration.py: replace numpy with python 3.2 scripts/analyze-migration.py | 39 +

[PATCH 2/2] analyze-migration.py: replace numpy with python 3.2

2019-11-27 Thread Marc-André Lureau
Use int.from_bytes() from python 3.2 instead. Signed-off-by: Marc-André Lureau --- scripts/analyze-migration.py | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/scripts/analyze-migration.py b/scripts/analyze-migration.py index 2b835d9b70..

[PATCH 1/2] analyze-migration.py: fix find() type error

2019-11-27 Thread Marc-André Lureau
Traceback (most recent call last): File "../scripts/analyze-migration.py", line 611, in dump.read(desc_only = True) File "../scripts/analyze-migration.py", line 513, in read self.load_vmsd_json(file) File "../scripts/analyze-migration.py", line 556, in load_vmsd_json vmsd_json =

Re: [RESEND PATCH v21 5/6] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2019-11-27 Thread Igor Mammedov
On Wed, 27 Nov 2019 09:40:14 +0800 Xiang Zheng wrote: > Hi, > > On 2019/11/16 0:37, Igor Mammedov wrote: > > On Mon, 11 Nov 2019 09:40:47 +0800 > > Xiang Zheng wrote: > > > >> From: Dongjiu Geng > >> > >> Add a SIGBUS signal handler. In this handler, it checks the SIGBUS type, > >> translat

Re: [PATCH] usbredir: remove 'remote wake' capability from configuration descriptor

2019-11-27 Thread Yuri Benditovich
On Wed, Nov 27, 2019 at 11:40 AM Gerd Hoffmann wrote: > > On Wed, Nov 27, 2019 at 09:36:21AM +0200, Yuri Benditovich wrote: > > On Wed, Nov 27, 2019 at 8:36 AM Markus Armbruster wrote: > > > > > > Yuri Benditovich writes: > > > > > > > If the redirected device has this capability, Windows guest

Re: Network connection with COLO VM

2019-11-27 Thread Dr. David Alan Gilbert
* Daniel Cho (daniel...@qnap.com) wrote: > Hello everyone, > > Could we ssh to colo VM (means PVM & SVM are starting)? > Lets cc in Zhang Chen and Lukas Straub. > SSH will connect to colo VM for a while, but it will disconnect with error > *client_loop: send disconnect: Broken pipe* > > It see

Re: [RESEND PATCH v21 3/6] ACPI: Add APEI GHES table generation support

2019-11-27 Thread gengdongjiu
On 2019/11/25 17:48, Igor Mammedov wrote: >>>.. >>> bios_linker_loader_add_pointer(linker, ACPI_BUILD_TABLE_FILE, >>> ACPI_GHES_ERROR_STATUS_ADDRESS_OFFSET(hest_start, source_id), >>> sizeof(uint64_t), ACPI_GHES_ERRORS_FW_CFG_FILE, >>> source_id * sizeof(uint64_t

Re: [PATCH for-5.0 v11 01/20] migration: Support QLIST migration

2019-11-27 Thread Dr. David Alan Gilbert
* Eric Auger (eric.au...@redhat.com) wrote: > Support QLIST migration using the same principle as QTAILQ: > 94869d5c52 ("migration: migrate QTAILQ"). > > The VMSTATE_QLIST_V macro has the same proto as VMSTATE_QTAILQ_V. > The change mainly resides in QLIST RAW macros: QLIST_RAW_INSERT_HEAD > and Q

[PATCH 1/7] console: add graphic_hw_update_done()

2019-11-27 Thread Marc-André Lureau
Add a function to be called when a graphic update is done. Declare the QXL renderer as async: render_update_cookie_num counts the number of outstanding updates, and graphic_hw_update_done() is called when it reaches none. (note: this is preliminary work for asynchronous screendump support) Signe

[PATCH 0/7] console: screendump improvements

2019-11-27 Thread Marc-André Lureau
Hi, The following patches have been extracted from the "[PATCH v6 00/25] monitor: add asynchronous command type", as they are reviewable/mergeable independantly. They introduce some internal API changes, and fix qemu_open()/qemu_close()/unlink() misusages which should be quite harmless. Marc-And

[PATCH 2/7] ppm-save: pass opened fd

2019-11-27 Thread Marc-André Lureau
This will allow to pre-open the file before running the async finish handler and avoid potential monitor fdset races. (note: this is preliminary work for asynchronous screendump support) Signed-off-by: Marc-André Lureau --- ui/console.c| 45 ++--- ui/

[PATCH 7/7] screendump: use qemu_unlink()

2019-11-27 Thread Marc-André Lureau
Don't attempt to remove /dev/fdset files. Signed-off-by: Marc-André Lureau --- ui/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/console.c b/ui/console.c index 587edf4ed4..e6ac462aa0 100644 --- a/ui/console.c +++ b/ui/console.c @@ -381,7 +381,7 @@ void qmp_scree

[PATCH 5/7] screendump: replace FILE with QIOChannel and fix close()/qemu_close()

2019-11-27 Thread Marc-André Lureau
The file opened for ppm_save() may be a /dev/fdset, in which case a dup fd is added to the fdset. It should be removed by calling qemu_close(), instead of the implicit close() on fclose(). I don't see a convenient way to solve that with stdio streams, so I switched the code to QIOChannel which use

[PATCH 4/7] object: add g_autoptr support

2019-11-27 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- include/qom/object.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/qom/object.h b/include/qom/object.h index 128d00c77f..f96a44be64 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -1747,4 +1747,7 @@ Object *container_get(Object

[PATCH 3/7] ui: add pixman image g_autoptr support

2019-11-27 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- include/ui/qemu-pixman.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 0668109305..3b7cf70157 100644 --- a/include/ui/qemu-pixman.h +++ b/include/ui/qemu-pixman.h @@ -90,4 +90,6 @@ void qemu_pix

[PATCH 6/7] osdep: add qemu_unlink()

2019-11-27 Thread Marc-André Lureau
Add a helper function to match qemu_open() which may return files under the /dev/fdset prefix. Those shouldn't be removed, since it's only a qemu namespace. Signed-off-by: Marc-André Lureau --- include/qemu/osdep.h | 1 + util/osdep.c | 15 +++ 2 files changed, 16 insertions

[PATCH] iotests/273: Filter format-specific information

2019-11-27 Thread Max Reitz
Doing this allows running this test with e.g. -o compat=0.10 or -o compat=refcount_bits=1. Signed-off-by: Max Reitz --- tests/qemu-iotests/273 | 3 ++- tests/qemu-iotests/273.out | 27 --- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/tests/qemu-iot

Re: [PATCH for-5.0 v11 18/20] virtio-iommu: Support migration

2019-11-27 Thread Dr. David Alan Gilbert
* Eric Auger (eric.au...@redhat.com) wrote: > Add Migration support. We rely on recently added gtree and qlist > migration. Besides, we have to fixup end point <-> domain link. > > Indeed each domain has a list of endpoints attached to it. And each > endpoint has a pointer to its domain. > > Raw

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-27 Thread Marc-André Lureau
Hi On Mon, Nov 25, 2019 at 5:04 PM Philippe Mathieu-Daudé wrote: > > On 11/25/19 1:54 PM, Philippe Mathieu-Daudé wrote: > > On 11/25/19 12:26 PM, Philippe Mathieu-Daudé wrote: > >> On 11/25/19 11:12 AM, Marc-André Lureau wrote: > >>> Hi > >>> > >>> On Mon, Nov 25, 2019 at 2:07 PM Aleksandar Marko

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-27 Thread Aleksandar Markovic
On Wednesday, November 27, 2019, Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > Hi > > On Mon, Nov 25, 2019 at 5:04 PM Philippe Mathieu-Daudé > wrote: > > > > On 11/25/19 1:54 PM, Philippe Mathieu-Daudé wrote: > > > On 11/25/19 12:26 PM, Philippe Mathieu-Daudé wrote: > > >> On 11/25/19

Re: [PATCH v4 17/37] mips: inline serial_init()

2019-11-27 Thread Aleksandar Markovic
On Wednesday, November 20, 2019, Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > The function is specific to mipssim, let's inline it. > > Signed-off-by: Marc-André Lureau > --- > hw/char/serial.c | 16 > hw/mips/mips_mipssim.c | 15 --- > include

Re: [PATCH v4 20/37] mips: use sysbus_mmio_get_region() instead of internal fields

2019-11-27 Thread Aleksandar Markovic
On Wednesday, November 20, 2019, Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > Register the memory region with sysbus_init_mmio() and look it up with > sysbus_mmio_get_region() to avoid accessing internal device fields. > > Suggested-by: Peter Maydell > Signed-off-by: Marc-André Lurea

Re: [PATCH 0/7] console: screendump improvements

2019-11-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191127115202.375107-1-marcandre.lur...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH 0/7] console: screendump improvements Type: series Message-id: 20191127115202.375107-1-ma

Re: [PATCH v4 19/37] mips: use sysbus_add_io()

2019-11-27 Thread Aleksandar Markovic
On Wednesday, November 20, 2019, Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > Signed-off-by: Marc-André Lureau > --- > hw/mips/mips_mipssim.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > I agree with the change, and with overall series in general, but please add at

Re: [PATCH V2] throttle-groups: fix memory leak in throttle_group_set_limit:

2019-11-27 Thread Max Reitz
On 27.11.19 07:20, pannengy...@huawei.com wrote: > From: PanNengyuan > > This avoid a memory leak when qom-set is called to set throttle_group > limits, here is an easy way to reproduce: > > 1. run qemu-iotests as follow and check the result with asan: >./check -qcow2 184 > > Following

Re: PCI memory sync question (kvm,dpdk,e1000,packet stalled)

2019-11-27 Thread ASM
Stefan, thanks for answering. When the packet is received, e1000 writes it to memory directrly without any RCU. The address of memory for writing is set by the driver from dpdk driver. Driver writes to RDBA (RDBAH,RDBAL) base address of ring. It turns out that MMIO RCU (mentioned from e1000_mmio_

Re: [RESEND PATCH v21 5/6] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2019-11-27 Thread Xiang Zheng
Hi Beata, Thanks for you review! On 2019/11/22 23:47, Beata Michalska wrote: > Hi, > > On Mon, 11 Nov 2019 at 01:48, Xiang Zheng wrote: >> >> From: Dongjiu Geng >> >> Add a SIGBUS signal handler. In this handler, it checks the SIGBUS type, >> translates the host VA delivered by host to guest P

Re: [RESEND PATCH v21 5/6] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2019-11-27 Thread Igor Mammedov
On Wed, 27 Nov 2019 20:47:15 +0800 Xiang Zheng wrote: > Hi Beata, > > Thanks for you review! > > On 2019/11/22 23:47, Beata Michalska wrote: > > Hi, > > > > On Mon, 11 Nov 2019 at 01:48, Xiang Zheng wrote: > >> > >> From: Dongjiu Geng > >> > >> Add a SIGBUS signal handler. In this handler,

Re: [PATCH] block: always fill entire LUKS header space with zeros

2019-11-27 Thread Max Reitz
On 25.11.19 18:43, Daniel P. Berrangé wrote: > When initializing the LUKS header the size with default encryption > parameters will currently be 2068480 bytes. This is rounded up to > a multiple of the cluster size, 2081792, with 64k sectors. If the > end of the header is not the same as the end of

[PATCH for-5.0 04/31] block: Pass BdrvChildRole to bdrv_child_perm()

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 22 -- block/backup-top.c | 3 ++- block/blkdebug.c| 5 +++-- block/blklogwrites.c| 9 + block/commit.c | 1 + block/copy-on-read.c| 1 + block/mirror.c

[PATCH for-5.0 00/31] block: Introduce real BdrvChildRole

2019-11-27 Thread Max Reitz
Based-on: <2019160216.197086-1-mre...@redhat.com> (“block: Fix check_to_replace_node()”) This is preliminary work for v7 of “Deal with filters”. As Kevin has noted, there may be e.g. multiple storage children, and there should probably be some way for drivers to signal what they use each chil

[PATCH for-5.0 11/31] block: Add child_of_bds

2019-11-27 Thread Max Reitz
Any current user of child_file, child_format, and child_backing can and should use this generic BdrvChildClass instead, as it can handle all of these cases. However, to be able to do so, the users must pass the appropriate BdrvChildRole when the child is created/attached. (The following commits w

[PATCH for-5.0 02/31] block: Add BdrvChildRole

2019-11-27 Thread Max Reitz
This enum will supplement BdrvChildClass when it comes to what role (or combination of roles) a child takes for its parent. Because empty enums are not allowed, let us just start with it filled. Signed-off-by: Max Reitz --- include/block/block.h | 38 ++ 1 fi

[PATCH for-5.0 03/31] block: Add BdrvChildRole to BdrvChild

2019-11-27 Thread Max Reitz
For now, it is always set to 0. Later patches in this series will ensure that all callers pass an appropriate combination of flags. Signed-off-by: Max Reitz --- block.c | 11 --- block/backup-top.c | 3 ++- block/blkdebug.c| 2 +- block/blklogw

[PATCH for-5.0 01/31] block: Rename BdrvChildRole to BdrvChildClass

2019-11-27 Thread Max Reitz
This structure nearly only contains parent callbacks for child state changes. It cannot really reflect a child's role, because different roles may overlap (as we will see when real roles are introduced), and because parents can have custom callbacks even when the child fulfills a standard role. S

[PATCH for-5.0 13/31] block: Pull out bdrv_default_perms_for_backing()

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 62 + 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/block.c b/block.c index eb282f0977..2771bc45ce 100644 --- a/block.c +++ b/block.c @@ -2256,6 +2256,44 @@ void bdrv_filter_default_pe

[PATCH for-5.0 05/31] block: Drop BdrvChildClass.stay_at_node

2019-11-27 Thread Max Reitz
This should better be in BdrvChildRole so that parents can decide when to and when not to keep the child node fixed. Signed-off-by: Max Reitz --- block.c | 2 +- blockjob.c| 3 +-- include/block/block_int.h | 4 3 files changed, 2 insertions(+), 7 deletions

[PATCH for-5.0 15/31] block: Split bdrv_default_perms_for_storage()

2019-11-27 Thread Max Reitz
We can be less restrictive about pure data children than those with metadata on them. For bdrv_format_default_perms(), we keep the safe option of bdrv_default_perms_for_metadata() (until we drop bdrv_format_default_perms() altogether). That means that bdrv_default_perms_for_data() is unused at th

[PATCH for-5.0 07/31] block: Pass BdrvChildRole to .inherit_options()

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 40 +++ block/block-backend.c | 3 ++- block/vvfat.c | 3 ++- include/block/block_int.h | 3 ++- 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/block.c b/block.c index

[PATCH for-5.0 16/31] block: Add bdrv_default_perms()

2019-11-27 Thread Max Reitz
This callback can be used by BDSs that use child_of_bds with the appropriate BdrvChildRole for their children. Also, make bdrv_format_default_perms() use it for child_of_bds children (just a temporary solution until we can drop bdrv_format_default_perms() altogether). Signed-off-by: Max Reitz --

[PATCH for-5.0 06/31] block: Keep BDRV_O_NO_IO in *inherited_fmt_options

2019-11-27 Thread Max Reitz
bdrv_inherited_fmt_options() is used only by (pseudo-)filter drivers, namely quorum and blkverify. Both should pass on BDRV_O_NO_IO to their children. There is no reason to clear it in bdrv_inherited_fmt_options(). Signed-off-by: Max Reitz --- block.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH for-5.0 20/31] block: Make backing files child_of_bds children

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 26 -- block/backup-top.c | 2 +- block/vvfat.c | 3 ++- tests/test-bdrv-drain.c | 13 +++-- 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/block.c b/block.c index 4b8c33dccc.

[PATCH for-5.0 17/31] raw-format: Split raw_read_options()

2019-11-27 Thread Max Reitz
Split raw_read_options() into one function that actually just reads the options, and another that applies them. This will allow us to detect whether the user has specified any options before attaching the file child (so we can decide on its role based on the options). Signed-off-by: Max Reitz --

[PATCH for-5.0 09/31] block: Unify bdrv_child_cb_attach()

2019-11-27 Thread Max Reitz
Make bdrv_child_cb_attach() call bdrv_backing_attach() for children with a COW role (and drop the reverse call from bdrv_backing_attach()), so it can be used for any child (with a proper role set). Because so far no child has a proper role set, we need a temporary new callback for child_backing.at

[PATCH for-5.0 08/31] block: Unify bdrv_*inherited_options()

2019-11-27 Thread Max Reitz
We can keep the logic for child_file, child_format, and child_backing in a single function and differentiate based on the BdrvChildRole. Signed-off-by: Max Reitz --- block.c | 96 +++-- 1 file changed, 60 insertions(+), 36 deletions(-) diff --

[PATCH for-5.0 21/31] block: Drop child_backing

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 62 +++ include/block/block_int.h | 1 - 2 files changed, 4 insertions(+), 59 deletions(-) diff --git a/block.c b/block.c index 63fe19fd73..0530c81c6d 100644 --- a/block.c +++ b/block.c @@ -1147,15 +114

[PATCH for-5.0 23/31] block: Make filter drivers use child_of_bds

2019-11-27 Thread Max Reitz
Note that some filters have secondary children, namely blkverify (the image to be verified) and blklogwrites (the log). This patch does not touch those children. Signed-off-by: Max Reitz --- block/blkdebug.c | 4 +++- block/blklogwrites.c | 3 ++- block/blkverify.c| 5 - block/copy-

[PATCH for-5.0 19/31] block: Drop child_format

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 28 include/block/block_int.h | 1 - 2 files changed, 29 deletions(-) diff --git a/block.c b/block.c index 5b38c7799a..4b8c33dccc 100644 --- a/block.c +++ b/block.c @@ -1104,34 +1104,6 @@ const BdrvChildClass

[PATCH for-5.0 12/31] block: Distinguish paths in *_format_default_perms

2019-11-27 Thread Max Reitz
bdrv_format_default_perms() has one code path for backing files, and one for storage files. We want to pull them out into own functions, so make sure they are completely distinct before so the next patches will be a bit cleaner. Signed-off-by: Max Reitz --- block.c | 19 +-- 1 f

[PATCH for-5.0 22/31] block: Make format drivers use child_of_bds

2019-11-27 Thread Max Reitz
Commonly, they need to pass the BDRV_CHILD_IMAGE set as the BdrvChildRole; but there are exceptions for drivers with external data files (qcow2 and vmdk). Signed-off-by: Max Reitz --- block/bochs.c | 4 ++-- block/cloop.c | 4 ++-- block/crypto.c| 4 ++-- block/dmg.c | 4 ++

[PATCH for-5.0 24/31] block: Use child_of_bds in remaining places

2019-11-27 Thread Max Reitz
Replace child_file by child_of_bds in all remaining places (excluding tests). Signed-off-by: Max Reitz --- block.c | 3 ++- block/backup-top.c | 4 ++-- block/blklogwrites.c | 3 ++- block/blkreplay.c| 5 +++-- block/raw-format.c | 16 ++-- 5 files changed, 2

[PATCH for-5.0 28/31] block: Drop bdrv_format_default_perms()

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 19 --- include/block/block_int.h | 11 --- 2 files changed, 30 deletions(-) diff --git a/block.c b/block.c index b6c92ef283..3fcd56aaae 100644 --- a/block.c +++ b/block.c @@ -2294,25 +2294,6 @@ static void bdrv_def

[PATCH for-5.0 10/31] block: Unify bdrv_child_cb_detach()

2019-11-27 Thread Max Reitz
Make bdrv_child_cb_detach() call bdrv_backing_detach() for children with a COW role (and drop the reverse call from bdrv_backing_detach()), so it can be used for any child (with a proper role set). Because so far no child has a proper role set, we need a temporary new callback for child_backing.de

[PATCH for-5.0 30/31] block: Pass BdrvChildRole in remaining cases

2019-11-27 Thread Max Reitz
These calls have no real use for the child role yet, but it will not harm to give one. Notably, the bdrv_root_attach_child() call in blockjob.c is left unmodified because there is not much the generic BlockJob object wants from its children. Signed-off-by: Max Reitz --- block/block-backend.c |

[PATCH for-5.0 25/31] tests: Use child_of_bds instead of child_file

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- tests/test-bdrv-drain.c | 29 + tests/test-bdrv-graph-mod.c | 6 -- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/tests/test-bdrv-drain.c b/tests/test-bdrv-drain.c index 15393a0140..91567ca97d 100644 --- a/tests/

[PATCH for-5.0 27/31] block: Make bdrv_filter_default_perms() static

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 12 ++-- include/block/block_int.h | 10 -- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/block.c b/block.c index e800ce862e..b6c92ef283 100644 --- a/block.c +++ b/block.c @@ -2171,12 +2171,12 @@ int bdrv_c

[PATCH for-5.0 14/31] block: Pull out bdrv_default_perms_for_storage()

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 71 + 1 file changed, 46 insertions(+), 25 deletions(-) diff --git a/block.c b/block.c index 2771bc45ce..4d4ccbacdf 100644 --- a/block.c +++ b/block.c @@ -2294,6 +2294,50 @@ static void bdrv_default_p

[PATCH for-5.0 26/31] block: Use bdrv_default_perms()

2019-11-27 Thread Max Reitz
bdrv_default_perms() can decide which permission profile to use based on the BdrvChildRole, so block drivers do not need to select it explicitly. The blkverify driver now no longer shares the WRITE permission for the image to verify. We thus have to adjust two places in test-block-iothread not to

[PATCH for-5.0 31/31] block: Drop @child_class from bdrv_child_perm()

2019-11-27 Thread Max Reitz
Implementations should decide the necessary permissions based on @role. Signed-off-by: Max Reitz --- block.c | 45 - block/backup-top.c | 3 +-- block/blkdebug.c| 3 +-- block/blklogwrites.c| 3 +-- block/com

[PATCH for-5.0 18/31] block: Switch child_format users to child_of_bds

2019-11-27 Thread Max Reitz
Both users (quorum and blkverify) use child_format for not-really-filtered children, so the appropriate BdrvChildRole in both cases is DATA | FORMAT. Signed-off-by: Max Reitz --- block/blkverify.c | 5 +++-- block/quorum.c| 9 ++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff

[PATCH for-5.0 29/31] block: Drop child_file

2019-11-27 Thread Max Reitz
Signed-off-by: Max Reitz --- block.c | 30 +- include/block/block_int.h | 1 - tests/test-bdrv-drain.c | 8 +++- 3 files changed, 4 insertions(+), 35 deletions(-) diff --git a/block.c b/block.c index 3fcd56aaae..b2dc05b028 100644 --- a/block.

[PATCH for 4.2?] .travis.yml: drop xcode9.4 from build matrix

2019-11-27 Thread Alex Bennée
It's broken so it's no longer helping. The latest Xcode is covered by Cirrus. Signed-off-by: Alex Bennée --- .travis.yml | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index c09b6a00143..445b0646c18 100644 --- a/.travis.yml +++ b/.travis.yml

Re: QMP netdev_add multiple dnssearch values

2019-11-27 Thread Markus Armbruster
Alex Kirillov writes: >> What exactly goes wrong? Does the QMP command fail? Does it succeed >> but the network backend incorrectly? > > QMP command succesfully creates Slirp backend, but ignore whole arguments: > - `dnssearch` > - `hostfwd` > - `guestfwd` You're right, QMP command netdev_add si

Re: [PATCH for 4.2?] .travis.yml: drop xcode9.4 from build matrix

2019-11-27 Thread Philippe Mathieu-Daudé
Le mer. 27 nov. 2019 14:51, Alex Bennée a écrit : > It's broken so it's no longer helping. The latest Xcode is covered by > Cirrus. > > Signed-off-by: Alex Bennée > Reviewed-by: Philippe Mathieu-Daudé --- > .travis.yml | 8 +--- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff -

Re: [PATCH v3 5/6] iotests: Enable more tests in the 'auto' group to improve test coverage

2019-11-27 Thread Thomas Huth
On 24/10/2019 13.14, Alex Bennée wrote: Thomas Huth writes: According to Max, it would be good to have a test for iothreads and migration. 127 and 256 seem to be good candidates for iothreads. For migration, let's enable 091, 181, and 203 (which also tests iothreads). @@ -112,7 +112,7 @@

Re: [RESEND PATCH v21 5/6] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2019-11-27 Thread Beata Michalska
Hi On Wed, 27 Nov 2019 at 12:47, Xiang Zheng wrote: > > Hi Beata, > > Thanks for you review! > YAW > On 2019/11/22 23:47, Beata Michalska wrote: > > Hi, > > > > On Mon, 11 Nov 2019 at 01:48, Xiang Zheng wrote: > >> > >> From: Dongjiu Geng > >> > >> Add a SIGBUS signal handler. In this handler,

Re: [PATCH v9 1/3] block: introduce compress filter driver

2019-11-27 Thread Max Reitz
On 26.11.19 15:43, Andrey Shinkevich wrote: > Allow writing all the data compressed through the filter driver. > The written data will be aligned by the cluster size. > Based on the QEMU current implementation, that data can be written to > unallocated clusters only. May be used for a backup job. >

Re: [RESEND PATCH v21 5/6] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2019-11-27 Thread Beata Michalska
On Wed, 27 Nov 2019 at 13:03, Igor Mammedov wrote: > > On Wed, 27 Nov 2019 20:47:15 +0800 > Xiang Zheng wrote: > > > Hi Beata, > > > > Thanks for you review! > > > > On 2019/11/22 23:47, Beata Michalska wrote: > > > Hi, > > > > > > On Mon, 11 Nov 2019 at 01:48, Xiang Zheng wrote: > > >> > > >> F

  1   2   3   >