[PATCH v4 15/15] docs/devel/testing: add -p option to the debug section of QEMU iotests

2021-05-20 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- docs/devel/testing.rst | 4 1 file changed, 4 insertions(+) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index d743e88746..1192d6489e 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -250,6 +250,10 @@ a

Re: [PATCH v3 00/10] gitlab-ci: Ease forks pipeline workflow

2021-05-20 Thread Thomas Huth
On 19/05/2021 20.54, Philippe Mathieu-Daudé wrote: Series fully reviewed. Hi, Gitlab recommends to use job templates. To be able to re-use / include templates, they can not use YAML anchors. All current jobs has first to be converted to use the 'extends' keyworkd. This is the first part of

[PATCH v4 10/15] qemu-iotests: extent QMP socket timeout when using valgrind

2021-05-20 Thread Emanuele Giuseppe Esposito
As with gdbserver, valgrind delays the test execution, so the default QMP socket timeout timeout too soon. Signed-off-by: Emanuele Giuseppe Esposito --- tests/qemu-iotests/iotests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/qemu-iotests/iotests.py

[PATCH 1/4] migration/rdma: cleanup rmda in rdma_start_incoming_migration error path

2021-05-20 Thread Li Zhijian
the error path after calling qemu_rdma_dest_init() should do rdma cleanup Signed-off-by: Li Zhijian --- migration/rdma.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/migration/rdma.c b/migration/rdma.c index 41726cc74a..7e7595faab 100644 --- a/migration/rdma.c +++

[PATCH v4 11/15] qemu-iotests: allow valgrind to read/delete the generated log file

2021-05-20 Thread Emanuele Giuseppe Esposito
When using -valgrind on the script tests, it generates a log file in $TEST_DIR that is either read (if valgrind finds problems) or otherwise deleted. Provide the same exact behavior when using -valgrind on the python tests. Signed-off-by: Emanuele Giuseppe Esposito ---

Re: [PATCH v6 1/5] hw/isa/Kconfig: Fix missing dependency ISA_SUPERIO -> FDC

2021-05-20 Thread Thomas Huth
On 19/05/2021 18.34, Philippe Mathieu-Daudé wrote: isa_superio_realize() calls isa_fdc_init_drives(), which is defined in hw/block/fdc.c, so ISA_SUPERIO needs to select the FDC symbol. Add a isa_fdc_init_drives() stub for when FDC is not selected. Reported-by: John Snow Suggested-by: Thomas

Re: [PATCH v2] target/riscv: Dump CSR mscratch/sscratch/satp

2021-05-20 Thread Alistair Francis
On Thu, May 20, 2021 at 1:58 AM Changbin Du wrote: > > This dumps the CSR mscratch/sscratch/satp and meanwhile aligns > the output of CSR mtval/stval. > > Signed-off-by: Changbin Du > Reviewed-by: Alistair Francis > Reviewed-by: Bin Meng Thanks! Applied to riscv-to-apply.next Alistair > >

Re: [PULL 00/10] Gitlab-CI, qtest, moxie removal and misc patches

2021-05-20 Thread Paolo Bonzini
On 20/05/21 07:08, Thomas Huth wrote: OK... Not sure how to detect it from ninja then. Every time you pull, there could be changes to the "configure" script which affect the build ... I guess you also won't notice those when you're only compiling with ninja? Thus at least after pulling from

[PATCH v4 01/15] python: qemu: add timer parameter for qmp.accept socket

2021-05-20 Thread Emanuele Giuseppe Esposito
Alsp add a new _qmp_timer field to the QEMUMachine class. Let's change the default socket timeout to None, so that if a subclass needs to add a timer, it can be done by modifying this private field. At the same time, restore the timer to be 15 seconds in iotests.py, to give an upper bound to

[PATCH v4 08/15] docs/devel/testing: add -gdb option to the debugging section of QEMU iotests

2021-05-20 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- docs/devel/testing.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 8144e316a4..a746cab745 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -229,6 +229,17 @@

[PATCH v4 06/15] qemu_iotests: insert gdbserver command line as wrapper for qemu binary

2021-05-20 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tests/qemu-iotests/iotests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index cf1ca60376..c9628e6828 100644 --- a/tests/qemu-iotests/iotests.py +++

[PATCH v4 05/15] qemu-iotests: delay QMP socket timers

2021-05-20 Thread Emanuele Giuseppe Esposito
Attaching gdbserver implies that the qmp socket should wait indefinitely for an answer from QEMU. Signed-off-by: Emanuele Giuseppe Esposito --- tests/qemu-iotests/iotests.py | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotests/iotests.py

[PATCH v4 14/15] qemu-iotests: add option to show qemu binary logs on stdout

2021-05-20 Thread Emanuele Giuseppe Esposito
Using the flag -p, allow the qemu binary to print to stdout. Reviewed-by: Max Reitz Signed-off-by: Emanuele Giuseppe Esposito --- tests/qemu-iotests/check | 4 +++- tests/qemu-iotests/iotests.py | 9 + tests/qemu-iotests/testenv.py | 9 +++-- 3 files changed, 19 insertions(+),

[PATCH v4 13/15] docs/devel/testing: add -valgrind option to the debug section of QEMU iotests

2021-05-20 Thread Emanuele Giuseppe Esposito
Reviewed-by: Max Reitz Signed-off-by: Emanuele Giuseppe Esposito --- docs/devel/testing.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index a746cab745..d743e88746 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@

