[PATCH v4 12/13] qapi/parser: Silence too-few-public-methods warning

2021-09-30 Thread John Snow
Eh. Not worth the fuss today. There are bigger fish to fry. Signed-off-by: John Snow --- scripts/qapi/parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py index 0265b47b955..1b006cdc133 100644 --- a/scripts/qapi/parser.py +++

[PATCH v2] Hexagon (target/hexagon) probe the stores in a packet at start of commit

2021-09-30 Thread Taylor Simpson
When a packet has 2 stores, either both commit or neither commit. At the beginning of gen_commit_packet, we check for multiple stores. If there are multiple stores, call a helper that will probe each of them before proceeding with the commit. Note that we don't call the probe helper for packets

Re: [PATCH v2] Hexagon (target/hexagon) probe the stores in a packet at start of commit

2021-09-30 Thread Philippe Mathieu-Daudé
Hi Taylor, On 9/30/21 23:16, Taylor Simpson wrote: > When a packet has 2 stores, either both commit or neither commit. > At the beginning of gen_commit_packet, we check for multiple stores. > If there are multiple stores, call a helper that will probe each of > them before proceeding with the

[PATCH 2/3] virtio-iommu: Default to bypass during boot

2021-09-30 Thread Jean-Philippe Brucker
Currently the virtio-iommu device must be programmed before it allows DMA from any PCI device. This can make the VM entirely unusable when a virtio-iommu driver isn't present, for example in a bootloader that loads the OS from storage. Similarly to the other vIOMMU implementations, default to DMA

Re: [PATCH 14/16] tests/acceptance/ppc_prep_40p.py: NetBSD 7.1.2 location update

2021-09-30 Thread Philippe Mathieu-Daudé
On 9/30/21 21:19, Reinoud Zandijk wrote: > On Mon, Sep 27, 2021 at 05:26:43PM +0200, Philippe Mathieu-Daudé wrote: >> On 9/24/21 20:55, Cleber Rosa wrote: >>> The NetBSD-7.1.2-prep.iso is no longer available on the CDN, but it's >>> still available in the archive. >>> >>> Let's update its location

[PATCH v4 11/13] qapi/parser: enable mypy checks

2021-09-30 Thread John Snow
Signed-off-by: John Snow --- As always, this can be merged with the previous commit. Signed-off-by: John Snow --- scripts/qapi/mypy.ini | 5 - 1 file changed, 5 deletions(-) diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini index 54ca4483d6d..66253564297 100644 ---

Re: [PATCH v3] nbd/server: Add --selinux-label option

2021-09-30 Thread Eric Blake
On Thu, Sep 30, 2021 at 11:54:58AM +0300, Vladimir Sementsov-Ogievskiy wrote: > 9/30/21 11:47, Richard W.M. Jones wrote: > > Under SELinux, Unix domain sockets have two labels. One is on the > > disk and can be set with commands such as chcon(1). There is a > > different label stored in memory

[PATCH 1/3] NOMERGE: virtio-iommu: Add definitions for VIRTIO_IOMMU_F_BYPASS_CONFIG

2021-09-30 Thread Jean-Philippe Brucker
Pull VIRTIO_IOMMU_F_BYPASS_CONFIG changes from Linux (not upstream yet). Signed-off-by: Jean-Philippe Brucker --- include/standard-headers/linux/virtio_iommu.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/standard-headers/linux/virtio_iommu.h

Re: [PATCH] failover: allow to pause the VM during the migration

2021-09-30 Thread Laine Stump
On 9/30/21 1:09 PM, Laurent Vivier wrote: If we want to save a snapshot of a VM to a file, we used to follow the following steps: 1- stop the VM: (qemu) stop 2- migrate the VM to a file: (qemu) migrate "exec:cat > snapshot" 3- resume the VM: (qemu) cont After that we can restore

[PATCH v4 03/13] qapi/parser: fix unused check_args_section arguments

2021-09-30 Thread John Snow
Pylint informs us we're not using these arguments. Oops, it's right. Correct the error message and remove the remaining unused parameter. Fix test output now that the error message is improved. Fixes: e151941d1b Signed-off-by: John Snow --- scripts/qapi/parser.py| 16

