Re: [PATCH v5 2/7] migration: migrate 'inc' command option is deprecated.

2023-10-17 Thread Markus Armbruster
Juan Quintela writes: > Markus Armbruster wrote: >> Juan Quintela writes: >> >>> Use blockdev-mirror with NBD instead. >>> >>> Reviewed-by: Thomas Huth >>> Acked-by: Stefan Hajnoczi >>> Signed-off-by: Juan Quintela >>> >>> --- >>> >>> Improve documentation and style (thanks Markus) >>> --- >

Re: [PATCH v4] migration: Allow user to specify available switchover bandwidth

2023-10-17 Thread Markus Armbruster
Peter Xu writes: > On Tue, Oct 17, 2023 at 04:12:40PM +0200, Markus Armbruster wrote: >> Peter Xu writes: >> >> > Migration bandwidth is a very important value to live migration. It's >> > because it's one of the major factors that we'll make decision on when to >> > switchover to destination

Re: [PATCH v4 3/5] target/riscv: Move misa_mxl_max to class

2023-10-17 Thread LIU Zhiwei
On 2023/10/18 2:53, Akihiko Odaki wrote: misa_mxl_max is common for all instances of a RISC-V CPU class so they are better put into class. Signed-off-by: Akihiko Odaki --- target/riscv/cpu-qom.h | 1 + target/riscv/cpu.h | 3 +- hw/riscv/boot.c| 2 +- target

Re: [PATCH 4/4] qapi: introduce CONFIG_READ event

2023-10-17 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > On 17.10.23 18:00, Markus Armbruster wrote: >> Vladimir Sementsov-Ogievskiy writes: >> >>> Send a new event when guest reads virtio-pci config after >>> virtio_notify_config() call. >>> >>> That's useful to check that guest fetched modified config, for exa

Re: [RFC PATCH 0/5] virtio-net: Introduce LM early load

2023-10-17 Thread Yajun Wu
On 10/18/2023 12:47 AM, Eugenio Perez Martin wrote: External email: Use caution opening links or attachments On Mon, Sep 18, 2023 at 6:51 AM Yajun Wu wrote: This series of patches aims to minimize the downtime during live migration of a virtio-net device with a vhost-user backend. In the ca

Re: [PATCH 0/8] MAINTAINERS: Collect unmaintained files under PPC entries

2023-10-17 Thread Cédric Le Goater
Adding Cc: qemu-triv...@nongnu.org because these changes don't need to go through the ppc tree. On 10/2/23 14:23, Cédric Le Goater wrote: Hello, All PPC files should now be correctly assigned to some entry. Cheers, Last patch should be dropped though. It is replaced by: https://lore.kern

Re: [PATCH] MAINTAINERS: Add include/hw/intc/loongson_liointc.h to the Loongson-3 virt section

2023-10-17 Thread gaosong
在 2023/10/17 下午11:33, Thomas Huth 写道: The corresponding .c file is already listed here, so we should mention the header here, too. Signed-off-by: Thomas Huth --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index d0a21cfd9f..c3eb4f90ef 100644 ---

Re: [PATCH v2 8/8] MAINTAINERS: Update PPC TCG target with tests

2023-10-17 Thread Cédric Le Goater
On 10/18/23 08:27, Thomas Huth wrote: On 02/10/2023 17.51, Cédric Le Goater wrote: Cc: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Signed-off-by: Cédric Le Goater ---   MAINTAINERS | 1 +   1 file changed, 1 insertion(+) diff --git a/MAINTAINERS

Re: [PATCH] MAINTAINERS: Add unvalued folders in tests/tcg/ to the right sections

2023-10-17 Thread Cédric Le Goater
On 10/18/23 08:24, Thomas Huth wrote: Some subfolders in tests/tcg/ are already listed in the MAINTAINERS file, some others aren't listed yet. Add the missing ones now to the MAINTAINERS file, too, to make sure that get_maintainers.pl reports the correct maintainer. Signed-off-by: Thomas Huth

Re: [PATCH] MAINTAINERS: Add unvalued folders in tests/tcg/ to the right sections

2023-10-17 Thread Philippe Mathieu-Daudé
On 18/10/23 08:24, Thomas Huth wrote: Some subfolders in tests/tcg/ are already listed in the MAINTAINERS file, some others aren't listed yet. Add the missing ones now to the MAINTAINERS file, too, to make sure that get_maintainers.pl reports the correct maintainer. Signed-off-by: Thomas Huth -

Re: [PATCH] ppc/pnv: Connect PNV I2C controller to powernv10

2023-10-17 Thread Cédric Le Goater
On 10/18/23 00:14, Glenn Miles wrote: Wires up four I2C controller instances to the powernv10 chip XSCOM address space. Each controller instance is wired up to two I2C buses of its own. No other I2C devices are connected to the buses at this time. Signed-off-by: Glenn Miles --- Based-on: <202

Re: [PATCH v2 8/8] MAINTAINERS: Update PPC TCG target with tests

2023-10-17 Thread Thomas Huth
On 02/10/2023 17.51, Cédric Le Goater wrote: Cc: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Signed-off-by: Cédric Le Goater --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e40f7f71d651..174b

[PATCH] MAINTAINERS: Add unvalued folders in tests/tcg/ to the right sections