[PATCH 3/4] migration/rdma: destination: create the return patch after the first accept

2021-05-20 Thread Li Zhijian
From: Your Name destination side: $ build/qemu-system-x86_64 -enable-kvm -netdev tap,id=hn0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown -device e1000,netdev=hn0,mac=50:52:54:00:11:22 -boot c -drive if=none,file=./Fedora-rdma-server-migration.qcow2,id=drive-virtio-disk0 -device

[PATCH v2 3/3] vl: plug -object back into -readconfig

2021-05-20 Thread Paolo Bonzini
Commit bc2f4fcb1d ("qom: move user_creatable_add_opts logic to vl.c and QAPIfy it", 2021-03-19) switched the creation of objects from qemu_opts_foreach to a bespoke QTAILQ in preparation for supporting JSON syntax in -object. Unfortunately in doing so it lost support for [object] stanzas in

[PATCH v2 1/3] qemu-config: parse configuration files to a QDict

2021-05-20 Thread Paolo Bonzini
Change the parser to put the values into a QDict and pass them to a callback. qemu_config_parse's QemuOpts creation is itself turned into a callback function. This is useful for -readconfig to support keyval-based options; getting a QDict from the parser removes a roundtrip from QDict to

Re: [PATCH v3 00/15] qapi: static typing conversion, pt5a

2021-05-20 Thread Markus Armbruster
John Snow writes: > This is part five (a), and focuses on QAPISchemaParser in parser.py. > It does not touch QAPIDoc yet, which will be covered next. > > gitlab: https://gitlab.com/jsnow/qemu/-/commits/python-qapi-cleanup-pt5a > > Requirements: > - Python 3.6+ > - mypy >= 0.770 > - pylint >=

[PATCH v2 0/3] vl: add -object support back into -readconfig

2021-05-20 Thread Paolo Bonzini
LXD developers have reported that [object] stanzas have stopped working in configuration files. The problem is that QEMU 6.0 switched the creation of objects from qemu_opts_foreach to a bespoke QTAILQ, in preparation for supporting JSON syntax in -object. Entries from the configuration file

Re: [PATCH v12 5/8] arm64: kvm: Save/restore MTE registers

2021-05-20 Thread Marc Zyngier
On Wed, 19 May 2021 14:04:20 +0100, Steven Price wrote: > > On 17/05/2021 18:17, Marc Zyngier wrote: > > On Mon, 17 May 2021 13:32:36 +0100, > > Steven Price wrote: > >> > >> Define the new system registers that MTE introduces and context switch > >> them. The MTE feature is still hidden from

Re: [PATCH v3 14/15] qapi/parser: allow 'ch' variable name

2021-05-20 Thread Markus Armbruster
Uh, one more little thing... this commit message isn't quite right: John Snow writes: > We can have a two-letter variable name, as a treat. > > Signed-off-by: John Snow > > -- This line is not a separator. > > I don't want to use 'chr' or 'char', and in context 'ch' works well > enough. I

Re: [PATCH v5 03/13] virtio-gpu: Add udmabuf helpers

2021-05-20 Thread Gerd Hoffmann
On Thu, May 20, 2021 at 06:23:58AM +, Kasireddy, Vivek wrote: > Hi Gerd, > > > > +#ifdef CONFIG_LINUX > > > > > +void virtio_gpu_init_udmabuf(struct virtio_gpu_simple_resource *res) > > > > > +#else > > > > > +void *virtio_gpu_init_udmabuf(struct virtio_gpu_simple_resource *res) > > > +{

Re: [PATCH v12 6/8] arm64: kvm: Expose KVM_ARM_CAP_MTE

2021-05-20 Thread Marc Zyngier
On Wed, 19 May 2021 14:26:31 +0100, Steven Price wrote: > > On 17/05/2021 18:40, Marc Zyngier wrote: > > On Mon, 17 May 2021 13:32:37 +0100, > > Steven Price wrote: > >> > >> It's now safe for the VMM to enable MTE in a guest, so expose the > >> capability to user space. > >> > >>

Re: [PATCH v12 8/8] KVM: arm64: Document MTE capability and ioctl

2021-05-20 Thread Marc Zyngier
On Wed, 19 May 2021 15:09:23 +0100, Steven Price wrote: > > On 17/05/2021 19:09, Marc Zyngier wrote: > > On Mon, 17 May 2021 13:32:39 +0100, > > Steven Price wrote: > >> > >> A new capability (KVM_CAP_ARM_MTE) identifies that the kernel supports > >> granting a guest access to the tags, and

[PATCH] hw/virtio: Have virtio_bus_get_vdev_bad_features() return 64-bit value

2021-05-20 Thread Philippe Mathieu-Daudé
In commit 019a3edbb25 ("virtio: make features 64bit wide") we increased the 'features' field to 64-bit, but forgot to update the virtio_bus_get_vdev_bad_features() helper. The 'bad features' are truncated to 32-bit. The virtio_net_bad_features() handler from the virtio-net devices is potentially

Re: [PATCH v2 1/3] qemu-config: parse configuration files to a QDict