[PATCH v4 07/13] qapi/parser: Introduce NullSection

2021-09-30 Thread John Snow
Here's the weird bit. QAPIDoc generally expects -- virtually everywhere -- that it will always have a current section. The sole exception to this is in the case that end_comment() is called, which leaves us with *no* section. However, in this case, we also don't expect to actually ever mutate the

[PATCH v4 13/13] qapi/parser: enable pylint checks

2021-09-30 Thread John Snow
Signed-off-by: John Snow --- This can be merged with the previous commit, if desired. Signed-off-by: John Snow --- scripts/qapi/pylintrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc index 5b7dbc58ad8..b259531a726 100644

Re: [PATCH 1/3] hw/intc/arm_gicv3: Move checking of redist-region-count to arm_gicv3_common_realize

2021-09-30 Thread Philippe Mathieu-Daudé
On 9/30/21 17:08, Peter Maydell wrote: > The GICv3 devices have an array property redist-region-count. > Currently we check this for errors (bad values) in > gicv3_init_irqs_and_mmio(), just before we use it. Move this error > checking to the arm_gicv3_common_realize() function, where we >

Re: [PULL v2 00/33] x86 and misc changes for 2021-09-28

2021-09-30 Thread Peter Maydell
On Thu, 30 Sept 2021 at 16:00, Paolo Bonzini wrote: > > The following changes since commit ba0fa56bc06e563de68d2a2bf3ddb0cfea1be4f9: > > Merge remote-tracking branch > 'remotes/vivier/tags/q800-for-6.2-pull-request' into staging (2021-09-29 > 21:20:49 +0100) > > are available in the Git

Re: [PATCH qemu v2] QEMU coding style mandates spaces for indentation. This change replaces TABs in block files.

2021-09-30 Thread Eric Blake
On Thu, Sep 30, 2021 at 02:55:16PM +0200, Kevin Wolf wrote: > > > When we're changing these lines anyway, let's make sure to have > > > consistent alignment with the surrounding code. So I would prefer > > > something like: > > > > > > +.bdrv_close = parallels_close, > > >

[PATCH v4 05/13] qapi/parser: remove FIXME comment from _append_body_line

2021-09-30 Thread John Snow
True, we do not check the validity of this symbol -- but we don't check the validity of definition names during parse, either -- that happens later, during the expr check. I don't want to introduce a dependency on expr.py:check_name_str here and introduce a cycle. Instead, rest assured that a

[PATCH v4 01/13] qapi/pylintrc: ignore 'consider-using-f-string' warning

2021-09-30 Thread John Snow
Pylint 2.11.x adds this warning. We're not yet ready to pursue that conversion, so silence it for now. Signed-off-by: John Snow --- scripts/qapi/pylintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc index c5275d5f59b..5b7dbc58ad8 100644 ---

[PATCH v4 02/13] qapi/gen: use dict.items() to iterate over _modules