2023-10-17 Thread Thomas Huth
Some subfolders in tests/tcg/ are already listed in the MAINTAINERS file, some others aren't listed yet. Add the missing ones now to the MAINTAINERS file, too, to make sure that get_maintainers.pl reports the correct maintainer. Signed-off-by: Thomas Huth --- MAINTAINERS | 6 ++ 1 file chang

RE: [PATCH 01/11] hw/net/cadence_gem: use REG32 macro for register definitions

2023-10-17 Thread Boddu, Sai Pavan
Reviewed-by: sai.pavan.bo...@amd.com Regards, Sai Pavan >-Original Message- >From: Luc Michel >Sent: Wednesday, October 18, 2023 1:14 AM >To: qemu-devel@nongnu.org >Cc: Michel, Luc ; qemu-...@nongnu.org; Edgar E . >Iglesias ; Alistair Francis ; >Peter Maydell ; Jason Wang >; Philippe

Re: [PATCH] ui/gtk: full-screening all detached windows

2023-10-17 Thread Marc-André Lureau
Hi On Wed, Oct 18, 2023 at 3:45 AM Kim, Dongwon wrote: > > Hi Marc-André, > > > Hi > > > > On Fri, Oct 13, 2023 at 2:51 AM Dongwon Kim > > wrote: > > > > > > When turning on or off full-screen menu, all detached windows should > > > be full-screened or un-full-screened altogether. > > > > I am n

Re: [PATCH 2/4] qapi: introduce device-sync-config

2023-10-17 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > On 17.10.23 17:57, Markus Armbruster wrote: >> Vladimir Sementsov-Ogievskiy writes: >> >>> Add command to sync config from vhost-user backend to the device. It >>> may be helpful when VHOST_USER_SLAVE_CONFIG_CHANGE_MSG failed or not >>> triggered interrupt

Re: [PATCH 2/2] linux-user: Replace use of lfs64 related functions and macros

2023-10-17 Thread Helge Deller
On 10/15/23 13:39, Sam James wrote: Did anything happen with this, or did it get stuck? We just had another user hit it in Gentoo at https://bugs.gentoo.org/915809. It looks like openembedded (obviously given the author) and Alpine have been using this for nearly a year. I might be wrong, but

Re: [RFC PATCH v2 02/78] block: add fallthrough pseudo-keyword