2021-05-20 Thread Kevin Wolf
Am 20.05.2021 um 11:26 hat Paolo Bonzini geschrieben: > Change the parser to put the values into a QDict and pass them > to a callback. qemu_config_parse's QemuOpts creation is > itself turned into a callback function. > > This is useful for -readconfig to support keyval-based options; > getting

Re: [PATCH v12 6/8] arm64: kvm: Expose KVM_ARM_CAP_MTE

2021-05-20 Thread Steven Price
On 20/05/2021 11:09, Marc Zyngier wrote: > On Wed, 19 May 2021 14:26:31 +0100, > Steven Price wrote: >> >> On 17/05/2021 18:40, Marc Zyngier wrote: >>> On Mon, 17 May 2021 13:32:37 +0100, >>> Steven Price wrote: It's now safe for the VMM to enable MTE in a guest, so expose the

[PATCH v2 2/3] vl: plumb keyval-based options into -readconfig

2021-05-20 Thread Paolo Bonzini
Let -readconfig support parsing command line options into QDict or QemuOpts. This will be used to add back support for objects in -readconfig. Cc: Markus Armbruster Cc: qemu-sta...@nongnu.org Reviewed-by: Kevin Wolf Signed-off-by: Paolo Bonzini --- v1->v2: fix overlong line

Re: [PATCH v6 0/5] hw/block/fdc: Allow Kconfig-selecting ISA bus/SysBus floppy controllers

2021-05-20 Thread Paolo Bonzini
On 19/05/21 23:39, John Snow wrote: On 5/19/21 12:34 PM, Philippe Mathieu-Daudé wrote: Hi, The floppy disc controllers pulls in irrelevant devices (sysbus in an ISA-only machine, ISA bus + isa devices on a sysbus-only machine). This series clean that by extracting each device in its own file,

Re: [PATCH v12 8/8] KVM: arm64: Document MTE capability and ioctl

2021-05-20 Thread Steven Price
On 20/05/2021 11:24, Marc Zyngier wrote: > On Wed, 19 May 2021 15:09:23 +0100, > Steven Price wrote: >> >> On 17/05/2021 19:09, Marc Zyngier wrote: >>> On Mon, 17 May 2021 13:32:39 +0100, >>> Steven Price wrote: [...] +bytes (i.e. 1/16th of the corresponding size). Each byte contains a

Re: [PATCH] hw/virtio: Have virtio_bus_get_vdev_bad_features() return 64-bit value

2021-05-20 Thread Cornelia Huck
On Thu, 20 May 2021 12:28:22 +0200 Philippe Mathieu-Daudé wrote: > In commit 019a3edbb25 ("virtio: make features 64bit wide") we > increased the 'features' field to 64-bit, but forgot to update > the virtio_bus_get_vdev_bad_features() helper. The 'bad features' > are truncated to 32-bit. The

[PATCH] ui/spice-display: check NULL pointer in interface_release_resource()

2021-05-20 Thread Mauro Matteo Cascella
Check rext.info to avoid potential NULL pointer dereference. A similar check exists in interface_release_resource() in hw/display/qxl.c. Reported-by: Yu Lu Signed-off-by: Mauro Matteo Cascella --- ui/spice-display.c | 4 1 file changed, 4 insertions(+) diff --git a/ui/spice-display.c

Re: [PATCH v2 3/7] ACPI ERST: support for ACPI ERST feature

2021-05-20 Thread Igor Mammedov
On Tue, 18 May 2021 17:08:31 + Eric DeVolder wrote: > Hi Igor, > Thanks for the information. I am primarily interested in ensuring data > persistence in the case of #1. > As it stands so far, I have yet to observe any kind of write back into the > backing file. Just to summarize, > what

Re: [PATCH v3 6/8] hw/intc: GICv3 redistributor ITS processing

2021-05-20 Thread Peter Maydell
On Fri, 30 Apr 2021 at 00:42, Shashi Mallela wrote: > > Implemented lpi processing at redistributor to get lpi config info > from lpi configuration table,determine priority,set pending state in > lpi pending table and forward the lpi to cpuif.Added logic to invoke > redistributor lpi processing

[RFC PATCH 03/12] exec/memory_ldst: Return MEMTX_UNALIGNED_ERROR for unaligned addresses

2021-05-20 Thread Philippe Mathieu-Daudé
All address_space internal handlers have the /* warning: addr must be aligned */ comment, so we don't expect any caller to pass unaligned addresses. Now than we added the MemTxAttrs.aligned attribute, callers might want to pass unaligned addresses. In case they do, be ready and return

[RFC PATCH 05/12] exec/memory_ldst_cached: Use correct type size

2021-05-20 Thread Philippe Mathieu-Daudé
Use uint16_t for (unsigned) 16-bit word. Signed-off-by: Philippe Mathieu-Daudé --- include/exec/memory_ldst_cached.h.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/exec/memory_ldst_cached.h.inc b/include/exec/memory_ldst_cached.h.inc index

[RFC PATCH 02/12] exec/memattrs: Add attribute/error for address alignment

2021-05-20 Thread Philippe Mathieu-Daudé
A bus master might specify the 'aligned' attribute to enforce a transaction using aligned address. If the address is not aligned, the accessor will return MEMTX_UNALIGNED_ERROR. Signed-off-by: Philippe Mathieu-Daudé --- include/exec/memattrs.h | 3 +++ 1 file changed, 3 insertions(+) diff

[RFC PATCH 08/12] exec/memory_ldst_cached: Check address alignment if requested