2021-09-30 Thread John Snow
New pylint warning. I could silence it, but this is the only occurrence in the entire tree, including everything in iotests/ and python/. Easier to just change this one instance. (The warning is emitted in cases where you are fetching the values anyway, so you may as well just take advantage of

[PATCH v4 06/13] qapi/parser: clarify _end_section() logic

2021-09-30 Thread John Snow
The "if self._section" clause in end_section is mysterious: In which circumstances might we end a section when we don't have one? QAPIDoc always expects there to be a "current section", only except after a call to end_comment(). This actually *shouldn't* ever be 'None', so let's remove that logic

[PATCH v4 04/13] qapi: Add spaces after symbol declaration for consistency

2021-09-30 Thread John Snow
Several QGA definitions omit a blank line after the symbol declaration. This works OK currently, but it's the only place where we do this. Adjust it for consistency. Future commits may wind up enforcing this formatting. Signed-off-by: John Snow --- This isn't strictly necessary and I don't

[PATCH v4 09/13] qapi/parser: add type hint annotations (QAPIDoc)

2021-09-30 Thread John Snow
Annotations do not change runtime behavior. This commit consists of only annotations. Signed-off-by: John Snow --- scripts/qapi/parser.py | 67 -- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/scripts/qapi/parser.py

[PATCH v4 10/13] qapi/parser: Add FIXME for consolidating JSON-related types

2021-09-30 Thread John Snow
The fix for this comment is forthcoming in a future commit, but this will keep me honest. The linting configuration in ./python/setup.cfg prohibits 'FIXME' comments. A goal of this long-running series is to move ./scripts/qapi to ./python/qemu/qapi so that the QAPI generator is regularly

Running 297 from GitLab CI

2021-09-30 Thread John Snow
Hiya, I was talking this over with Hanna in review to '[PATCH v3 00/16] python/iotests: Run iotest linters during Python CI' [1] and I have some doubt about what you'd personally like to see happen, here. In a nutshell, I split out 'linters.py' from 297 and keep all of the iotest-bits in 297 and

OHCI/usb pass through

2021-09-30 Thread BALATON Zoltan
Hello, We're trying to find out why passing through an usb sound card fails with MacOS/OS X on mac99 and came across some things in OHCI that I don't understand so some help from those who know more about USB handling in QEMU or OHCI would be needed. From traces Howard collected we see that

Re: TCG Floating Point Support (Work in Progress)

2021-09-30 Thread Matt
Thank you Alex, for your quick and thoughtful response. > I've not reviewed the code as it is a rather large diff. For your proper > submission could you please ensure that your patch series is broken up > into discreet commits to aid review. Of course. > The phrase "if the user discovers some

Re: OHCI/usb pass through

2021-09-30 Thread Gerd Hoffmann
Hi, > [...] > /* Active packets. */ > uint32_t old_ctl; > USBPacket usb_packet; > uint8_t usb_buf[8192]; > uint32_t async_td; > bool async_complete; > > void (*ohci_die)(struct OHCIState *ohci); > } OHCIState; > > Then everything in hcd-ohci seems to reuse

Re: [PATCH 3/3] dtc: Update to version 1.6.1

2021-09-30 Thread David Gibson
On Thu, Sep 30, 2021 at 01:56:33PM +0200, Greg Kurz wrote: > On Thu, 30 Sep 2021 09:10:12 +0200 > Thomas Huth wrote: > > > On 27/08/2021 14.09, Thomas Huth wrote: > > > The dtc submodule is currently pointing to non-release commit. It's nicer > > > if submodules point to release versions instead

Re: [PATCH 3/3] dtc: Update to version 1.6.1

2021-09-30 Thread David Gibson
On Thu, Sep 30, 2021 at 09:10:12AM +0200, Thomas Huth wrote: > On 27/08/2021 14.09, Thomas Huth wrote: > > The dtc submodule is currently pointing to non-release commit. It's nicer > > if submodules point to release versions instead and since dtc 1.6.1 is > > available now, let's update to that

Re: [PATCH 1/7] docs: name included files ".rst.inc"

2021-09-30 Thread Markus Armbruster
Emacs recognizes .rst, but doesn't recognize .rst.inc. Sure we want file names that defeat common tooling?

Re: [PATCH] failover: fix unplug pending detection

2021-09-30 Thread Ani Sinha
On Thu, 30 Sep 2021, Laurent Vivier wrote: > On 30/09/2021 11:24, Ani Sinha wrote: > > > > > > On Thu, 30 Sep 2021, Laurent Vivier wrote: > > > > > Failover needs to detect the end of the PCI unplug to start migration > > > after the VFIO card has been unplugged. > > > > > > To do that, a flag

Re: [PATCH v2] failover: fix unplug pending detection

2021-09-30 Thread Ani Sinha
On Thu, 30 Sep 2021, Laurent Vivier wrote: > Failover needs to detect the end of the PCI unplug to start migration > after the VFIO card has been unplugged. > > To do that, a flag is set in pcie_cap_slot_unplug_request_cb() and reset in > pcie_unplug_device(). > > But since > 17858a169508

<    1   2   3