2023-10-17 Thread Manos Pitsidianakis
On Wed, 18 Oct 2023 01:11, Eric Blake wrote: static bool cluster_needs_new_alloc(BlockDriverState *bs, uint64_t l2_entry) { switch (qcow2_get_cluster_type(bs, l2_entry)) { case QCOW2_CLUSTER_NORMAL: +fallthrough; case QCOW2_CLUSTER_ZERO_ALLOC: Why is this one needed?

Re: [RFC PATCH v4 4/4] tests/avocado: Add test for amigaone board

2023-10-17 Thread Thomas Huth
Please add a short patch description if this moves from RFC to a real patch On 17/10/2023 21.06, BALATON Zoltan wrote: Signed-off-by: BALATON Zoltan --- I have no idea if this works so testing and corrections are welcome Why don't you test it on your own? I think this should be sufficient:

Re: [PATCH] vhost: Perform memory section dirty scans once per iteration

2023-10-17 Thread Michael S. Tsirkin
On Tue, Oct 17, 2023 at 05:32:34PM -0700, Si-Wei Liu wrote: > > > On 10/6/2023 2:48 AM, Michael S. Tsirkin wrote: > > On Fri, Oct 06, 2023 at 09:58:30AM +0100, Joao Martins wrote: > > > On 03/10/2023 15:01, Michael S. Tsirkin wrote: > > > > On Wed, Sep 27, 2023 at 12:14:28PM +0100, Joao Martins w

Re: [PATCH v4 2/5] target/riscv: Remove misa_mxl validation

2023-10-17 Thread LIU Zhiwei
On 2023/10/18 2:53, Akihiko Odaki wrote: It is initialized with a simple assignment and there is little room for error. In fact, the validation is even more complex. Signed-off-by: Akihiko Odaki --- target/riscv/tcg/tcg-cpu.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletion

Re: [PATCH 1/4] target/riscv: Remove misa_mxl validation

2023-10-17 Thread LIU Zhiwei
+CC Richard On 2023/10/17 11:37, Akihiko Odaki wrote: On 2023/10/17 11:29, LIU Zhiwei wrote: On 2023/10/12 13:42, Akihiko Odaki wrote: It is initialized with a simple assignment and there is little room for error. In fact, the validation is even more complex. Signed-off-by: Akihiko Odaki --

Re: [PATCH] configure: define "pkg-config" in addition to "pkgconfig"

2023-10-17 Thread Thomas Huth
On 17/10/2023 17.36, Paolo Bonzini wrote: Meson used to allow both "pkgconfig" and "pkg-config" entries in machine files; the former was used for dependency lookup and the latter was used as return value for "find_program('pkg-config')", which is a less common use-case and one that QEMU does not

Re: [PATCH v3 0/4] qapi/migration: Dedup migration parameter objects and fix tls-authz crash

2023-10-17 Thread Markus Armbruster
Peter Xu writes: > On Tue, Oct 17, 2023 at 08:32:02AM +0200, Markus Armbruster wrote: >> I can see two useful QAPI generator features: > > Agreed. > >> >> * Improved handling of missing member documentation >> >> Problem: many members lack documentation. We silently generate >> documentati

Re: [PATCH] MAINTAINERS: Add hw/input/lasips2.c to the HPPA machine section

2023-10-17 Thread Philippe Mathieu-Daudé
On 17/10/23 17:19, Thomas Huth wrote: hw/input/lasips2.c and the corresponding header include/hw/input/lasips2.h are only used by the HPPA machine, so add them to the corresponding section in the MAINTAINERS file. Signed-off-by: Thomas Huth --- MAINTAINERS | 2 ++ 1 file changed, 2 insertion

Re: [PATCH v2 1/2] tcg: Add tcg_gen_{ld,st}_i128

2023-10-17 Thread Philippe Mathieu-Daudé
On 18/10/23 03:19, gaosong wrote: 在 2023/10/14 上午1:51, Richard Henderson 写道: Do not require the translators to jump through concat and extract of i64 in order to move values to and from  env. Signed-off-by: Richard Henderson ---   include/tcg/tcg-op-common.h |  3 +++   tcg/tcg-op.c

Re: [PATCH] hw/audio/pcspk: Inline pcspk_init()

2023-10-17 Thread Philippe Mathieu-Daudé
On 17/10/23 22:08, Mark Cave-Ayland wrote: On 17/10/2023 14:50, Philippe Mathieu-Daudé wrote: pcspk_init() is a legacy init function, inline and remove it. Signed-off-by: Philippe Mathieu-Daudé ---   include/hw/audio/pcspk.h | 10 --   hw/i386/pc.c |  3 ++-   hw/isa/i82378.

RE: [PATCH v2 3/3] target/hexagon: avoid shadowing globals

2023-10-17 Thread Brian Cain
> -Original Message- > From: Philippe Mathieu-Daudé > Sent: Tuesday, October 10, 2023 12:23 AM > To: Brian Cain ; richard.hender...@linaro.org; > a...@rev.ng > Cc: arm...@redhat.com; peter.mayd...@linaro.org; Matheus Bernardino > (QUIC) ; stefa...@redhat.com; a...@rev.ng; > Marco Liebel

Re: [PATCH v2 1/4] softmmu/physmem: Warn with ram_block_discard_range() on MAP_PRIVATE file mapping

2023-10-17 Thread Xiaoyao Li
David, On 7/6/2023 3:56 PM, David Hildenbrand wrote: ram_block_discard_range() cannot possibly do the right thing in MAP_PRIVATE file mappings in the general case. To achieve the documented semantics, we also have to punch a hole into the file, possibly messing with other MAP_PRIVATE/MAP_SHARED

[PATCH v2] contrib/plugins: Close file descriptor on error return

2023-10-17 Thread Cong Liu
This patch closes the file descriptor fd on error return to avoid resource leak. Fixes: ec7ee95db909 ("contrib/plugins: fix coverity warning in lockstep") Signed-off-by: Cong Liu --- contrib/plugins/lockstep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/plugins/lockstep.c b/con

RE: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-17 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Tuesday, October 17, 2023 11:51 PM >Subject: Re: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and >targetted interface > >On 10/16/23 10:31, Zhenzhong Duan wrote: >> From: Eric Auger >> >> Introduce a dumb VF

RE: [PATCH v2 01/27] vfio: Rename VFIOContainer into VFIOLegacyContainer

2023-10-17 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, October 17, 2023 11:51 PM >Subject: Re: [PATCH v2 01/27] vfio: Rename VFIOContainer into >VFIOLegacyContainer > >Hello, > >On 10/16/23 10:31, Zhenzhong Duan wrote: >> From: Eric Auger >> >> In the prospect to introduce a base o

Re: [PATCH 18/18] target/i386: remove gen_op

2023-10-17 Thread Richard Henderson
On 10/14/23 03:01, Paolo Bonzini wrote: It is not used anymore by the old decoder, inline the CMP case into CMPS and SCAS. Signed-off-by: Paolo Bonzini --- target/i386/tcg/translate.c | 145 +++- 1 file changed, 12 insertions(+), 133 deletions(-) Reviewed-b

Re: [PATCH 09/18] target/i386: do not clobber A0 in POP translation

2023-10-17 Thread Richard Henderson
On 10/14/23 03:01, Paolo Bonzini wrote: The new decoder likes to compute the address in A0 very early, so the gen_lea_v_seg in gen_pop_T0 would clobber the address of the memory operand. Instead use T0 since it is already available and will be overwritten immediately after. Signed-off-by: Paolo

Re: [PATCH 06/18] target/i386: accept full MemOp in gen_ext_tl

2023-10-17 Thread Richard Henderson
On 10/14/23 03:01, Paolo Bonzini wrote: Use MO_SIGN to indicate signed vs. unsigned extension, and filter out bits other than MO_SIGN and MO_SIZE. Signed-off-by: Paolo Bonzini --- target/i386/tcg/translate.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(

Re: [PATCH 04/18] tests/tcg/i386: initialize more registers in test-avx

2023-10-17 Thread Richard Henderson
On 10/14/23 03:01, Paolo Bonzini wrote: Some instructions use YMM0 implicitly, or use YMM9 as a read-modify-write register destination. Initialize those registers as well. Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson r~

Re: [PATCH 02/18] target/i386: validate VEX.W for AVX instructions

2023-10-17 Thread Richard Henderson
On 10/14/23 03:01, Paolo Bonzini wrote: Instructions in VEX exception class 6 generally look at the value of VEX.W. Note that the manual places some instructions incorrectly in class 4, for example VPERMQ which has no non-VEX encoding and no legacy SSE analogue. AMD does a mess of its own, as d

Re: [PATCH 01/18] target/i386: group common checks in the decoding phase

2023-10-17 Thread Richard Henderson
On 10/14/23 03:01, Paolo Bonzini wrote: @@ -224,6 +233,8 @@ struct X86OpEntry { unsigned vex_class:8; X86VEXSpecial vex_special:8; uint16_t valid_prefix:16; +uint8_t check:8; +uint8_t intercept:8; bool is_decode:1; }; Unless you have a

Re: [PATCH v2 1/2] tcg: Add tcg_gen_{ld,st}_i128

2023-10-17 Thread gaosong
在 2023/10/14 上午1:51, Richard Henderson 写道: Do not require the translators to jump through concat and extract of i64 in order to move values to and from env. Signed-off-by: Richard Henderson --- include/tcg/tcg-op-common.h | 3 +++ tcg/tcg-op.c| 22 ++ 2

Re: [RFC PATCH 0/2] target/loongarch: Use i128 for 128-bit loads/stores

2023-10-17 Thread gaosong
在 2023/10/17 下午8:38, Philippe Mathieu-Daudé 写道: RFC because unsure and untested... Based-on: <20231013175109.124308-1-richard.hender...@linaro.org> tcg: Add tcg_gen_{ld,st}_i128 Philippe Mathieu-Daudé (2): target/loongarch: Use i128 for 128-bit load/store in VST[X]/XVST target/loongarc

Re: [PATCH] vhost: Perform memory section dirty scans once per iteration

2023-10-17 Thread Si-Wei Liu
On 10/6/2023 2:48 AM, Michael S. Tsirkin wrote: On Fri, Oct 06, 2023 at 09:58:30AM +0100, Joao Martins wrote: On 03/10/2023 15:01, Michael S. Tsirkin wrote: On Wed, Sep 27, 2023 at 12:14:28PM +0100, Joao Martins wrote: On setups with one or more virtio-net devices with vhost on, dirty track

Re: [PATCH v3 11/11] tests/qtest: Adding PCS Module test to GMAC Qtest

2023-10-17 Thread Hao Wu
On Tue, Oct 17, 2023 at 4:04 PM Nabih Estefan wrote: > From: Nabih Estefan Diaz > > - Add PCS Register check to npcm_gmac-test > > Signed-off-by: Nabih Estefan Diaz > Reviewed-by: Hao Wu > --- > tests/qtest/npcm_gmac-test.c | 134 ++- > 1 file changed, 133 in

Re: [PATCH v3 09/11] hw/net: GMAC Rx Implementation

2023-10-17 Thread Hao Wu
Please consolidate the commit message in this patch. I think we only need to describe the functionality you implemented here (i.e. the receive (RX) for the GMAC model) and how you did it. There's no need to keep the verbose comment on each corner cases we had. On Tue, Oct 17, 2023 at 4:04 PM Nab

Re: [PATCH v3 08/11] hw/net: General GMAC Implementation

2023-10-17 Thread Hao Wu
On Tue, Oct 17, 2023 at 4:04 PM Nabih Estefan wrote: > From: Nabih Estefan Diaz > > - General GMAC Register handling > - GMAC IRQ Handling > - Added traces in some methods for debugging > - Lots of declarations for accessing information on GMAC Descriptors > (npcm_gmac.h file) > > NOTE: With cod

Re: [PATCH v3 07/11] include/hw/net: Implemented Classes and Masks for GMAC Descriptors

2023-10-17 Thread Hao Wu
On Tue, Oct 17, 2023 at 4:04 PM Nabih Estefan wrote: > From: Nabih Estefan Diaz > > - Implemeted classes for GMAC Receive and Transmit Descriptors > - Implemented Masks for said descriptors > > Signed-off-by: Nabih Estefan Diaz > Reviewed-by: Hao Wu > --- > hw/net/npcm_gmac.c | 1

Re: [PATCH v3 06/11] \tests/qtest: Creating qtest for GMAC Module

2023-10-17 Thread Hao Wu
You have an extra "\" in the title. On Tue, Oct 17, 2023 at 4:04 PM Nabih Estefan wrote: > From: Nabih Estefan Diaz > > - Created qtest to check initialization of registers in GMAC Module. > - Implemented test into Build File. > > Signed-off-by: Nabih Estefan Diaz > --- > tests/qtest/meson.

RE: [PATCH] ui/gtk: full-screening all detached windows

2023-10-17 Thread Kim, Dongwon
Hi Marc-André, > Hi > > On Fri, Oct 13, 2023 at 2:51 AM Dongwon Kim > wrote: > > > > When turning on or off full-screen menu, all detached windows should > > be full-screened or un-full-screened altogether. > > I am not convinced this is desirable. Not only having multiple fullscreen > windows

[PATCH v3 02/11] hw/arm: Add PCI mailbox module to Nuvoton SoC

2023-10-17 Thread Nabih Estefan
From: Hao Wu This patch wires the PCI mailbox module to Nuvoton SoC. Google-Rebase-Count: 5 Google-Bug-Id: 262938292 Signed-off-by: Hao Wu Change-Id: Ifd858a7ed760557faa15a7a1cef66b2056f06e2e --- docs/system/arm/nuvoton.rst | 2 ++ hw/arm/npcm7xx.c| 3 ++- include/hw/arm/npcm7xx.h

[PATCH v3 08/11] hw/net: General GMAC Implementation

2023-10-17 Thread Nabih Estefan
From: Nabih Estefan Diaz - General GMAC Register handling - GMAC IRQ Handling - Added traces in some methods for debugging - Lots of declarations for accessing information on GMAC Descriptors (npcm_gmac.h file) NOTE: With code on this state, the GMAC can boot-up properly and will show up in th

[PATCH v3 05/11] hw/arm: Add GMAC devices to NPCM7XX SoC

2023-10-17 Thread Nabih Estefan
From: Hao Wu Signed-off-by: Hao Wu --- hw/arm/npcm7xx.c | 36 ++-- include/hw/arm/npcm7xx.h | 2 ++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c index c9e87162cb..12e11250e1 100644 --- a/hw/arm/npcm7

[PATCH v3 04/11] hw/net: Add NPCMXXX GMAC device

2023-10-17 Thread Nabih Estefan
From: Hao Wu This patch implements the basic registers of GMAC device. Actual network communications are not supported yet. Signed-off-by: Hao Wu include/hw: Fix type problem in NPCMGMACState - Fix type problem in NPCMGMACState - Fix Register Initalization which was breaking boot-up in driver

[PATCH v3 01/11] hw/misc: Add Nuvoton's PCI Mailbox Module

2023-10-17 Thread Nabih Estefan
From: Hao Wu The PCI Mailbox Module is a high-bandwidth communcation module between a Nuvoton BMC and CPU. It features 16KB RAM that are both accessible by the BMC and core CPU. and supports interrupt for both sides. This patch implements the BMC side of the PCI mailbox module. Communication wit

[PATCH v3 06/11] \tests/qtest: Creating qtest for GMAC Module

2023-10-17 Thread Nabih Estefan
From: Nabih Estefan Diaz - Created qtest to check initialization of registers in GMAC Module. - Implemented test into Build File. Signed-off-by: Nabih Estefan Diaz --- tests/qtest/meson.build | 11 +- tests/qtest/npcm_gmac-test.c | 209 +++ 2 files chang

[PATCH v3 09/11] hw/net: GMAC Rx Implementation

2023-10-17 Thread Nabih Estefan
From: Nabih Estefan Diaz - Implementation of Receive function for packets - Implementation for reading and writing from and to descriptors in memory for Rx NOTE: At this point in development we believe this function is working as intended, and the kernel supports these findings, but we need th

[PATCH v3 10/11] hw/net: GMAC Tx Implementation

2023-10-17 Thread Nabih Estefan
From: Nabih Estefan Diaz - Implementation of Transmit function for packets - Implementation for reading and writing from and to descriptors in memory for Tx NOTE: This function implements the steps detailed in the datasheet for transmitting messages from the GMAC. Signed-off-by: Nabih Estefan

[PATCH v3 03/11] hw/misc: Add qtest for NPCM7xx PCI Mailbox

2023-10-17 Thread Nabih Estefan
From: Hao Wu This patches adds a qtest for NPCM7XX PCI Mailbox module. It sends read and write requests to the module, and verifies that the module contains the correct data after the requests. Signed-off-by: Hao Wu --- tests/qtest/meson.build | 1 + tests/qtest/npcm7xx_pci_mbox-

[PATCH v3 11/11] tests/qtest: Adding PCS Module test to GMAC Qtest

2023-10-17 Thread Nabih Estefan
From: Nabih Estefan Diaz - Add PCS Register check to npcm_gmac-test Signed-off-by: Nabih Estefan Diaz --- tests/qtest/npcm_gmac-test.c | 134 ++- 1 file changed, 133 insertions(+), 1 deletion(-) diff --git a/tests/qtest/npcm_gmac-test.c b/tests/qtest/npcm_gmac

[PATCH v3 07/11] include/hw/net: Implemented Classes and Masks for GMAC Descriptors

2023-10-17 Thread Nabih Estefan
From: Nabih Estefan Diaz - Implemeted classes for GMAC Receive and Transmit Descriptors - Implemented Masks for said descriptors Signed-off-by: Nabih Estefan Diaz --- hw/net/npcm_gmac.c | 183 +++ hw/net/trace-events | 9 ++ include/hw/net

[PATCH v3 00/11] Implementation of NPI Mailbox and GMAC Networking Module

2023-10-17 Thread Nabih Estefan
From: Nabih Estefan Diaz [Changes since v2] Fixed bugs related to the RC functionality of the GMAC. Added and squashed patches related to that. [Changes since v1] Fixed some errors in formatting. Fixed a merge error that I didn't see in v1. Removed Nuvoton 8xx references since that is a separate

Re: [PATCH] migration: Fix parse_ramblock() on overwritten retvals

2023-10-17 Thread Fabiano Rosas
Peter Xu writes: > It's possible that some errors can be overwritten with success retval later > on, and then ignored. Always capture all errors and report. > > Reported by Coverity 1522861, but actually I spot one more in the same > function. > > Fixes: CID 1522861 > Signed-off-by: Peter Xu R

[PATCH] ppc/pnv: Connect PNV I2C controller to powernv10

2023-10-17 Thread Glenn Miles
Wires up four I2C controller instances to the powernv10 chip XSCOM address space. Each controller instance is wired up to two I2C buses of its own. No other I2C devices are connected to the buses at this time. Signed-off-by: Glenn Miles --- Based-on: <20231016222013.3739530-1-mil...@linux.vnet.

[PATCH v2 0/6] riscv: zicntr/zihpm flags and disable support

2023-10-17 Thread Daniel Henrique Barboza
;t seem to care about the lack of both zicntr and zihpm when running TCG, although attempting to use the timers will result in SIGILL. [1] https://lore.kernel.org/qemu-riscv/20230717215419.124258-1-dbarb...@ventanamicro.com/ [2] https://lore.kernel.org/qemu-riscv/20231017-e7a471

[PATCH v2 4/6] target/riscv/cpu.c: add zihpm extension flag

2023-10-17 Thread Daniel Henrique Barboza
zihpm is the Hardware Performance Counters extension described in chapter 12 of the unprivileged spec. It describes support for 29 unprivileged performance counters, hpmcounter3-hpmcounter31. As with zicntr, QEMU already implements zihpm before it was even an extension. zihpm is also part of the R

[PATCH v2 1/6] target/riscv/cpu.c: add zicntr extension flag

2023-10-17 Thread Daniel Henrique Barboza
zicntr is the Base Counters and Timers extension described in chapter 12 of the unprivileged spec. It describes support for RDCYCLE, RDTIME and RDINSTRET. QEMU already implements it way before it was a discrete extension. zicntr is part of the RVA22 profile, so let's add it to QEMU to make the fut

[PATCH v2 6/6] target/riscv/kvm: add zihpm reg

2023-10-17 Thread Daniel Henrique Barboza
Add zihpm support in the KVM driver now that QEMU supports it. This reg was added in Linux 6.6. Signed-off-by: Daniel Henrique Barboza --- target/riscv/kvm/kvm-cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c index 6c2a92d171..524

[PATCH v2 2/6] target/riscv/tcg: add ext_zicntr disable support

2023-10-17 Thread Daniel Henrique Barboza
Support for the zicntr counters are already in place. We need a way to disable them if the user wants to. This is done by restricting access to the CYCLE, TIME, and INSTRET counters via the 'ctr()' predicate when we're about to access them. Disabling zicntr happens via the command line or if its d

[PATCH v2 3/6] target/riscv/kvm: add zicntr reg

2023-10-17 Thread Daniel Henrique Barboza
Add zicntr support in the KVM driver now that QEMU supports it. This reg was added in Linux 6.6. Signed-off-by: Daniel Henrique Barboza --- target/riscv/kvm/kvm-cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c index 5695f2face..6c

[PATCH v2 5/6] target/riscv/tcg: add ext_zihpm disable support

2023-10-17 Thread Daniel Henrique Barboza
Disabling ext_zihpm does nothing at this moment. Add support to disable the hpmcounter3-hpmcounter31 counters if the user disables zihpm. There is already code in place in target/riscv/csr.c in all predicates for these counters (ctr() and mctr()) that disables them if cpu->cfg.pmu_num is zero. Thu

Re: [RFC PATCH v2 04/78] qapi/opts-visitor: add fallthrough pseudo-keyword

2023-10-17 Thread Eric Blake
On Fri, Oct 13, 2023 at 10:56:31AM +0300, Emmanouil Pitsidianakis wrote: > In preparation of raising -Wimplicit-fallthrough to 5, replace all > fall-through comments with the fallthrough attribute pseudo-keyword. > > Signed-off-by: Emmanouil Pitsidianakis > --- > qapi/opts-visitor.c | 1

Re: [RFC PATCH v2 02/78] block: add fallthrough pseudo-keyword

2023-10-17 Thread Eric Blake
On Fri, Oct 13, 2023 at 10:56:29AM +0300, Emmanouil Pitsidianakis wrote: > In preparation of raising -Wimplicit-fallthrough to 5, replace all > fall-through comments with the fallthrough attribute pseudo-keyword. > > Signed-off-by: Emmanouil Pitsidianakis > --- > block/block-copy.c| 1 + >

Re: [RFC PATCH v2 01/78] include/qemu/compiler.h: replace QEMU_FALLTHROUGH with fallthrough

2023-10-17 Thread Eric Blake
On Fri, Oct 13, 2023 at 10:56:28AM +0300, Emmanouil Pitsidianakis wrote: > Signed-off-by: Emmanouil Pitsidianakis The subject line gives the 'what', but the commit body is conspicuously lacking on the 'why'. > --- > audio/pwaudio.c | 8 > hw/arm/smmuv3.c | 2

Re: [RFC PATCH v2 00/78] Strict disable implicit fallthrough

2023-10-17 Thread Eric Blake
On Fri, Oct 13, 2023 at 10:56:27AM +0300, Emmanouil Pitsidianakis wrote: > /* resubmitted because git-send-email crashed with previous attempt */ > > Hello, > > This RFC is inspired by the kernel's move to -Wimplicit-fallthrough=3 > back in 2019.[0] > We take one step (or two) further by increasi

Re: [PATCH v2 1/3] via-ide: Fix legacy mode emulation

2023-10-17 Thread BALATON Zoltan
On Tue, 17 Oct 2023, Mark Cave-Ayland wrote: On 16/10/2023 23:16, BALATON Zoltan wrote: On Sun, 15 Oct 2023, Mark Cave-Ayland wrote: On 14/10/2023 17:13, BALATON Zoltan wrote: On Sat, 14 Oct 2023, Mark Cave-Ayland wrote: Using the portio_list*() APIs really is the right way to implement this

Re: [PATCH v2] intel-iommu: Report interrupt remapping faults, fix return value

2023-10-17 Thread David Woodhouse
On Tue, 2023-10-17 at 17:28 -0400, Michael S. Tsirkin wrote: > On Tue, Oct 17, 2023 at 10:19:55PM +0100, David Woodhouse wrote: > > On Wed, 2023-08-23 at 11:37 -0400, Peter Xu wrote: > > > On Wed, Aug 23, 2023 at 01:23:25PM +0100, David Woodhouse wrote: > > > > From: David Woodhouse > > > > > > >

Re: [PATCH v2] intel-iommu: Report interrupt remapping faults, fix return value

2023-10-17 Thread Michael S. Tsirkin
On Tue, Oct 17, 2023 at 10:19:55PM +0100, David Woodhouse wrote: > On Wed, 2023-08-23 at 11:37 -0400, Peter Xu wrote: > > On Wed, Aug 23, 2023 at 01:23:25PM +0100, David Woodhouse wrote: > > > From: David Woodhouse > > > > > > A generic X86IOMMUClass->int_remap function should not return VT-d > >

Re: [RFC PATCH] hw/timer/hpet: fix IRQ routing in legacy support mode

2023-10-17 Thread David Woodhouse
On Wed, 2023-08-30 at 21:20 +0100, David Woodhouse wrote: > From: David Woodhouse > > The interrupt from timer 0 in legacy mode is supposed to go to IRQ 0 on > the i8259 and IRQ 2 on the I/O APIC. The generic x86 GSI handling can't > cope with IRQ numbers differing between the two chips (despite

Re: [PATCH v2] intel-iommu: Report interrupt remapping faults, fix return value

2023-10-17 Thread David Woodhouse
On Wed, 2023-08-23 at 11:37 -0400, Peter Xu wrote: > On Wed, Aug 23, 2023 at 01:23:25PM +0100, David Woodhouse wrote: > > From: David Woodhouse > > > > A generic X86IOMMUClass->int_remap function should not return VT-d > > specific values; fix it to return 0 if the interrupt was successfully > >

Re: [PATCH v2 00/90] target/sparc: Convert to decodetree

2023-10-17 Thread Mark Cave-Ayland
On 17/10/2023 07:11, Richard Henderson wrote: While doing some other testing the other day, I noticed my sparc64 chroot running particularly slowly. I think I know what the problem is there, but fixing that was going to be particularly ugly with the existing sparc translator. So I've converted

Re: [PATCH v6 3/5] migration: migrate 'blk' command option is deprecated.

2023-10-17 Thread Juan Quintela
Juan Quintela wrote: > Use blocked-mirror with NBD instead. > > Signed-off-by: Juan Quintela > Acked-by: Stefan Hajnoczi > Reviewed-by: Thomas Huth > Reviewed-by: Markus Armbruster Hi Kevin and Stefan Can we change the iotest output to fix this? https://gitlab.com/juan.quintela/qemu/-/jobs/

Re: [PATCH v3 0/2] Add PowerNV I2C Controller Model

2023-10-17 Thread Miles Glenn
On Tue, 2023-10-17 at 09:01 +0200, Cédric Le Goater wrote: > On 10/17/23 00:20, Glenn Miles wrote: > > Upstreams the PowerNV I2C controller model originally > > authored by Cédric Le Goater with minor changes by > > myself to split the actual addition of the model from > > wiring it up to a power p

Re: [PATCH v2 02/11] pci_ids/tulip: Add PCI vendor ID for HP and use it in tulip

2023-10-17 Thread Helge Deller
On 10/17/23 22:21, BALATON Zoltan wrote: On Tue, 17 Oct 2023, Helge Deller wrote: On 10/17/23 21:19, BALATON Zoltan wrote: On Tue, 17 Oct 2023, Helge Deller wrote: On 10/17/23 18:13, BALATON Zoltan wrote: On Tue, 17 Oct 2023, del...@kernel.org wrote: From: Helge Deller Signed-off-by: Helge

[PATCH] migration: Fix parse_ramblock() on overwritten retvals

2023-10-17 Thread Peter Xu
It's possible that some errors can be overwritten with success retval later on, and then ignored. Always capture all errors and report. Reported by Coverity 1522861, but actually I spot one more in the same function. Fixes: CID 1522861 Signed-off-by: Peter Xu --- migration/ram.c | 6 -- 1

[PATCH v4 3/5] tests/migration-test: Add a test for postcopy hangs during RECOVER

2023-10-17 Thread Peter Xu
From: Fabiano Rosas To do so, create two paired sockets, but make them not providing real data. Feed those fake sockets to src/dst QEMUs for recovery to let them go into RECOVER stage without going out. Test that we can always kick it out and recover again with the right ports. This patch is ba

[PATCH v4 1/5] migration: Refactor error handling in source return path

2023-10-17 Thread Peter Xu
rp_state.error was a boolean used to show error happened in return path thread. That's not only duplicating error reporting (migrate_set_error), but also not good enough in that we only do error_report() and set it to true, we never can keep a history of the exact error and show it in query-migrat

[PATCH v4 5/5] migration: Change ram_save_queue_pages() retval to bool

2023-10-17 Thread Peter Xu
After we have errp which contains the more detailed error message, make ram_save_queue_pages() returns bool in its stack. Signed-off-by: Peter Xu --- migration/ram.h | 4 ++-- migration/migration.c | 16 migration/ram.c | 18 +- 3 files changed, 19 i

[PATCH 09/11] hw/net/cadence_gem: use FIELD to describe PHYMNTNC register fields

2023-10-17 Thread Luc Michel
Use the FIELD macro to describe the PHYMNTNC register fields. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 955a8da134..4c5fe10316 100644 --- a

[PATCH 02/11] hw/net/cadence_gem: use FIELD for screening registers

2023-10-17 Thread Luc Michel
Describe screening registers fields using the FIELD macros. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 92 ++-- 1 file changed, 47 insertions(+), 45 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 0e5744ecd7..f01c81de

[PATCH 03/11] hw/net/cadence_gem: use FIELD to describe NWCTRL register fields

2023-10-17 Thread Luc Michel
Use the FIELD macro to describe the NWCTRL register fields. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 53 +--- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index f01c81de97..2864f094

[PATCH 08/11] hw/net/cadence_gem: use FIELD to describe DESCONF6 register fields

2023-10-17 Thread Luc Michel
Use the FIELD macro to describe the DESCONF6 register fields. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 6d084a3b31..955a8da134 100644 --- a/hw/net/cadence_gem.c +++

[PATCH 04/11] hw/net/cadence_gem: use FIELD to describe NWCFG register fields

2023-10-17 Thread Luc Michel
Use de FIELD macro to describe the NWCFG register fields. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 60 1 file changed, 39 insertions(+), 21 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 2864f0940e..09f570b6fb

[PATCH 00/11] Various updates for the Cadence GEM model

2023-10-17 Thread Luc Michel
Hi, This series brings small changes to the Cadence GEM Ethernet model. There is (almost) no behaviour change. Patches 1 to 9 replace handcrafted defines with the use of REG32 and FIELDS macros for register and fields declarations. Patch 10 fixes PHY accesses so that they are done only on a writ

[PATCH v4 2/5] migration: Allow network to fail even during recovery

2023-10-17 Thread Peter Xu
Normally the postcopy recover phase should only exist for a super short period, that's the duration when QEMU is trying to recover from an interrupted postcopy migration, during which handshake will be carried out for continuing the procedure with state changes from PAUSED -> RECOVER -> POSTCOPY_AC

[PATCH v4 0/5] migration: Better error handling in rp thread, allow failures in recover

2023-10-17 Thread Peter Xu
v4: - Some patches merged, reposting the rest patches - Fixed a bug in the new test case reported by Fabiano - Try to keep close_return_path_on_source() return a value (even though it still fetches from migrate_has_error) - Two more patches added to cleanup retval of rp thread functions v1: http

[PATCH 11/11] hw/net/cadence_gem: enforce 32 bits variable size for CRC

2023-10-17 Thread Luc Michel
The CRC was stored in an unsigned variable in gem_receive. Change it for a uint32_t to ensure we have the correct variable size here. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c

[PATCH 05/11] hw/net/cadence_gem: use FIELD to describe DMACFG register fields

2023-10-17 Thread Luc Michel
Use de FIELD macro to describe the DMACFG register fields. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 48 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 09f570b6fb..5c386adff

[PATCH v4 4/5] migration: Change ram_dirty_bitmap_reload() retval to bool

2023-10-17 Thread Peter Xu
Now we have a Error** passed into the return path thread stack, which is even clearer than an int retval. Change ram_dirty_bitmap_reload() and the callers to use a bool instead to replace errnos. Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Peter Xu --- migration/ram.h | 2 +- mi

[PATCH 10/11] hw/net/cadence_gem: perform PHY access on write only

2023-10-17 Thread Luc Michel
The MDIO access is done only on a write to the PHYMNTNC register. A subsequent read is used to retrieve the result but does not trigger an MDIO access by itself. Refactor the PHY access logic to perform all accesses (MDIO reads and writes) at PHYMNTNC write time. Signed-off-by: Luc Michel --- h

[PATCH 07/11] hw/net/cadence_gem: use FIELD to describe IRQ register fields

2023-10-17 Thread Luc Michel
Use de FIELD macro to describe the IRQ related register fields. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 51 +--- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 0acee1d544..6d08

[PATCH 06/11] hw/net/cadence_gem: use FIELD to describe [TX|RX]STATUS register fields

2023-10-17 Thread Luc Michel
Use de FIELD macro to describe the TXSTATUS and RXSTATUS register fields. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index 5c386adff2..0acee

[PATCH 01/11] hw/net/cadence_gem: use REG32 macro for register definitions

2023-10-17 Thread Luc Michel
Replace register defines with the REG32 macro from registerfields.h in the Cadence GEM device. Signed-off-by: Luc Michel --- hw/net/cadence_gem.c | 527 +-- 1 file changed, 261 insertions(+), 266 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cad

  1   2   3   4   5   >