2021-05-20 Thread Philippe Mathieu-Daudé
If the caller requires strict alignment, check the address satisfies it before doing the transaction. Otherwise return a MEMTX_UNALIGNED_ERROR. Signed-off-by: Philippe Mathieu-Daudé --- include/exec/memory_ldst_cached.h.inc | 42 +++ 1 file changed, 42 insertions(+)

[RFC PATCH 04/12] exec/memory_ldst_cached: Sort declarations

2021-05-20 Thread Philippe Mathieu-Daudé
To ease the file review, sort the declarations by the size of the access (8, 16, 32). Simple code movement, no logical change. Signed-off-by: Philippe Mathieu-Daudé --- include/exec/memory_ldst_cached.h.inc | 46 +-- 1 file changed, 23 insertions(+), 23 deletions(-)

[RFC PATCH 09/12] hw/virtio: Use correct type sizes

2021-05-20 Thread Philippe Mathieu-Daudé
Use uint16_t for unsigned 16-bit data and uint32_t for unsigned 32-bit. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/virtio/virtio-access.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hw/virtio/virtio-access.h b/include/hw/virtio/virtio-access.h

[RFC PATCH 07/12] exec/memory_ldst_cached: Document aligned addresses are expected

2021-05-20 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/exec/memory_ldst_cached.h.inc | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/exec/memory_ldst_cached.h.inc b/include/exec/memory_ldst_cached.h.inc index a8f146251d4..515beb48f47 100644 ---

[RFC PATCH 10/12] hw/virtio: Extract virtio_lduw_phys_cached_with_attrs()

2021-05-20 Thread Philippe Mathieu-Daudé
To be able to specify memory transaction attributes (such the address alignment), extract virtio_lduw_phys_cached_with_attrs() from virtio_lduw_phys_cached(). Signed-off-by: Philippe Mathieu-Daudé --- include/hw/virtio/virtio-access.h | 35 +++ 1 file changed, 31

Re: [PULL v2 00/29] testing and plugin updates

2021-05-20 Thread Peter Maydell
On Tue, 18 May 2021 at 10:07, Alex Bennée wrote: > > The following changes since commit 367196caa07ac31443bc360145cc10fbef4fdf92: > > Merge remote-tracking branch > 'remotes/vivier2/tags/trivial-branch-for-6.1-pull-request' into staging > (2021-05-17 16:44:47 +0100) > > are available in the

Re: [PATCH v3 4/6] gitlab-ci: Add ccache in $PATH and display statistics

2021-05-20 Thread Philippe Mathieu-Daudé
+Stefan/Daniel On 5/20/21 10:02 AM, Thomas Huth wrote: > On 19/05/2021 20.45, Philippe Mathieu-Daudé wrote: >> If a runner has ccache installed, use it and display statistics >> at the end of the build. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >>   .gitlab-ci.d/buildtest-template.yml |

Re: [PATCH v12 4/8] arm64: kvm: Introduce MTE VM feature

