Re: [PATCH 11/12] s390x/pci: use dtsm provided from vfio capabilities for interpreted devices

2021-12-15 Thread Pierre Morel
On 12/7/21 22:04, Matthew Rosato wrote: When using the IOAT assist via interpretation, we should advertise what the host driver supports, not QEMU. Signed-off-by: Matthew Rosato --- hw/s390x/s390-pci-vfio.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/s390x/

[PULL 13/16] virtio-iommu: Fix endianness in get_config

2021-12-15 Thread Thomas Huth
From: Eric Auger Endianess is not properly handled when populating the returned config. Use the cpu_to_le* primitives for each separate field. Also, while at it, trace the domain range start. Reported-by: Thomas Huth Signed-off-by: Eric Auger Reviewed-by: Jean-Philippe Brucker Message-Id: <20

[PULL 14/16] virtio-iommu: Fix the domain_range end

2021-12-15 Thread Thomas Huth
From: Eric Auger in old times the domain range was defined by a domain_bits le32. This was then converted into a domain_range struct. During the upgrade the original value of '32' (bits) has been kept while the end field now is the max value of the domain id (UINT32_MAX). Fix that and also use UI

Re: [PATCH v2] Move the libssh setup from configure to meson.build

2021-12-15 Thread Petr Vorel
Hi, Reviewed-by: Petr Vorel Although it's probably too late, as I see patch with PULL [1]. Kind regards, Petr [1] https://lore.kernel.org/qemu-devel/20211215073402.144286-10-th...@redhat.com/

Re: [PATCH v10 3/3] cpus-common: implement dirty page limit on virtual CPU

2021-12-15 Thread Markus Armbruster
huang...@chinatelecom.cn writes: > From: Hyman Huang(黄勇) > > Implement dirtyrate calculation periodically basing on > dirty-ring and throttle virtual CPU until it reachs the quota > dirty page rate given by user. > > Introduce qmp commands "vcpu-dirty-limit", "query-vcpu-dirty-limit" > to enable,

Re: [PATCH v10 2/3] cpu-throttle: implement virtual CPU throttle

2021-12-15 Thread Hyman Huang
在 2021/12/15 15:15, Markus Armbruster 写道: huang...@chinatelecom.cn writes: From: Hyman Huang(黄勇) Setup a negative feedback system when vCPU thread handling KVM_EXIT_DIRTY_RING_FULL exit by introducing throttle_us_per_full field in struct CPUState. Sleep throttle_us_per_full microseconds to

[PULL 16/16] gitlab-ci: Test compilation on Windows with MSYS2

2021-12-15 Thread Thomas Huth
Gitlab also provides runners with Windows, we can use them to test compilation with MSYS2, in both, 64-bit and 32-bit. However, it takes quite a long time to set up the VM, so to stay in a reasonable time frame, we can only compile and check one target here. Message-Id: <2025140623.104116-1-t

Re: [PATCH 00/12] s390x/pci: zPCI interpretation support

2021-12-15 Thread Pierre Morel
On 12/7/21 22:04, Matthew Rosato wrote: Note: The first 3 patches of this series are included as pre-reqs, but should be pulled via a separate series. Also, patch 5 is needed to support 5.16+ linux header-sync and was already done by Paolo but not merged yet so is thus included here as well.

Re: [PATCH v10 3/3] cpus-common: implement dirty page limit on virtual CPU

2021-12-15 Thread Hyman Huang
在 2021/12/15 15:37, Markus Armbruster 写道: huang...@chinatelecom.cn writes: From: Hyman Huang(黄勇) Implement dirtyrate calculation periodically basing on dirty-ring and throttle virtual CPU until it reachs the quota dirty page rate given by user. Introduce qmp commands "vcpu-dirty-limit", "

Re: [PATCH 07/12] s390x/pci: enable for load/store intepretation

2021-12-15 Thread Pierre Morel
On 12/7/21 22:04, Matthew Rosato wrote: Use the associated vfio feature ioctl to enable interpretation for devices when requested. As part of this process, we must use the host function handle rather than a QEMU-generated one -- this is provided as part of the ioctl payload. Signed-off-by: M

Re: [PATCH] target/riscv/pmp: fix no pmp illegal intrs

