Re: [PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-22 Thread Warner Losh
Oh, also, can I get a reviewed-by? Warner On Mon, Jul 22, 2024 at 11:08 PM Warner Losh wrote: > > > On Mon, Jul 22, 2024 at 7:17 PM Richard Henderson < > richard.hender...@linaro.org> wrote: > >> On 7/23/24 08:11, Philippe Mathieu-Daudé wrote: >> > On 23/7/24 00:06, Warner Losh wrote: >> >> >>

RE: [PATCH v6 5/9] vfio/iommufd: Probe and request hwpt dirty tracking capability

2024-07-22 Thread Duan, Zhenzhong
>-Original Message- >From: Joao Martins >Subject: [PATCH v6 5/9] vfio/iommufd: Probe and request hwpt dirty >tracking capability > >In preparation to using the dirty tracking UAPI, probe whether the IOMMU >supports dirty tracking. This is done via the data stored in >hiod::caps::hw_caps

RE: [PATCH v6 3/9] vfio/iommufd: Add hw_caps field to HostIOMMUDeviceCaps

2024-07-22 Thread Duan, Zhenzhong
>-Original Message- >From: Joao Martins >Subject: [PATCH v6 3/9] vfio/iommufd: Add hw_caps field to >HostIOMMUDeviceCaps > >Store the value of @caps returned by iommufd_backend_get_device_info() >in a new field HostIOMMUDeviceCaps::hw_caps. Right now the only value is >whether device IOM

Re: [PATCH 13/14] bsd-user: Make compile for non-linux user-mode stuff

2024-07-22 Thread Warner Losh
On Mon, Jul 22, 2024 at 4:01 PM Philippe Mathieu-Daudé wrote: > Hi Warner, > > On 22/7/24 23:43, Warner Losh wrote: > > We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use > > them unconditionally. Restrict its use to Linux-only. > > We should check that in meson, i.e.: > > c

Re: [PATCH v5 4/5] target/ppc: Introduce 'PowerPCCPUClass::logical_pvr'

2024-07-22 Thread Nicholas Piggin
On Thu Jun 6, 2024 at 10:16 PM AEST, Aditya Gupta wrote: > Introduce 'PnvChipClass::logical_pvr' to know corresponding logical PVR > of a PowerPC CPU. > This helps to have a one-to-one mapping between PVR and logical PVR for > a CPU, and used in a later commit to handle cases where PCR of two > gen

Re: [PULL 0/4] hw/nvme patches

2024-07-22 Thread Richard Henderson
On 7/23/24 02:40, Klaus Jensen wrote: From: Klaus Jensen Hi, The following changes since commit a7ddb48bd1363c8bcdf42776d320289c42191f01: Merge tag 'pull-aspeed-20240721' ofhttps://github.com/legoater/qemu into staging (2024-07-22 07:52:05 +1000) are available in the Git repository at:

Re: [PATCH v5 1/5] target/ppc: reduce code duplication across Power9/10 init code

2024-07-22 Thread Nicholas Piggin
On Thu Jun 6, 2024 at 10:16 PM AEST, Aditya Gupta wrote: > From: Harsh Prateek Bora > > Power9/10 initialization code consists of a lot of logical OR of > various flag bits as supported by respective Power platform during its > initialization, most of which is duplicated and only selected bits are

Re: [PATCH v5 2/5] target/ppc: Add Power11 DD2.0 processor

2024-07-22 Thread Nicholas Piggin
On Thu Jun 6, 2024 at 10:16 PM AEST, Aditya Gupta wrote: > Add CPU target code to add support for new Power11 Processor. > > Power11 core is same as Power10, hence reuse functions defined for > Power10. > > Cc: Cédric Le Goater > Cc: Daniel Henrique Barboza > Cc: Frédéric Barrat > Cc: Harsh Prat

RE: [PATCH v5 06/13] vfio/{iommufd,container}: Remove caps::aw_bits

2024-07-22 Thread Duan, Zhenzhong
>-Original Message- >From: Joao Martins >Subject: Re: [PATCH v5 06/13] vfio/{iommufd,container}: Remove >caps::aw_bits > >On 22/07/2024 06:22, Duan, Zhenzhong wrote: >> >> >>> -Original Message- >>> From: Joao Martins >>> Subject: [PATCH v5 06/13] vfio/{iommufd,container}: Remov

Re: [PATCH 1/1] target/riscv: Remove redundant insn length check for zama16b

2024-07-22 Thread LIU Zhiwei
On 2024/7/23 10:11, Richard Henderson wrote: On 7/23/24 11:30, LIU Zhiwei wrote: Both trans_fld/fsd/flw/fsw and gen_load/store will never be a translation function for compressed instructions, thus we can remove instruction length check for them. Suggested-by: Alistair Francis Signed-off-by:

Re: [RFC 3/5] i386/kvm: Support event with select&umask format in KVM PMU filter

2024-07-22 Thread Mi, Dapeng
On 7/19/2024 4:40 PM, Zhao Liu wrote: > Hi Dapeng, > > On Thu, Jul 18, 2024 at 01:28:25PM +0800, Mi, Dapeng wrote: > > [snip] > >>> +case KVM_PMU_EVENT_FMT_X86_DEFAULT: { >>> +uint64_t select, umask; >>> + >>> +ret = qemu_strtou64(str_event->u.x86_default.select, N

Re: [PATCH 10/14] bsd-user: Hard wire aarch64 to be 4k pages only

2024-07-22 Thread Richard Henderson
On 7/23/24 15:01, Warner Losh wrote: It's a compile issue that this won't solve: ... It's fixable, but will take a fair amount more time that I have before the deadline... Ok, fair. Reviewed-by: Richard Henderson r~

Re: [PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-22 Thread Richard Henderson
On 7/23/24 07:43, Warner Losh wrote: Add the aarch64 bsd-user fragments needed to build the new aarch64 code. Signed-off-by: Warner Losh --- configs/targets/aarch64-bsd-user.mak | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 configs/targets/aarch64-bsd-user.mak Reviewed-by: R

Re: [PATCH v5 4/5] target/ppc: Introduce 'PowerPCCPUClass::logical_pvr'

2024-07-22 Thread Aditya Gupta
On 23/07/24 10:43, Nicholas Piggin wrote: On Thu Jun 6, 2024 at 10:16 PM AEST, Aditya Gupta wrote: Introduce 'PnvChipClass::logical_pvr' to know corresponding logical PVR of a PowerPC CPU. This helps to have a one-to-one mapping between PVR and logical PVR for a CPU, and used in a later commit

Re: [PATCH 1/1] target/riscv: Remove redundant insn length check for zama16b

2024-07-22 Thread Richard Henderson
On 7/23/24 15:29, LIU Zhiwei wrote: The more detailed information about its meaning is in priviledged 1.13 specification. More exactly, in 3.6.4. Misaligned Atomicity Granule PMA. The specification said: "The misaligned atomicity granule PMA applies only to AMOs, loads and stores defined in t

Re: [PATCH v5] virtio-pci: Fix the use of an uninitialized irqfd

2024-07-22 Thread Jason Wang
On Mon, Jul 22, 2024 at 4:42 PM Cindy Lu wrote: > > > > On Mon, 22 Jul 2024 at 15:24, Jason Wang wrote: > > > > Hi Cindy > > > > On Fri, Jul 19, 2024 at 1:25 PM Cindy Lu wrote: > > > > > > The crash was reported in MAC OS and NixOS, here is the link for this bug > > > https://gitlab.com/qemu-pro

Re: [PATCH v6 5/9] vfio/iommufd: Probe and request hwpt dirty tracking capability

2024-07-22 Thread Joao Martins
On 23/07/2024 06:11, Duan, Zhenzhong wrote: > > >> -Original Message- >> From: Joao Martins >> Subject: [PATCH v6 5/9] vfio/iommufd: Probe and request hwpt dirty >> tracking capability >> >> In preparation to using the dirty tracking UAPI, probe whether the IOMMU >> supports dirty tracki

Re: [RFC PATCH v5 1/8] build-sys: Add rust feature option

2024-07-22 Thread Zhao Liu
Hi Manos, On Mon, Jul 22, 2024 at 02:43:31PM +0300, Manos Pitsidianakis wrote: > Date: Mon, 22 Jul 2024 14:43:31 +0300 > From: Manos Pitsidianakis > Subject: [RFC PATCH v5 1/8] build-sys: Add rust feature option > X-Mailer: git-send-email 2.44.0 > > Add rust feature in meson.build, configure, to

Re: [PATCH v4] osdep: add a qemu_close_all_open_fd() helper

2024-07-22 Thread Philippe Mathieu-Daudé
Hi Clément, On 17/7/24 14:45, Clément Léger wrote: Since commit 03e471c41d8b ("qemu_init: increase NOFILE soft limit on POSIX"), the maximum number of file descriptors that can be opened are raised to nofile.rlim_max. On recent debian distro, this yield a maximum of 1073741816 file descriptors.

Re: [PATCH v6 4/4] docs: add test for firmware.json QAPI

2024-07-22 Thread Thomas Weißschuh
Hi Philippe, On Tue, Jul 23, 2024 at 12:15:24AM GMT, Philippe Mathieu-Daudé wrote: > Hi Thomas, > > On 19/7/24 09:37, Thomas Weißschuh wrote: > > To make sure that the QAPI description stays valid, add a testcase. > > > > Suggested-by: Philippe Mathieu-Daudé > > Link: > > https://lore.kernel.o

Re: [PATCH v5 12/13] vfio/migration: Don't block migration device dirty tracking is unsupported

2024-07-22 Thread Cédric Le Goater
On 7/22/24 20:01, Joao Martins wrote: On 22/07/2024 18:04, Cédric Le Goater wrote: On 7/22/24 18:29, Joao Martins wrote: On 22/07/2024 16:58, Cédric Le Goater wrote: On 7/22/24 17:42, Joao Martins wrote: On 22/07/2024 16:13, Cédric Le Goater wrote: On 7/22/24 17:01, Joao Martins wrote: On 2

Re: [PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-22 Thread Philippe Mathieu-Daudé
On 23/7/24 03:17, Richard Henderson wrote: On 7/23/24 08:11, Philippe Mathieu-Daudé wrote: On 23/7/24 00:06, Warner Losh wrote: On Mon, Jul 22, 2024 at 3:54 PM Philippe Mathieu-Daudé mailto:phi...@linaro.org>> wrote:     Hi Warner,     On 22/7/24 23:43, Warner Losh wrote: > Add the a

Re: [PATCH] target/riscv: Add a property to set vl to ceil(AVL/2)

2024-07-22 Thread Frank Chang
Reviewed-by: Frank Chang Jason Chien 於 2024年7月23日 週二 上午1:51寫道: > > RVV spec allows implementations to set vl with values within > [ceil(AVL/2),VLMAX] when VLMAX < AVL < 2*VLMAX. This commit adds a > property "rvv_vl_half_avl" to enable setting vl = ceil(AVL/2). This > behavior helps identify com

Re: [PATCH v6 5/9] vfio/iommufd: Probe and request hwpt dirty tracking capability

2024-07-22 Thread Cédric Le Goater
On 7/23/24 08:13, Joao Martins wrote: On 23/07/2024 06:11, Duan, Zhenzhong wrote: -Original Message- From: Joao Martins Subject: [PATCH v6 5/9] vfio/iommufd: Probe and request hwpt dirty tracking capability In preparation to using the dirty tracking UAPI, probe whether the IOMMU sup

Re: [PATCH v6 1/9] vfio/iommufd: Introduce auto domain creation

2024-07-22 Thread Cédric Le Goater
On 7/23/24 06:38, Duan, Zhenzhong wrote: -Original Message- From: Joao Martins Subject: [PATCH v6 1/9] vfio/iommufd: Introduce auto domain creation There's generally two modes of operation for IOMMUFD: 1) The simple user API which intends to perform relatively simple things with IOM

<    1   2   3   4   5