2021-05-20 Thread Catalin Marinas
On Mon, May 17, 2021 at 01:32:35PM +0100, Steven Price wrote: > diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c > index c5d1f3c87dbd..8660f6a03f51 100644 > --- a/arch/arm64/kvm/mmu.c > +++ b/arch/arm64/kvm/mmu.c > @@ -822,6 +822,31 @@ transparent_hugepage_adjust(struct kvm_memory_slot >

Re: [PATCH v12 7/8] KVM: arm64: ioctl to fetch/store tags in a guest

2021-05-20 Thread Catalin Marinas
On Mon, May 17, 2021 at 01:32:38PM +0100, Steven Price wrote: > diff --git a/arch/arm64/include/uapi/asm/kvm.h > b/arch/arm64/include/uapi/asm/kvm.h > index 24223adae150..b3edde68bc3e 100644 > --- a/arch/arm64/include/uapi/asm/kvm.h > +++ b/arch/arm64/include/uapi/asm/kvm.h > @@ -184,6 +184,17 @@

[RFC PATCH 00/12] exec/memory: Experimental API to catch unaligned accesses

2021-05-20 Thread Philippe Mathieu-Daudé
Hi, This series is an experiment after chatting with Stefan and having received review from Peter / Richard on an orthogonal series aiming to handle unaligned pointers (atomically): https://www.mail-archive.com/qemu-devel@nongnu.org/msg808954.html Here we don't aim to fix unatomic accesses,

[RFC PATCH 01/12] exec/memory_ldst: Use correct type sizes

2021-05-20 Thread Philippe Mathieu-Daudé
Use uint8_t for (unsigned) byte, and uint16_t for (unsigned) 16-bit word. Signed-off-by: Philippe Mathieu-Daudé --- include/exec/memory_ldst.h.inc | 16 memory_ldst.c.inc | 20 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git

[RFC PATCH 12/12] hw/virtio: Display error if vring flag field is not aligned

2021-05-20 Thread Philippe Mathieu-Daudé
Per the virtio spec [*] the vring is aligned, so the 'flag' field is also 16-bit aligned. If it is not, this is a guest error, and we'd rather report any malicious activity. Enforce the transaction alignment by setting the 'aligned' attribute and log unaligned addresses. Signed-off-by: Philippe

[RFC PATCH 06/12] exec/memory_ldst_cached: Set MemTxResult on success

2021-05-20 Thread Philippe Mathieu-Daudé
If the caller passed a MemTxResult argument, we must fill it with the transaction result. We do it when no cache is present, complete the other case (which is always successful). Fixes: 48564041a73 ("exec: reintroduce MemoryRegion caching") Signed-off-by: Philippe Mathieu-Daudé ---

[RFC PATCH 11/12] hw/virtio: Have vring_avail_flags() return a boolean value

2021-05-20 Thread Philippe Mathieu-Daudé
To be able to check the memory transaction succeeded, change the vring_avail_flags() to take the value to read by argument, so we can return a boolean whether we succeeded or not. Signed-off-by: Philippe Mathieu-Daudé --- hw/virtio/virtio.c | 13 + 1 file changed, 9 insertions(+), 4

Re: [PATCH 1/3] virtiofsd: Find original inode ID of mount points

2021-05-20 Thread Dr. David Alan Gilbert
* Max Reitz (mre...@redhat.com) wrote: > On 17.05.21 16:57, Vivek Goyal wrote: > > On Wed, May 12, 2021 at 02:55:42PM +0200, Max Reitz wrote: > > > Mount point directories represent two inodes: On one hand, they are a > > > normal directory on their parent filesystem. On the other, they are the >

Re: [PATCH v12 3/8] arm64: mte: Sync tags for pages where PTE is untagged

2021-05-20 Thread Steven Price
On 19/05/2021 19:06, Catalin Marinas wrote: > On Mon, May 17, 2021 at 01:32:34PM +0100, Steven Price wrote: >> A KVM guest could store tags in a page even if the VMM hasn't mapped >> the page with PROT_MTE. So when restoring pages from swap we will >> need to check to see if there are any saved

Re: [PATCH] hw/arm/raspi: Remove deprecated raspi2/raspi3 aliases

2021-05-20 Thread Peter Maydell
On Tue, 11 May 2021 at 04:25, Philippe Mathieu-Daudé wrote: > > Hi Peter, > > Can this patch go via your qemu-arm tree (it is reviewed)? Sure. Applied to target-arm.next, thanks. -- PMM

Re: [RFC PATCH 02/11] hw/ide: Add PCIIDEState::isa_bus link

2021-05-20 Thread BALATON Zoltan
On Thu, 20 May 2021, Mark Cave-Ayland wrote: On 20/05/2021 09:35, Stefan Hajnoczi wrote: I realized I don't really understand how ISA IDE and PCI IDE interact in PIIX3: You're not alone with that. :-) - ISA IDE has well-known PIO registers that are always present? - PCI IDE has the same

Re: [PATCH v12 3/8] arm64: mte: Sync tags for pages where PTE is untagged

2021-05-20 Thread Catalin Marinas
On Thu, May 20, 2021 at 12:55:21PM +0100, Steven Price wrote: > On 19/05/2021 19:06, Catalin Marinas wrote: > > On Mon, May 17, 2021 at 01:32:34PM +0100, Steven Price wrote: > >> A KVM guest could store tags in a page even if the VMM hasn't mapped > >> the page with PROT_MTE. So when restoring

Re: [PULL 00/10] Gitlab-CI, qtest, moxie removal and misc patches

2021-05-20 Thread Peter Maydell
On Thu, 20 May 2021 at 14:06, Philippe Mathieu-Daudé wrote: > > On 5/20/21 9:43 AM, Paolo Bonzini wrote: > > On 20/05/21 07:08, Thomas Huth wrote: > >>> OK... Not sure how to detect it from ninja then. > >> > >> Every time you pull, there could be changes to the "configure" script > >> which

Re: [PATCH v2 2/7] block-copy: improve documentation of BlockCopyTask and BlockCopyState types and functions

2021-05-20 Thread Vladimir Sementsov-Ogievskiy
18.05.2021 13:07, Emanuele Giuseppe Esposito wrote: As done in BlockCopyCallState, categorize BlockCopyTask and BlockCopyState in IN, State and OUT fields. This is just to understand which field has to be protected with a lock. BlockCopyTask .zeroes is a special case, because it is only

[PATCH 0/1] virtio: disable partitions scanning for no partitions block

2021-05-20 Thread Yury Kamenev
Some virtio blocks definitely have no partitions and should not be scanned. Yury Kamenev (1): virtio: disable partitions scanning for no partitions block hw/block/virtio-blk.c | 4 include/hw/virtio/virtio-blk.h | 1 +

Re: [PATCH v2 2/7] block-copy: improve documentation of BlockCopyTask and BlockCopyState types and functions

2021-05-20 Thread Emanuele Giuseppe Esposito
On 20/05/2021 17:00, Vladimir Sementsov-Ogievskiy wrote: 18.05.2021 13:07, Emanuele Giuseppe Esposito wrote: As done in BlockCopyCallState, categorize BlockCopyTask and BlockCopyState in IN, State and OUT fields. This is just to understand which field has to be protected with a lock.

Re: [RFC PATCH 0/7] Support protection keys in an AMD EPYC-Milan VM

2021-05-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20210520145647.3483809-1-david.edmond...@oracle.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210520145647.3483809-1-david.edmond...@oracle.com Subject: [RFC PATCH 0/7]

[PATCH 1/1] virtio: disable partitions scanning for no partitions block