2021-12-15 Thread Nikita Shubin
Hello Richard! On Tue, 14 Dec 2021 13:13:57 -0800 Richard Henderson wrote: > On 12/14/21 1:12 PM, Richard Henderson wrote: > > On 12/14/21 1:26 AM, Nikita Shubin wrote: > >> -    if (!pmp_get_num_rules(env) && (prev_priv != PRV_M)) { > >> +    if (riscv_feature(env, RISCV_FEATURE_PMP) && > >>

[PATCH] qemu-options: Remove the deprecated -no-quit option

2021-12-15 Thread Thomas Huth
This option was just a wrapper around the -display ...,window-close=off parameter, and the name "no-quit" is rather confusing compared to "window-close" (since there are still other means to quit the emulator), so let's remove this now. Signed-off-by: Thomas Huth --- docs/about/deprecated.rst

Re: [PATCH v10 3/3] cpus-common: implement dirty page limit on virtual CPU

2021-12-15 Thread Peter Xu
On Wed, Dec 15, 2021 at 03:56:55PM +0800, Hyman Huang wrote: > > > +{ 'command': 'vcpu-dirty-limit', > > > + 'data': { 'enable': 'bool', > > > +'*cpu-index': 'uint64', > > > +'*dirty-rate': 'uint64'} } > > > > Drop @enable, please. > > > > If @dirty-rate is present, set t

Re: [PATCH v10 3/3] cpus-common: implement dirty page limit on virtual CPU

2021-12-15 Thread Hyman Huang
在 2021/12/15 16:09, Peter Xu 写道: On Wed, Dec 15, 2021 at 03:56:55PM +0800, Hyman Huang wrote: +{ 'command': 'vcpu-dirty-limit', + 'data': { 'enable': 'bool', +'*cpu-index': 'uint64', +'*dirty-rate': 'uint64'} } Drop @enable, please. If @dirty-rate is present, set t

[PATCH] linux-user: Remove the deprecated ppc64abi32 target

2021-12-15 Thread Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now. Since this is the last entry in deprecated_targets_list, remove the related code in the configure script, too. Signed-off-by: Thomas Huth --- .gitlab-ci.d/buildtest.yml

Re: [PATCH v5 05/31] block-backend: special comments for blk_set/get_perm due to fuse

2021-12-15 Thread Emanuele Giuseppe Esposito
On 10/12/2021 15:38, Hanna Reitz wrote: On 24.11.21 07:43, Emanuele Giuseppe Esposito wrote: Fuse logic can be classified as I/O, so there is no BQL held during its execution. And yet, it uses blk_{get/set}_perm functions, that are classified as BQL and clearly require the BQL lock. Since the

Re: [PATCH] qemu-options: Remove the deprecated -no-quit option

2021-12-15 Thread Michal Prívozník
On 12/15/21 09:24, Thomas Huth wrote: > This option was just a wrapper around the -display ...,window-close=off > parameter, and the name "no-quit" is rather confusing compared to > "window-close" (since there are still other means to quit the emulator), > so let's remove this now. > > Signed-off-

Re: [PATCH v2] monitor: move x-query-profile into accel/tcg to fix build

2021-12-15 Thread Daniel P . Berrangé
On Tue, Dec 14, 2021 at 07:50:48PM +, Alex Bennée wrote: > As --enable-profiler isn't defended in CI we missed this breakage. > Move the qmp handler into accel/tcg so we have access to the helpers > we need. While we are at it ensure we gate the feature on CONFIG_TCG. > > Signed-off-by: Alex B

Re: [PATCH] qemu-options: Remove the deprecated -no-quit option

2021-12-15 Thread Markus Armbruster
Thomas Huth writes: > This option was just a wrapper around the -display ...,window-close=off > parameter, and the name "no-quit" is rather confusing compared to > "window-close" (since there are still other means to quit the emulator), > so let's remove this now. > > Signed-off-by: Thomas Huth

Re: [PATCH v2 3/4] include/sysemu/blockdev.h: move drive_add and inline drive_def

2021-12-15 Thread Emanuele Giuseppe Esposito
On 14/12/2021 15:35, Kevin Wolf wrote: Am 30.11.2021 um 10:46 hat Emanuele Giuseppe Esposito geschrieben: drive_add is only used in softmmu/vl.c, so it can be a static function there, and drive_def is only a particular use case of qemu_opts_parse_noisily, so it can be inlined. Also remove dr

Re: [PATCH 00/47] Patch Round-up for stable 6.1.1, freeze on 2021-12-21

2021-12-15 Thread Daniel P . Berrangé
On Tue, Dec 14, 2021 at 06:00:38PM -0600, Michael Roth wrote: > Hi everyone, > > The following new patches are queued for QEMU stable v6.1.1: > > https://gitlab.com/qemu-project/qemu/-/commits/stable-6.1-staging/ FYI, this branch doesn't appear to have been pushed. > Patch freeze is 2021-12-2

Re: [PATCH] qemu-options: Remove the deprecated -no-quit option

2021-12-15 Thread Thomas Huth
On 15/12/2021 10.11, Markus Armbruster wrote: Thomas Huth writes: This option was just a wrapper around the -display ...,window-close=off parameter, and the name "no-quit" is rather confusing compared to "window-close" (since there are still other means to quit the emulator), so let's remove t

Re: [PATCH v2] monitor: move x-query-profile into accel/tcg to fix build

2021-12-15 Thread Alex Bennée
Daniel P. Berrangé writes: > On Tue, Dec 14, 2021 at 07:50:48PM +, Alex Bennée wrote: >> As --enable-profiler isn't defended in CI we missed this breakage. >> Move the qmp handler into accel/tcg so we have access to the helpers >> we need. While we are at it ensure we gate the feature on CO

Re: Building QEMU as a shared library

2021-12-15 Thread Stefan Hajnoczi
On Wed, Dec 15, 2021 at 08:18:53AM +, Amir Gonnen wrote: > Before sending a patch, I would like to check if it's of interest to the > community. > > My goal is to simulate a mixed architecture system. > Today QEMU strongly assumes that the simulated system is a *single > architecture*. > Cha

Re: [PATCH v2 3/4] include/sysemu/blockdev.h: move drive_add and inline drive_def

2021-12-15 Thread Kevin Wolf
Am 15.12.2021 um 10:19 hat Emanuele Giuseppe Esposito geschrieben: > > > On 14/12/2021 15:35, Kevin Wolf wrote: > > Am 30.11.2021 um 10:46 hat Emanuele Giuseppe Esposito geschrieben: > > > drive_add is only used in softmmu/vl.c, so it can be a static > > > function there, and drive_def is only a

Re: [RFC] vhost-vdpa-net: add vhost-vdpa-net host device support

2021-12-15 Thread Stefan Hajnoczi
On Wed, Dec 15, 2021 at 11:18:05AM +0800, Jason Wang wrote: > On Tue, Dec 14, 2021 at 9:11 PM Stefan Hajnoczi wrote: > > > > On Tue, Dec 14, 2021 at 10:22:53AM +0800, Jason Wang wrote: > > > On Mon, Dec 13, 2021 at 11:14 PM Stefan Hajnoczi > > > wrote: > > > > > > > > On Mon, Dec 13, 2021 at 10:

Re: Building QEMU as a shared library

2021-12-15 Thread Peter Maydell
On Wed, 15 Dec 2021 at 08:18, Amir Gonnen wrote: > My goal is to simulate a mixed architecture system. > > Today QEMU strongly assumes that the simulated system is a *single > architecture*. > Changing this assumption and supporting mixed architecture in QEMU proved to > be > non-trivial and may

Re: [PATCH v5 05/31] block-backend: special comments for blk_set/get_perm due to fuse

2021-12-15 Thread Emanuele Giuseppe Esposito
On 15/12/2021 09:57, Emanuele Giuseppe Esposito wrote: On 10/12/2021 15:38, Hanna Reitz wrote: On 24.11.21 07:43, Emanuele Giuseppe Esposito wrote: Fuse logic can be classified as I/O, so there is no BQL held during its execution. And yet, it uses blk_{get/set}_perm functions, that are cla

Re: [PATCH v10 3/3] cpus-common: implement dirty page limit on virtual CPU

2021-12-15 Thread Hyman Huang
在 2021/12/15 16:29, Hyman Huang 写道: 在 2021/12/15 16:09, Peter Xu 写道: On Wed, Dec 15, 2021 at 03:56:55PM +0800, Hyman Huang wrote: +{ 'command': 'vcpu-dirty-limit', +  'data': { 'enable': 'bool', +    '*cpu-index': 'uint64', +    '*dirty-rate': 'uint64'} } Drop @enable, pl

Re: Building QEMU as a shared library

2021-12-15 Thread Daniel P . Berrangé
On Wed, Dec 15, 2021 at 10:10:35AM +, Peter Maydell wrote: > On Wed, 15 Dec 2021 at 08:18, Amir Gonnen wrote: > > My goal is to simulate a mixed architecture system. > > > > Today QEMU strongly assumes that the simulated system is a *single > > architecture*. > > Changing this assumption and

Re: [PATCH v4 01/18] ui: avoid compiler warnings from unused clipboard info variable

2021-12-15 Thread Philippe Mathieu-Daudé
On 11/24/21 14:33, Philippe Mathieu-Daudé wrote: > On 11/24/21 14:01, Daniel P. Berrangé wrote: >> With latest clang 13.0.0 we get >> >> ../ui/clipboard.c:47:34: error: variable 'old' set but not used >> [-Werror,-Wunused-but-set-variable] >> g_autoptr(QemuClipboardInfo) old = NULL; >>

Re: [PATCH v2 1/2] spice: Update QXLInterface for spice >= 0.15.0

2021-12-15 Thread Philippe Mathieu-Daudé
On 12/7/21 21:40, John Snow wrote: > spice updated the spelling (and arguments) of "attache_worker" in > 0.15.0. Update QEMU to match, preventing -Wdeprecated-declarations > compilations from reporting build errors. > > See also: > https://gitlab.freedesktop.org/spice/spice/-/commit/974692bda1e77a

Re: [PATCH] hw/avr: Realize AVRCPU qdev object using qdev_realize()

2021-12-15 Thread Philippe Mathieu-Daudé
Hi Laurent, This patch is reviewed, can it go via your trivial tree? On 12/5/21 23:41, Philippe Mathieu-Daudé wrote: > TYPE_AVR_CPU inherits TYPE_CPU, which itself inherits TYPE_DEVICE. > TYPE_DEVICE instances are realized using qdev_realize(), we don't > need to access QOM internal values. > >

Re: [PATCH] hw/net/allwinner_emac: Replace MII_ANAR_TX -> MII_ANLPAR_TX definition

2021-12-15 Thread Philippe Mathieu-Daudé
Ping? On 11/22/21 11:51, Philippe Mathieu-Daudé wrote: > While both MII_ANAR_TX / MII_ANLPAR_TX have the same value, > the ANAR and ANLPAR registers are different, so technically > the ANLPAR register have to use the MII_ANLPAR_TX definition. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw

Re: [PATCH] hw/i386/vmmouse: Require 'i8042' property to be set

2021-12-15 Thread Philippe Mathieu-Daudé
ping? On 12/1/21 23:32, Philippe Mathieu-Daudé wrote: > If the 'i8042' property is not set, mouse events handled by > vmmouse_mouse_event() end calling i8042_isa_mouse_fake_event() > with a NULL argument, resulting in ps2_mouse_fake_event() being > called with invalid PS2MouseState pointer. Fix by

Re: [PATCH] hw/scsi: Fix scsi_bus_init_named() docstring

2021-12-15 Thread Philippe Mathieu-Daudé
Hi Laurent, This patch is reviewed, can it go via your trivial tree? On 11/22/21 11:47, Philippe Mathieu-Daudé wrote: > Commit 739e95f5741 ("scsi: Replace scsi_bus_new() with > scsi_bus_init(), scsi_bus_init_named()") forgot to rename > scsi_bus_init() in the function documentation string. > > S

Re: [PATCH] hw/misc/auxbus: Improve aux_bus_init() docstring

2021-12-15 Thread Philippe Mathieu-Daudé
Cc'ing Peter for documentation review. On 11/22/21 11:48, Philippe Mathieu-Daudé wrote: > Mention in aux_bus_init() docstring that the AUXBus > is not simply initialized, it is also allocated. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/misc/auxbus.h | 12 +++- > 1 file

Re: [PATCH-for-6.2 0/2] hw/scsi/megasas: Avoid overflowing the SGL buffer

2021-12-15 Thread Philippe Mathieu-Daudé
ping? On 12/13/21 13:32, Philippe Mathieu-Daudé wrote: > Too late for 6.2 now, so Cc'ing qemu-trivial (series reviewed). > > On 11/19/21 21:11, Philippe Mathieu-Daudé wrote: >> Fix issue #521 reported by Alex some months ago: >> https://gitlab.com/qemu-project/qemu/-/issues/521 >> >> Philippe Mat

Re: [PATCH-for-6.2? v2 0/3] misc: Spell QEMU all caps

2021-12-15 Thread Philippe Mathieu-Daudé
Ping? On 11/19/21 10:16, Philippe Mathieu-Daudé wrote: > Replace Qemu -> QEMU. > > Supersedes: <2028143401.4101497-1-phi...@redhat.com> > > Philippe Mathieu-Daudé (3): > docs: Spell QEMU all caps > misc: Spell QEMU all caps > qga: Spell QEMU all caps > > docs/devel/modules.rst

[PULL 04/18] migration/colo: Optimize COLO primary node start code path

2021-12-15 Thread Juan Quintela
From: Zhang Chen Optimize COLO primary start path from: MIGRATION_STATUS_XXX --> MIGRATION_STATUS_ACTIVE --> MIGRATION_STATUS_COLO --> MIGRATION_STATUS_COMPLETED To: MIGRATION_STATUS_XXX --> MIGRATION_STATUS_COLO --> MIGRATION_STATUS_COMPLETED No need to start primary COLO through "MIGRATION_STA

Re: Building QEMU as a shared library

2021-12-15 Thread Daniel P . Berrangé
On Wed, Dec 15, 2021 at 09:45:56AM +, Stefan Hajnoczi wrote: > On Wed, Dec 15, 2021 at 08:18:53AM +, Amir Gonnen wrote: > > Before sending a patch, I would like to check if it's of interest to the > > community. > > > > My goal is to simulate a mixed architecture system. > > Today QEMU st

[PULL 02/18] migration/colo: More accurate update checkpoint time

2021-12-15 Thread Juan Quintela
From: Zhang Chen Previous operation(like vm_start and replication_start_all) will consume extra time before update the timer, so reduce time in this patch. Signed-off-by: Zhang Chen Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- migration/colo.c | 5 ++--- 1 file changed, 2 inse

[PULL 06/18] dump: Remove is_zero_page()

2021-12-15 Thread Juan Quintela
It just calls buffer_is_zero(). Just change the callers. Signed-off-by: Juan Quintela Reviewed-by: Richard Henderson Reviewed-by: Marc-André Lureau --- dump/dump.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index 662d0a62cd..a84d8b1

[PULL 01/18] migration/ram.c: Remove the qemu_mutex_lock in colo_flush_ram_cache.

2021-12-15 Thread Juan Quintela
From: "Rao, Lei" The code to acquire bitmap_mutex is added in the commit of "63268c4970a5f126cc9af75f3ccb8057abef5ec0". There is no need to acquire bitmap_mutex in colo_flush_ram_cache(). This is because the colo_flush_ram_cache only be called on the COLO secondary VM, which is the destination si

[PULL 03/18] Fixed a QEMU hang when guest poweroff in COLO mode

2021-12-15 Thread Juan Quintela
From: "Rao, Lei" When the PVM guest poweroff, the COLO thread may wait a semaphore in colo_process_checkpoint().So, we should wake up the COLO thread before migration shutdown. Signed-off-by: Lei Rao Reviewed-by: Zhang Chen Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- include

[PULL 05/18] migration: Remove is_zero_range()

2021-12-15 Thread Juan Quintela
It just calls buffer_is_zero(). Just change the callers. Signed-off-by: Juan Quintela Reviewed-by: Richard Henderson --- migration/ram.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 2c688f5bbb..57efa67f20 100644 --- a/migr

[PULL 07/18] multifd: Delete useless operation

2021-12-15 Thread Juan Quintela
We are dividing by page_size to multiply again in the only use. Once there, improve the comments. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd-zlib.c | 13 - migration/multifd-zstd.c | 13 - 2 files changed, 8 insertions(+), 18 d

[PULL 00/18] Migration 20211214 patches

2021-12-15 Thread Juan Quintela
The following changes since commit 76b56fdfc9fa43ec6e5986aee33f108c6c6a511e: Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into staging (2021-12-14 12:46:18 -0800) are available in the Git repository at: https://gitlab.com/juan.quintela/qemu.git tags/migration-20211214-

[PULL 08/18] migration: Never call twice qemu_target_page_size()

2021-12-15 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/migration.c | 7 --- migration/multifd.c | 7 --- migration/savevm.c| 5 +++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 2c1edb2c

[PULL 09/18] multifd: Rename used field to num

2021-12-15 Thread Juan Quintela
We will need to split it later in zero_num (number of zero pages) and normal_num (number of normal pages). This name is better. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd.h | 2 +- migration/multifd.c | 38 +++--- 2 f

[PULL 14/18] multifd: Fill offset and block for reception

2021-12-15 Thread Juan Quintela
We were using the iov directly, but we will need this info on the following patch. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/multifd.c b/migration/multifd.c index 55d99a8232..0533da154

[PULL 11/18] multifd: The variable is only used inside the loop

2021-12-15 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migration/multifd.c b/migration/multifd.c index cdeffdc4c5..ce7101cf9d 100644 --- a/migration/multifd.c +++ b/migration/multifd.c @@ -629

[PULL 10/18] multifd: Add missing documention

2021-12-15 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd-zlib.c | 2 ++ migration/multifd-zstd.c | 2 ++ migration/multifd.c | 1 + 3 files changed, 5 insertions(+) diff --git a/migration/multifd-zlib.c b/migration/multifd-zlib.c index 3fc7813b44..d0437cce2a 1

[PULL 16/18] COLO: Move some trace code behind qemu_mutex_unlock_iothread()

2021-12-15 Thread Juan Quintela
From: "Rao, Lei" There is no need to put some trace code in the critical section. So, moving it behind qemu_mutex_unlock_iothread() can reduce the lock time. Signed-off-by: Lei Rao Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- migration/colo.c | 6 +++--- 1 file changed, 3 inse

[PULL 15/18] multifd: Shut down the QIO channels to avoid blocking the send threads when they are terminated.

2021-12-15 Thread Juan Quintela
From: Li Zhang When doing live migration with multifd channels 8, 16 or larger number, the guest hangs in the presence of the network errors such as missing TCP ACKs. At sender's side: The main thread is blocked on qemu_thread_join, migration_fd_cleanup is called because one thread fails on qio_

Re: [PATCH-for-6.2? v2 0/5] docs/devel/style: Improve rST rendering

2021-12-15 Thread Philippe Mathieu-Daudé
ping? On 11/18/21 15:57, Philippe Mathieu-Daudé wrote: > Various changes in docs/devel/style.rst to improve its > rST rendering (around C types/qualifiers/functions). > > Since v1: > - Addressed Darren Kenny comments on function names > > Based-on: <2028144317.4106651-1-phi...@redhat.com> >

[PULL 12/18] multifd: remove used parameter from send_prepare() method

2021-12-15 Thread Juan Quintela
It is already there as p->pages->num. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd.h | 2 +- migration/multifd-zlib.c | 7 +++ migration/multifd-zstd.c | 7 +++ migration/multifd.c | 9 +++-- 4 files changed, 10 insertions(+), 15 d

Re: [PATCH] linux-user: Add license in files generated by scripts/gensyscalls.sh

2021-12-15 Thread Philippe Mathieu-Daudé
ping? On 11/17/21 18:48, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > scripts/gensyscalls.sh | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/gensyscalls.sh b/scripts/gensyscalls.sh > index 8fb450e3c96..aee5cc64a15 100755 > ---

[PULL 13/18] multifd: remove used parameter from send_recv_pages() method

2021-12-15 Thread Juan Quintela
It is already there as p->pages->num. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd.h | 2 +- migration/multifd-zlib.c | 9 - migration/multifd-zstd.c | 7 +++ migration/multifd.c | 7 +++ 4 files changed, 11 insertions(+), 14 d

[PULL 18/18] multifd: Make zlib compression method not use iovs

2021-12-15 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd-zlib.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/migration/multifd-zlib.c b/migration/multifd-zlib.c index e85ef8824d..da6201704c 100644 --- a/migration/multifd-zlib

[PULL 17/18] multifd: Make zstd compression method not use iovs

2021-12-15 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd-zstd.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/migration/multifd-zstd.c b/migration/multifd-zstd.c index a8b104f4ee..2d5b61106c 100644 --- a/migration/multifd

Re: [PATCH-for-7.0] hw/net/rocker: Remove unused definitions

2021-12-15 Thread Philippe Mathieu-Daudé
ping for review? On 11/16/21 20:39, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/net/rocker/rocker.h | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h > index 412fa44d017..d22bbd2bf80 100644 > --- a/h

Re: [PATCH v2 3/4] include/sysemu/blockdev.h: move drive_add and inline drive_def

2021-12-15 Thread Emanuele Giuseppe Esposito
On 15/12/2021 11:00, Kevin Wolf wrote: Am 15.12.2021 um 10:19 hat Emanuele Giuseppe Esposito geschrieben: On 14/12/2021 15:35, Kevin Wolf wrote: Am 30.11.2021 um 10:46 hat Emanuele Giuseppe Esposito geschrieben: drive_add is only used in softmmu/vl.c, so it can be a static function there,

Re: [PATCH-for-7.0] target/i386/kvm: Replace use of __u32 type

2021-12-15 Thread Philippe Mathieu-Daudé
Hi Laurent, This patch is reviewed, can it go via your trivial tree? On 11/16/21 20:39, Philippe Mathieu-Daudé wrote: > QEMU coding style mandates to not use Linux kernel internal > types for scalars types. Replace __u32 by uint32_t. > > Signed-off-by: Philippe Mathieu-Daudé > --- > target/i38

Re: [PATCH] qemu-keymap: Add license in generated files

2021-12-15 Thread Philippe Mathieu-Daudé
Hi Laurent, This patch is reviewed, can it go via your trivial tree? On 11/17/21 18:45, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > qemu-keymap.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/qemu-keymap.c b/qemu-keymap.c > index 536e8f2385d..4095b6

[PULL 00/33] target-arm queue

2021-12-15 Thread Peter Maydell
able in the Git repository at: https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20211215 for you to fetch changes up to aed176558806674d030a8305d989d4e6a5073359: tests/acpi: add expected blob for VIOT test on virt machine (2021-12-15

[PULL 01/33] hw/intc: clean-up error reporting for failed ITS cmd

2021-12-15 Thread Peter Maydell
From: Alex Bennée While trying to debug a GIC ITS failure I saw some guest errors that had poor formatting as well as leaving me confused as to what failed. As most of the checks aren't possible without a valid dte split that check apart and then check the other conditions in steps. This avoids u

[PULL 12/33] target/arm: Split arm_pre_translate_insn

2021-12-15 Thread Peter Maydell
From: Richard Henderson Create arm_check_ss_active and arm_check_kernelpage. Reverse the order of the tests. While it doesn't matter in practice, because only user-only has a kernel page and user-only never sets ss_active, ss_active has priority over execution exceptions and it is best to keep

Re: [PATCH] linux-user/hexagon: Use generic target_stat64 structure

2021-12-15 Thread Philippe Mathieu-Daudé
ping. On 11/16/21 22:09, Philippe Mathieu-Daudé wrote: > Linux Hexagon port doesn't define a specific 'struct stat' > but uses the generic one (see Linux commit 6103ec56c65c [*] > "asm-generic: add generic ABI headers" which predates the > introduction of the Hexagon port). > > Remove the target

[PULL 03/33] docs: aspeed: Update OpenBMC image URL

2021-12-15 Thread Peter Maydell
From: Joel Stanley This is the latest URL for the OpenBMC CI. The old URL still works, but redirects. Reviewed-by: Cédric Le Goater Signed-off-by: Joel Stanley Message-id: 2027065752.330632-3-j...@jms.id.au Signed-off-by: Peter Maydell --- docs/system/arm/aspeed.rst | 2 +- 1 file change

[PULL 02/33] docs: aspeed: Add new boards

2021-12-15 Thread Peter Maydell
From: Joel Stanley Add X11, FP5280G2, G220A, Rainier and Fuji. Mention that Swift will be removed in v7.0. Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater Message-id: 2027065752.330632-2-j...@jms.id.au Signed-off-by: Peter Maydell --- docs/system/arm/aspeed.rst | 7 ++- 1 f

[PULL 14/33] target/arm: Split compute_fsr_fsc out of arm_deliver_fault

2021-12-15 Thread Peter Maydell
From: Richard Henderson We will reuse this section of arm_deliver_fault for raising pc alignment faults. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/tlb_helper.c | 45 + 1 file changed, 28 ins

Re: [PATCH-for-7.0] hw/pci: Don't open-code pci_intx()

2021-12-15 Thread Philippe Mathieu-Daudé
ping for review? On 11/16/21 18:26, Philippe Mathieu-Daudé wrote: > Use the pci_intx() helper instead of open-coding it. > > Signed-off-by: Philippe Mathieu-Daudé > --- > Based-on: <2026170133.724751-3-fbar...@linux.ibm.com> > --- > hw/net/vmxnet3.c | 2 +- > hw/remote/iohub.c | 6 ++ >

[PULL 06/33] Fix STM32F2XX USART data register readout

2021-12-15 Thread Peter Maydell
From: Olivier Hériveaux Fix issue where the data register may be overwritten by next character reception before being read and returned. Signed-off-by: Olivier Hériveaux Reviewed-by: Peter Maydell Reviewed-by: Alistair Francis Message-id: 20211128120723.4053-1-olivier.herive...@ledger.fr Sign

[PULL 04/33] docs: aspeed: Give an example of booting a kernel

2021-12-15 Thread Peter Maydell
From: Joel Stanley A common use case for the ASPEED machine is to boot a Linux kernel. Provide a full example command line. Reviewed-by: Cédric Le Goater Signed-off-by: Joel Stanley Message-id: 2027065752.330632-4-j...@jms.id.au Signed-off-by: Peter Maydell --- docs/system/arm/aspeed.rst

[PULL 13/33] target/arm: Advance pc for arch single-step exception

2021-12-15 Thread Peter Maydell
From: Richard Henderson The size of the code covered by a TranslationBlock cannot be 0; this is checked via assert in tb_gen_code. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate-a64.c | 1 + 1 file changed, 1 insertion(+) di

[PULL 05/33] docs: aspeed: ADC is now modelled

2021-12-15 Thread Peter Maydell
From: Joel Stanley Move it to the supported list. Signed-off-by: Joel Stanley Message-id: 2027065752.330632-5-j...@jms.id.au Signed-off-by: Peter Maydell --- docs/system/arm/aspeed.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/system/arm/aspeed.rst b/docs/sy

[PULL 19/33] target/i386: Use assert() to sanity-check b1 in SSE decode

2021-12-15 Thread Peter Maydell
In the SSE decode function gen_sse(), we combine a byte 'b' and a value 'b1' which can be [0..3], and switch on them: b |= (b1 << 8); switch (b) { ... default: unknown_op: gen_unknown_opcode(env, s); return; } In three cases inside this switch, we were then also che

[PULL 07/33] hw/intc/arm_gicv3: Extract gicv3_set_gicv3state from arm_gicv3_cpuif.c

2021-12-15 Thread Peter Maydell
From: Philippe Mathieu-Daudé gicv3_set_gicv3state() is used by arm_gicv3_common.c in arm_gicv3_common_realize(). Since we want to restrict arm_gicv3_cpuif.c to TCG, extract gicv3_set_gicv3state() to a new file. Add this file to the meson 'specific' source set, since it needs access to "cpu.h". S

[PULL 11/33] target/arm: Hoist pc_next to a local variable in thumb_tr_translate_insn

2021-12-15 Thread Peter Maydell
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index c721b2ce42c..1

[PULL 23/33] hw/arm: Don't include qemu-common.h unnecessarily

2021-12-15 Thread Peter Maydell
A lot of C files in hw/arm include qemu-common.h when they don't need anything from it. Drop the include lines. omap1.c, pxa2xx.c and strongarm.c retain the include because they use it for the prototype of qemu_get_timedate(). Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Reviewed

[PULL 20/33] include/hw/i386: Don't include qemu-common.h in .h files

2021-12-15 Thread Peter Maydell
The qemu-common.h header is not supposed to be included from any other header files, only from .c files (as documented in a comment at the start of it). include/hw/i386/x86.h and include/hw/i386/microvm.h break this rule. In fact, the include is not required at all, so we can just drop it from bot

[PULL 10/33] target/arm: Hoist pc_next to a local variable in arm_tr_translate_insn

2021-12-15 Thread Peter Maydell
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index 98f59259284..c721b2ce4

[PULL 31/33] tests/acpi: add test case for VIOT

2021-12-15 Thread Peter Maydell
From: Jean-Philippe Brucker Add two test cases for VIOT, one on the q35 machine and the other on virt. To test complex topologies the q35 test has two PCIe buses that bypass the IOMMU (and are therefore not described by VIOT), and two buses that are translated by virtio-iommu. Reviewed-by: Eric

[PULL 09/33] target/arm: Hoist pc_next to a local variable in aarch64_tr_translate_insn

2021-12-15 Thread Peter Maydell
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate-a64.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index cec672f2296.

[PULL 22/33] target/rx/cpu.h: Don't include qemu-common.h

2021-12-15 Thread Peter Maydell
The qemu-common.h header is not supposed to be included from any other header files, only from .c files (as documented in a comment at the start of it). Nothing actually relies on target/rx/cpu.h including it, so we can just drop the include. Signed-off-by: Peter Maydell Reviewed-by: Richard Hen

Re: [PATCH] configure: Symlink binaries using .exe suffix with MinGW

2021-12-15 Thread Philippe Mathieu-Daudé
Hi Laurent, This patch is reviewed/acked, can it go via your trivial tree? On 11/9/21 15:45, Philippe Mathieu-Daudé wrote: > When using the MinGW toolchain, we use the .exe suffix for the > executable name. We also need to use it for the symlinks in the > build directory. > > Signed-off-by: Phil

[PULL 16/33] target/arm: Assert thumb pc is aligned

2021-12-15 Thread Peter Maydell
From: Richard Henderson Misaligned thumb PC is architecturally impossible. Assert is better than proceeding, in case we've missed something somewhere. Expand a comment about aligning the pc in gdbstub. Fail an incoming migrate if a thumb pc is misaligned. Reviewed-by: Peter Maydell Signed-off-

[PULL 25/33] hw/net: npcm7xx_emc fix missing queue_flush

2021-12-15 Thread Peter Maydell
From: Patrick Venture The rx_active boolean change to true should always trigger a try_read call that flushes the queue. Signed-off-by: Patrick Venture Reviewed-by: Philippe Mathieu-Daudé Message-id: 20211203221002.1719306-1-vent...@google.com Signed-off-by: Peter Maydell --- hw/net/npcm7xx_

[PULL 21/33] target/hexagon/cpu.h: don't include qemu-common.h

2021-12-15 Thread Peter Maydell
The qemu-common.h header is not supposed to be included from any other header files, only from .c files (as documented in a comment at the start of it). Move the include to linux-user/hexagon/cpu_loop.c, which needs it for the declaration of cpu_exec_step_atomic(). Signed-off-by: Peter Maydell R

[PULL 15/33] target/arm: Take an exception if PC is misaligned

2021-12-15 Thread Peter Maydell
From: Richard Henderson For A64, any input to an indirect branch can cause this. For A32, many indirect branch paths force the branch to be aligned, but BXWritePC does not. This includes the BX instruction but also other interworking changes to PC. Prior to v8, this case is UNDEFINED. With v8,

[PULL 24/33] target/arm: Correct calculation of tlb range invalidate length

2021-12-15 Thread Peter Maydell
The calculation of the length of TLB range invalidate operations in tlbi_aa64_range_get_length() is incorrect in two ways: * the NUM field is 5 bits, but we read only 4 bits * we miscalculate the page_shift value, because of an off-by-one error: TG 0b00 is invalid TG 0b01 is 4K granule

[PULL 26/33] hw/arm/virt-acpi-build: Add VIOT table for virtio-iommu

2021-12-15 Thread Peter Maydell
From: Jean-Philippe Brucker When a virtio-iommu is instantiated, describe it using the ACPI VIOT table. Acked-by: Igor Mammedov Reviewed-by: Eric Auger Signed-off-by: Jean-Philippe Brucker Message-id: 20211210170415.583179-2-jean-phili...@linaro.org Signed-off-by: Peter Maydell --- hw/arm/v

[PULL 27/33] hw/arm/virt: Remove device tree restriction for virtio-iommu

2021-12-15 Thread Peter Maydell
From: Jean-Philippe Brucker virtio-iommu is now supported with ACPI VIOT as well as device tree. Remove the restriction that prevents from instantiating a virtio-iommu device under ACPI. Acked-by: Igor Mammedov Reviewed-by: Eric Auger Signed-off-by: Jean-Philippe Brucker Message-id: 202112101

[PULL 17/33] target/arm: Suppress bp for exceptions with more priority

2021-12-15 Thread Peter Maydell
From: Richard Henderson Both single-step and pc alignment faults have priority over breakpoint exceptions. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Signed-off-by: Peter Maydell --- target/arm/debug_helper.c | 23 +++ 1 file changed, 23 insertions(+) di

Re: [PATCH] linux-user: Remove the deprecated ppc64abi32 target

2021-12-15 Thread Philippe Mathieu-Daudé
On 12/15/21 09:49, Thomas Huth wrote: > It's likely broken, and nobody cared for picking it up again > during the deprecation phase, so let's remove this now. > > Since this is the last entry in deprecated_targets_list, remove > the related code in the configure script, too. Can we keep that part

[PULL 08/33] hw/intc/arm_gicv3: Introduce CONFIG_ARM_GIC_TCG Kconfig selector

2021-12-15 Thread Peter Maydell
From: Philippe Mathieu-Daudé The TYPE_ARM_GICV3 device is an emulated one. When using KVM, it is recommended to use the TYPE_KVM_ARM_GICV3 device (which uses in-kernel support). When using --with-devices-FOO, it is possible to build a binary with a specific set of devices. When this binary is r

[PULL 30/33] tests/acpi: allow updates of VIOT expected data files

2021-12-15 Thread Peter Maydell
From: Jean-Philippe Brucker Create empty data files and allow updates for the upcoming VIOT tests. Acked-by: Igor Mammedov Reviewed-by: Eric Auger Signed-off-by: Jean-Philippe Brucker Message-id: 20211210170415.583179-6-jean-phili...@linaro.org Signed-off-by: Peter Maydell --- tests/qtest/b

[PULL 28/33] hw/arm/virt: Reject instantiation of multiple IOMMUs

2021-12-15 Thread Peter Maydell
From: Jean-Philippe Brucker We do not support instantiating multiple IOMMUs. Before adding a virtio-iommu, check that no other IOMMU is present. This will detect both "iommu=smmuv3" machine parameter and another virtio-iommu instance. Fixes: 70e89132c9 ("hw/arm/virt: Add the virtio-iommu device

[PULL 18/33] tests/tcg: Add arm and aarch64 pc alignment tests

2021-12-15 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Signed-off-by: Peter Maydell --- tests/tcg/aarch64/pcalign-a64.c | 37 + tests/tcg/arm/pcalign-a32.c | 46 +++ tests/tcg/aarch64/Makefile.target | 4

  1   2   3   4   5   6   >