2021-05-20 Thread Yury Kamenev
Signed-off-by: Yury Kamenev --- hw/block/virtio-blk.c | 4 include/hw/virtio/virtio-blk.h | 1 + include/standard-headers/linux/virtio_blk.h | 1 + 3 files changed, 6 insertions(+) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index

[PATCH 2/3] qapi/parser.py: add ParsedExpression type

2021-05-20 Thread John Snow
This is an immutable, named, typed tuple. It's nicer than arbitrary dicts for passing data around when using strict typing. We may upgrade this to a @dataclass style class in the future if we want to support mutability at a later time. (And after 3.7+ is available for use.) Turn parser.exprs into

[PATCH 0/3] qapi: static typing conversion, pt5c

2021-05-20 Thread John Snow
This is part five (c), and focuses on sharing strict types between parser.py and expr.py. gitlab: https://gitlab.com/jsnow/qemu/-/commits/python-qapi-cleanup-pt5c Requirements: - Python 3.6+ - mypy >= 0.770 - pylint >= 2.6.0 (2.7.0+ when using Python 3.9+) Every commit should pass with: -

Re: [PATCH v12 4/8] arm64: kvm: Introduce MTE VM feature

2021-05-20 Thread Steven Price
On 20/05/2021 12:54, Catalin Marinas wrote: > On Mon, May 17, 2021 at 01:32:35PM +0100, Steven Price wrote: >> diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c >> index c5d1f3c87dbd..8660f6a03f51 100644 >> --- a/arch/arm64/kvm/mmu.c >> +++ b/arch/arm64/kvm/mmu.c >> @@ -822,6 +822,31 @@

[RFC PATCH] gitlab: add special rule for the hexagon container

2021-05-20 Thread Alex Bennée
The hexagon container is always manually built but of course not everyone will be building it themselves and pushing to their registries. We still need to create a "local" registry copy for the actual gitlab tests to run. We don't build it in this case, just pull it across from the upstream

Re: [PATCH v12 3/8] arm64: mte: Sync tags for pages where PTE is untagged

2021-05-20 Thread Catalin Marinas
On Thu, May 20, 2021 at 01:25:50PM +0100, Catalin Marinas wrote: > On Thu, May 20, 2021 at 12:55:21PM +0100, Steven Price wrote: > > The problem I hit is one of include dependencies: > > > > is_swap_pte() is defined (as a static inline) in > > include/linux/swapops.h. However the definition

Re: [PATCH] hw/intc/arm_gicv3_cpuif: Fix EOIR write access check logic

2021-05-20 Thread Peter Maydell
Ping for code review, please? thanks -- PMM On Mon, 10 May 2021 at 16:00, Peter Maydell wrote: > > In icc_eoir_write() we assume that we can identify the group of the > IRQ being completed based purely on which register is being written > to and the current CPU state, and that "CPU state

Re: [PATCH 0/6] hw/arm: Fix modelling of SSE-300 TCMs and SRAM

2021-05-20 Thread Peter Maydell
On Mon, 10 May 2021 at 20:08, Peter Maydell wrote: > > This patchset fixes some bugs in how we were modelling the > TCMs and the SRAM in the SSE-300 which were preventing > Arm TF-M from booting on our AN547 model; there are also > some fixes to things I noticed while I was in the code. > > The

Re: [PULL v3 36/42] target/riscv: Remove the hardcoded MSTATUS_SD macro

2021-05-20 Thread Peter Maydell
On Tue, 11 May 2021 at 11:22, Alistair Francis wrote: > > Signed-off-by: Alistair Francis > Reviewed-by: Richard Henderson > Message-id: > fcc125d96da941b56c817c9dd6068dc36478fc53.1619234854.git.alistair.fran...@wdc.com > --- > target/riscv/cpu_bits.h | 10 -- > target/riscv/csr.c

Re: QEMU SMMUv3 stage 2 translation

2021-05-20 Thread Auger Eric
Hi Shashi, [ fixing my email address ] On 5/13/21 4:25 PM, Shashi Mallela wrote: > Hi, > > Since the current SMMUv3 qemu implementation only supports stage 1 > translation,wanted to understand if the implementation could be extended > to stage 2 translation support and if yes what is the

[PATCH v2 18/33] block/copy-before-write: cbw_init(): use options

2021-05-20 Thread Vladimir Sementsov-Ogievskiy
One more step closer to .bdrv_open(): use options instead of plain arguments. Move to bdrv_open_child() calls, native for drive open handlers. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/copy-before-write.c | 40 +-- 1 file changed, 26

[PATCH v2 26/33] iotests/222: fix pylint and mypy complains

2021-05-20 Thread Vladimir Sementsov-Ogievskiy
Here: - long line - move to new interface of vm.qmp() (direct passing dict), to avoid mypy false-positive, as it thinks that unpacked dict is a positional argument. - extra parenthesis - handle event_wait possible None value Signed-off-by: Vladimir Sementsov-Ogievskiy ---

[PATCH v2 19/33] block/copy-before-write: initialize block-copy bitmap

2021-05-20 Thread Vladimir Sementsov-Ogievskiy
We are going to publish copy-before-write filter to be used in separate of backup. Future step would support bitmap for the filter. But let's start from full set bitmap. We have to modify backup, as bitmap is first initialized by copy-before-write filter, and then backup modifies it.

[PATCH v2 29/33] iotests.py: hmp_qemu_io: support qdev

2021-05-20 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/iotests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index c7ec16c082..9fa0162b07 100644 --- a/tests/qemu-iotests/iotests.py +++

[PATCH v2 33/33] iotests/image-fleecing: add test-case for copy-before-write filter

2021-05-20 Thread Vladimir Sementsov-Ogievskiy
New fleecing method becomes available: copy-before-write filter. Actually we don't need backup job to setup image fleecing. Add test for new recommended way of image fleecing. Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/tests/image-fleecing | 50 +-

Re: [PATCH] virtio: Clarify MR transaction optimization

2021-05-20 Thread Stefan Hajnoczi
On Mon, May 17, 2021 at 03:26:37PM +0200, Greg Kurz wrote: > The device model batching its ioeventfds in a single MR transaction is > an optimization. Clarify this in virtio-scsi, virtio-blk and generic > virtio code. Also clarify that the transaction must commit before > closing ioeventfds so

Re: [RFC PATCH 17/25] hw/virtio: Use correct type sizes

2021-05-20 Thread Richard Henderson
On 5/18/21 1:36 PM, Philippe Mathieu-Daudé wrote: -static inline int virtio_lduw_p(VirtIODevice *vdev, const void *ptr) +static inline uint16_t virtio_lduw_p(VirtIODevice *vdev, const void *ptr) While this one looks obviously correct, -static inline int virtio_ldl_p(VirtIODevice *vdev, const

Re: [RFC PATCH 00/25] exec: Add load/store API for aligned pointers

2021-05-20 Thread Richard Henderson
On 5/19/21 2:40 PM, Philippe Mathieu-Daudé wrote: On 5/19/21 9:20 PM, Richard Henderson wrote: On 5/18/21 1:36 PM, Philippe Mathieu-Daudé wrote: The series is decomposed as: - cleanups (1-6) - clean ldst API using macros (7-13) - add aligned ldst methods (14) - add aligned memory methods

Re: [RFC PATCH v2] gitlab: add special rule for the hexagon container

2021-05-20 Thread Cornelia Huck
On Thu, 20 May 2021 16:38:31 +0100 Alex Bennée wrote: > The hexagon container is always manually built but of course not > everyone will be building it themselves and pushing to their > registries. We still need to create a "local" registry copy for the > actual gitlab tests to run. We don't

[PATCH v1 7/8] gdbstub: tidy away reverse debugging check into function

2021-05-20 Thread Alex Bennée
In theory we don't need an actual record/replay to enact reverse debugging on a purely deterministic system (i.e one with no external inputs running under icount). Tidy away the logic into a little function. Signed-off-by: Alex Bennée --- gdbstub.c | 13 +++-- 1 file changed, 11

[PATCH v1 5/8] gdbstub: Replace GdbCmdContext with plain g_array()

2021-05-20 Thread Alex Bennée
From: Philippe Mathieu-Daudé Instead of jumping through hoops let glib deal with both tracking the number of elements and auto freeing the memory once we are done. This allows is to drop the usage of ALLOCA(3) which the man-page mentions its "use is discouraged". Signed-off-by: Alex Bennée

[PULL 14/15] qapi/parser: allow 'ch' variable name

2021-05-20 Thread Markus Armbruster
From: John Snow We can have a two-letter variable name, as a treat. Signed-off-by: John Snow Message-Id: <20210519183951.3946870-15-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- scripts/qapi/pylintrc | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v6 08/19] i386: introduce hv_cpuid_cache

2021-05-20 Thread Eduardo Habkost
On Thu, Apr 22, 2021 at 06:11:19PM +0200, Vitaly Kuznetsov wrote: > Just like with cpuid_cache, it makes no sense to call > KVM_GET_SUPPORTED_HV_CPUID more than once and instead of (ab)using > env->features[] and/or trying to keep all the code in one place, it is > better to introduce persistent

Re: [RFC PATCH v2] gitlab: add special rule for the hexagon container

2021-05-20 Thread Willian Rampazzo
On Thu, May 20, 2021 at 12:38 PM Alex Bennée wrote: > > The hexagon container is always manually built but of course not > everyone will be building it themselves and pushing to their > registries. We still need to create a "local" registry copy for the > actual gitlab tests to run. We don't

Re: [PULL 42/46] softfloat: Move div_floats to softfloat-parts.c.inc

2021-05-20 Thread Peter Maydell
On Thu, 20 May 2021 at 17:15, Richard Henderson wrote: > > On 5/20/21 8:40 AM, Peter Maydell wrote: > > On Sun, 16 May 2021 at 13:38, Richard Henderson > > Hi -- Coverity is suspicious about this line (CID 1453209), > > because udiv_qrrnd()'s prototype is > > static inline uint64_t

[PULL v2 0/9] s390x update

2021-05-20 Thread Cornelia Huck
180521-2' into staging (2021-05-20 10:00:58 +0100) are available in the Git repository at: https://gitlab.com/cohuck/qemu.git tags/s390x-20210520-v2 for you to fetch changes up to f66487756b0553b156d8e3e81bc6411cfc38176e: tests/tcg/x86_64: add vsyscall smoke test (2021-05-20 14:19:30

[PULL v2 4/9] accel/tcg: Assert that tb->size != 0 after translation

2021-05-20 Thread Cornelia Huck
From: Ilya Leoshkevich If arch-specific code generates a translation block of size 0, tb_gen_code() may generate a spurious exception. Add an assertion in order to catch such situations early. Signed-off-by: Ilya Leoshkevich Reviewed-by: David Hildenbrand Message-Id:

[PULL v2 3/9] target/xtensa: Make sure that tb->size != 0

2021-05-20 Thread Cornelia Huck
From: Ilya Leoshkevich tb_gen_code() assumes that tb->size must never be zero, otherwise it may produce spurious exceptions. For xtensa this may happen when decoding an unknown instruction, when handling a write into the CCOUNT or CCOMPARE special register and when single-stepping the first

[PULL v2 1/9] target/s390x: Fix translation exception on illegal instruction

2021-05-20 Thread Cornelia Huck
From: Ilya Leoshkevich Hitting an uretprobe in a s390x TCG guest causes a SIGSEGV. What happens is: * uretprobe maps a userspace page containing an invalid instruction. * uretprobe replaces the target function's return address with the address of that page. * When tb_gen_code() is called on

[PULL v2 2/9] target/arm: Make sure that commpage's tb->size != 0

2021-05-20 Thread Cornelia Huck
From: Ilya Leoshkevich tb_gen_code() assumes that tb->size must never be zero, otherwise it may produce spurious exceptions. For ARM this may happen when creating a translation block for the commpage. Fix by pretending that commpage translation blocks have at least one instruction.

[PULL v2 6/9] hw/s390x/ccw: Register qbus type in abstract TYPE_CCW_DEVICE parent

2021-05-20 Thread Cornelia Huck
From: Philippe Mathieu-Daudé Instead of having all TYPE_CCW_DEVICE children set the bus type to TYPE_VIRTUAL_CSS_BUS, do it once in the abstract parent. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Eric Farman Message-Id: <20210424145313.3287400-1-f4...@amsat.org> Signed-off-by: Cornelia

[PULL v2 5/9] vfio-ccw: Permit missing IRQs

2021-05-20 Thread Cornelia Huck
From: Eric Farman Commit 690e29b91102 ("vfio-ccw: Refactor ccw irq handler") changed one of the checks for the IRQ notifier registration from saying "the host needs to recognize the only IRQ that exists" to saying "the host needs to recognize ANY IRQ that exists." And this worked fine, because

[PULL v2 7/9] vfio-ccw: Attempt to clean up all IRQs on error

2021-05-20 Thread Cornelia Huck
From: Eric Farman The vfio_ccw_unrealize() routine makes an unconditional attempt to unregister every IRQ notifier, though they may not have been registered in the first place (when running on an older kernel, for example). Let's mirror this behavior in the error cleanups in vfio_ccw_realize()

[PULL 15/15] qapi/parser: add docstrings

2021-05-20 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-Id: <20210519183951.3946870-16-js...@redhat.com> Reviewed-by: Markus Armbruster [Doc string spacing tweaked slightly] Signed-off-by: Markus Armbruster --- scripts/qapi/parser.py | 69 ++ 1 file changed,

[PULL 11/15] qapi/parser: Rework _check_pragma_list_of_str as a TypeGuard

2021-05-20 Thread Markus Armbruster
From: John Snow TypeGuards wont exist in Python proper until 3.10. Ah well. We can hack up our own by declaring this function to return the type we claim it checks for and using this to safely downcast object -> List[str]. In so doing, I bring this function under _pragma so it can use the

[PULL 08/15] qapi/parser: Use @staticmethod where appropriate

2021-05-20 Thread Markus Armbruster
From: John Snow No self, no thank you! (Quiets pylint warnings.) Signed-off-by: John Snow Message-Id: <20210519183951.3946870-9-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- scripts/qapi/parser.py | 6 -- 1 file changed, 4 insertions(+), 2

Re: [PULL v2 0/9] s390x update

2021-05-20 Thread Peter Maydell
gt; Merge remote-tracking branch > 'remotes/stsquad/tags/pull-testing-and-plugin-updates-180521-2' into staging > (2021-05-20 10:00:58 +0100) > > are available in the Git repository at: > > https://gitlab.com/cohuck/qemu.git tags/s390x-20210520-v2 > > for you to fetch cha

Re: [RFC PATCH 17/25] hw/virtio: Use correct type sizes

2021-05-20 Thread Philippe Mathieu-Daudé
On 5/20/21 6:27 PM, Richard Henderson wrote: > On 5/18/21 1:36 PM, Philippe Mathieu-Daudé wrote: >> -static inline int virtio_lduw_p(VirtIODevice *vdev, const void *ptr) >> +static inline uint16_t virtio_lduw_p(VirtIODevice *vdev, const void >> *ptr) > > While this one looks obviously correct, >

Re: [PATCH v3 02/10] gitlab-ci: Rename acceptance_test_job -> integration_test_job

2021-05-20 Thread Willian Rampazzo
On Wed, May 19, 2021 at 4:38 PM Philippe Mathieu-Daudé wrote: > > On 5/19/21 9:26 PM, Willian Rampazzo wrote: > > On Wed, May 19, 2021 at 3:55 PM Philippe Mathieu-Daudé > > wrote: > >> > >> From: Philippe Mathieu-Daudé > >> > >> The acceptance tests aren't accepting anything, > >> rename them

<    1   2   3   4   >