[PATCH for-7.0] linux-user: Fix syscall parameter handling for MIPS n32

2022-03-19 Thread WANG Xuerui
The MIPS n32 ABI is basically n64 with the address space (i.e. pointer width) shrinked to 32 bits. Meanwhile the current code treats it as o32-like based on TARGET_ABI_BITS, which causes problems with n32 syscalls utilizing 64-bit offsets, like pread64, affecting most (if not all) recently built n3

Re: [PATCH qemu 03/13] target/riscv: rvv: Early exit when vstart >= vl

2022-03-19 Thread Weiwei Li
在 2022/3/12 下午2:28, ~eopxd 写道: From: eopXD According to v-spec (section 5.4): When vstart ≥ vl, there are no body elements, and no elements are updated in any destination vector register group, including that no tail elements are updated with agnostic values. Signed-off-by: eop Chen Reviewe

Re: [PATCH qemu 07/13] target/riscv: rvv: Add tail agnostic for vector integer comparison instructions

2022-03-19 Thread Weiwei Li
在 2022/3/7 下午5:43, ~eopxd 写道: From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 6d79908ffe..9a08d14689 100

Re: [PATCH qemu 06/13] target/riscv: rvv: Add tail agnostic for vector integer shift instructions

2022-03-19 Thread Weiwei Li
在 2022/3/7 下午5:38, ~eopxd 写道: From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 1 + target/riscv/vector_helper.c| 12 2 files changed, 13 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.i

Re: [PATCH v3 00/11] s390x/tcg: Implement Vector-Enhancements Facility 2

2022-03-19 Thread David Miller
Is this waiting on me for anything? I wanted to ensure this is wrapped up before starting a new project. Thanks, - David Miller On Mon, Mar 7, 2022 at 11:09 PM David Miller wrote: > > > I've reviewed all changes, looks good. > Ran all of my own tests including vstrs, all passed. > > Thank you

[RFC PATCH v1 1/1] hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-19 Thread Zongyuan Li
Signed-off-by: Zongyuan Li Resolves: https://gitlab.com/qemu-project/qemu/-/issues/811 --- hw/arm/realview.c | 52 +++ 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 7b424e94a5..741ed5c2c7 1006

[RFC PATCH v1 0/1] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-19 Thread Zongyuan Li
This is a WIP patch set trying to resolve https://gitlab.com/qemu-project/qemu/-/issues/811 which tries to totally remove 'qemu_irq_split', and uses QOM object 'TYPE_SPLIT_IRQ' device instead. I just want to make sure I'm on the right way. Zongyuan Li (1): hw/arm/realview: use qom to replace

Re: [PATCH] block/rbd: fix write zeroes with growing images

2022-03-19 Thread Peter Lieven
> Am 18.03.2022 um 17:47 schrieb Stefano Garzarella : > > On Fri, Mar 18, 2022 at 04:48:18PM +0100, Peter Lieven wrote: >> >> Am 18.03.2022 um 09:25 schrieb Stefano Garzarella : >>> >>> On Thu, Mar 17, 2022 at 07:27:05PM +0100, Peter Lieven wrote: >> Am 17.03.2022 um 1

Re: [PATCH qemu 00/13] Add tail agnostic behavior for rvv instructions

2022-03-19 Thread Weiwei Li
在 2022/3/19 下午8:50, ~eopxd 写道: According to v-spec, tail agnostic behavior can be either kept as undisturbed or set elements' bits to all 1s. To distinguish the difference of tail policies, qemu should be able to simulate the tail agnostic behavior as "set tail elements' bits to all 1s". An opt

Re: [PATCH qemu 01/13] target/riscv: rvv: Prune redundant ESZ, DSZ parameter passed

2022-03-19 Thread Weiwei Li
在 2022/3/14 下午3:38, ~eopxd 写道: From: eopXD No functional change intended in this commit. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 1132 +- 1 file changed, 565 insertions(+), 567 deletions(-) diff --git a/target/

Re: [PULL 0/6] Fixes 20220318 patches

2022-03-19 Thread Peter Maydell
On Fri, 18 Mar 2022 at 14:09, Gerd Hoffmann wrote: > > The following changes since commit 1d60bb4b14601e38ed17384277aa4c30c57925d3: > > Merge tag 'pull-request-2022-03-15v2' of https://gitlab.com/thuth/qemu into > staging (2022-03-16 10:43:58 +) > > are available in the Git repository at: >

Re: [RFC PATCH-for-7.0 v4 0/2] cocoa: run qemu_init in the main thread

2022-03-19 Thread Akihiko Odaki
On 2022/03/19 22:56, Philippe Mathieu-Daudé wrote: Hi Akihiko, Paolo, Peter. On 17/3/22 13:55, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé Posting v4 in case someone want to iterate. Pending issue raised by Akihiko Odaki: * this actually breaks the "runas" option with ui/coco

Re: [PATCH qemu 05/13] target/riscv: rvv: Add tail agnostic for vx, vvm, vxm instructions

2022-03-19 Thread Weiwei Li
在 2022/3/7 下午3:32, ~eopxd 写道: From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 5 + target/riscv/vector_helper.c| 311 +--- 2 files changed, 178 insertions(+), 138 deletions(-) diff --git a/targ

Re: [PATCH qemu 04/13] target/riscv: rvv: Add tail agnostic for vv instructions

2022-03-19 Thread Weiwei Li
在 2022/3/1 下午5:07, ~eopxd 写道: From: eopXD This is the first commit regarding the tail agnostic behavior. Added option 'rvv_ta_all_1s' to enable the behavior, the option is default to false. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/cpu.c | 1

Re: [PATCH] gitattributes: Cover Objective-C source files

2022-03-19 Thread Akihiko Odaki
On 2022/03/19 22:49, Philippe Mathieu-Daudé wrote: On 19/3/22 04:25, Akihiko Odaki wrote: On 2022/03/19 1:14, Philippe Mathieu-Daudé wrote: Commit 29cf16db23 says: Since commits 0979ed017f0 ("meson: rename .inc.h files to .h.inc") and 139c1837db7 ("meson: rename included C source files to .c.i

Re: [PATCH qemu 03/13] target/riscv: rvv: Early exit when vstart >= vl

2022-03-19 Thread Weiwei Li
在 2022/3/12 下午2:28, ~eopxd 写道: From: eopXD According to v-spec (section 5.4): When vstart ≥ vl, there are no body elements, and no elements are updated in any destination vector register group, including that no tail elements are updated with agnostic values. Signed-off-by: eop Chen Reviewe

Re: [RFC PATCH-for-7.0 v4 0/2] cocoa: run qemu_init in the main thread

2022-03-19 Thread Philippe Mathieu-Daudé
Hi Akihiko, Paolo, Peter. On 17/3/22 13:55, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé Posting v4 in case someone want to iterate. Pending issue raised by Akihiko Odaki: * this actually breaks the "runas" option with ui/cocoa. [+NSApplication sharedApplication] calls isse

Re: [PATCH] gitattributes: Cover Objective-C source files

2022-03-19 Thread Philippe Mathieu-Daudé
On 19/3/22 04:25, Akihiko Odaki wrote: On 2022/03/19 1:14, Philippe Mathieu-Daudé wrote: Commit 29cf16db23 says: Since commits 0979ed017f0 ("meson: rename .inc.h files to .h.inc") and 139c1837db7 ("meson: rename included C source files to .c.inc") 'git-diff --function-context' stopped displayin

Re: [PATCH] block/rbd: fix write zeroes with growing images

2022-03-19 Thread Ilya Dryomov
On Sat, Mar 19, 2022 at 1:40 PM Ilya Dryomov wrote: > > On Fri, Mar 18, 2022 at 9:25 AM Stefano Garzarella > wrote: > > > > On Thu, Mar 17, 2022 at 07:27:05PM +0100, Peter Lieven wrote: > > > > > > > > >> Am 17.03.2022 um 17:26 schrieb Stefano Garzarella : > > >> > > >> Commit d24f80234b ("bloc

[PATCH qemu 11/13] target/riscv: rvv: Add tail agnostic for vector reduction instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 16 1 file changed, 16 insertions(+) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 63746f3321..37dc0eb9b3 100644 --- a/target/riscv/vector_helper.c

[PATCH qemu 04/13] target/riscv: rvv: Add tail agnostic for vv instructions

2022-03-19 Thread ~eopxd
From: eopXD This is the first commit regarding the tail agnostic behavior. Added option 'rvv_ta_all_1s' to enable the behavior, the option is default to false. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/cpu.c | 1 + target/riscv/cpu.h

[PATCH qemu 12/13] target/riscv: rvv: Add tail agnostic for vector mask instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 4 target/riscv/vector_helper.c| 27 + 2 files changed, 31 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/in

[PATCH qemu 07/13] target/riscv: rvv: Add tail agnostic for vector integer comparison instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 6d79908ffe..9a08d14689 100644 --- a/target/riscv/vector_helper

[PATCH qemu 13/13] target/riscv: rvv: Add tail agnostic for vector permutation instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 2 ++ target/riscv/vector_helper.c| 39 + 2 files changed, 41 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn

[PATCH qemu 10/13] target/riscv: rvv: Add tail agnostic for vector floating-point instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 11 + target/riscv/vector_helper.c| 450 +--- 2 files changed, 265 insertions(+), 196 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[PATCH qemu 06/13] target/riscv: rvv: Add tail agnostic for vector integer shift instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 1 + target/riscv/vector_helper.c| 12 2 files changed, 13 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_r

[PATCH qemu 01/13] target/riscv: rvv: Prune redundant ESZ, DSZ parameter passed

2022-03-19 Thread ~eopxd
From: eopXD No functional change intended in this commit. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 1132 +- 1 file changed, 565 insertions(+), 567 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/

[PATCH qemu 09/13] target/riscv: rvv: Add tail agnostic for vector fix-point arithmetic instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 220 ++- 1 file changed, 114 insertions(+), 106 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index ce96ae61dc..a025e4b640 10

[PATCH qemu 02/13] target/riscv: rvv: Rename ambiguous esz

2022-03-19 Thread ~eopxd
From: eopXD No functional change intended in this commit. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 76 ++-- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/ve

[PATCH qemu 05/13] target/riscv: rvv: Add tail agnostic for vx, vvm, vxm instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 5 + target/riscv/vector_helper.c| 311 +--- 2 files changed, 178 insertions(+), 138 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[PATCH qemu 00/13] Add tail agnostic behavior for rvv instructions

2022-03-19 Thread ~eopxd
According to v-spec, tail agnostic behavior can be either kept as undisturbed or set elements' bits to all 1s. To distinguish the difference of tail policies, qemu should be able to simulate the tail agnostic behavior as "set tail elements' bits to all 1s". An option 'rvv_ta_all_1s' is added to ena

[PATCH qemu 08/13] target/riscv: rvv: Add tail agnostic for vector integer merge and move instructions

2022-03-19 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 4 target/riscv/vector_helper.c| 24 2 files changed, 28 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/ins

[PATCH qemu 03/13] target/riscv: rvv: Early exit when vstart >= vl

2022-03-19 Thread ~eopxd
From: eopXD According to v-spec (section 5.4): When vstart ≥ vl, there are no body elements, and no elements are updated in any destination vector register group, including that no tail elements are updated with agnostic values. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/risc

Re: [PATCH] block/rbd: fix write zeroes with growing images

2022-03-19 Thread Ilya Dryomov
On Fri, Mar 18, 2022 at 9:25 AM Stefano Garzarella wrote: > > On Thu, Mar 17, 2022 at 07:27:05PM +0100, Peter Lieven wrote: > > > > > >> Am 17.03.2022 um 17:26 schrieb Stefano Garzarella : > >> > >> Commit d24f80234b ("block/rbd: increase dynamically the image size") > >> added a workaround to su

Re: [RFC PATCH v6 00/29] Add LoongArch softmmu support

2022-03-19 Thread Mark Cave-Ayland
On 25/02/2022 08:01, Xiaojuan Yang wrote: This series patch add softmmu support for LoongArch. The latest kernel: * https://github.com/loongson/linux/tree/loongarch-next The latest uefi: * https://github.com/loongson/edk2 * https://github.com/loongson/edk2-platforms The manual: * htt

Re: [RFC PATCH v6 23/29] hw/loongarch: Add LoongArch ls7a rtc device support

2022-03-19 Thread Mark Cave-Ayland
On 25/02/2022 08:03, Xiaojuan Yang wrote: This patch add ls7a rtc device support. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS| 1 + hw/loongarch/Kconfig | 1 + hw/loongarch/loongson3.c | 4 + hw/rtc/Kconfig | 3 + hw/r

Re: [PATCH] block/rbd: fix write zeroes with growing images

2022-03-19 Thread Ilya Dryomov
On Thu, Mar 17, 2022 at 5:26 PM Stefano Garzarella wrote: > > Commit d24f80234b ("block/rbd: increase dynamically the image size") > added a workaround to support growing images (eg. qcow2), resizing > the image before write operations that exceed the current size. > > We recently added support fo

Re: [RFC PATCH v6 19/29] hw/intc: Add LoongArch extioi interrupt controller(EIOINTC)

2022-03-19 Thread Mark Cave-Ayland
On 25/02/2022 08:02, Xiaojuan Yang wrote: This patch realize the EIOINTC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig| 3 + hw/intc/loongarch_extioi.c | 417 + hw/intc/meson.build

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-19 Thread Ralf Ramsauer
On 17/03/2022 10:45, Peter Maydell wrote: On Wed, 16 Mar 2022 at 22:23, Alistair Francis wrote: Hmm... This seems like a bug. We shouldn't allow the user to specify a `-bios` option if using KVM. Would you mind preparing a patch to catch this? You don't want to allow the possibility of a b

Re: [RFC PATCH v6 17/29] hw/intc: Add LoongArch ls7a interrupt controller support(PCH-PIC)

2022-03-19 Thread Mark Cave-Ayland
On 25/02/2022 08:02, Xiaojuan Yang wrote: This patch realize the PCH-PIC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig | 4 + hw/intc/loongarch_pch_pic.c | 488 hw/intc/meson.build

Re: [RFC PATCH v6 16/29] hw/loongarch: Add LoongArch ipi interrupt support(IPI)

2022-03-19 Thread Mark Cave-Ayland
On 25/02/2022 08:02, Xiaojuan Yang wrote: This patch realize the IPI interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 2 + hw/intc/Kconfig | 3 + hw/intc/loongarch_ipi.c | 164 +

Re: [RFC PATCH v6 14/29] hw/loongarch: Add support loongson3 virt machine type.

2022-03-19 Thread Mark Cave-Ayland
On 25/02/2022 08:02, Xiaojuan Yang wrote: Emulate a 3A5000 board use the new loongarch instruction. 3A5000 belongs to the Loongson3 series processors. The board consists of a 3A5000 cpu model and the virt bridge. The host 3A5000 board is really complicated and contains many functions.Now for the

Re: [PULL 0/2] Trivial branch for 7.0 patches

2022-03-19 Thread Peter Maydell
On Fri, 18 Mar 2022 at 14:02, Laurent Vivier wrote: > > The following changes since commit 1d60bb4b14601e38ed17384277aa4c30c57925d3: > > Merge tag 'pull-request-2022-03-15v2' of https://gitlab.com/thuth/qemu into > staging (2022-03-16 10:43:58 +) > > are available in the Git repository at:

Re: Question about vmstate_register(), dc->vmsd and instance_id

2022-03-19 Thread David Gibson
On Fri, Mar 18, 2022 at 04:51:10PM -0300, Daniel Henrique Barboza wrote: > > > On 3/18/22 00:43, David Gibson wrote: > > On Thu, Mar 17, 2022 at 04:29:14PM +, Dr. David Alan Gilbert wrote: > > > * Peter Maydell (peter.mayd...@linaro.org) wrote: > > > > On Thu, 17 Mar 2022 at 14:03, Daniel Hen

Re: [PULL 00/21] target-arm queue

2022-03-19 Thread Peter Maydell
On Fri, 18 Mar 2022 at 13:23, Peter Maydell wrote: > > Mostly straightforward bugfixes. The new Xilinx devices are > arguably 'new feature', but they're fixing a regression where > our changes to PSCI in commit 3f37979bf mean that EL3 guest > code now needs to talk to a proper emulated power-contr

Re: [PATCH v8 32/46] mem/cxl_type3: Add read and write functions for associated hostmem.

2022-03-19 Thread Mark Cave-Ayland
On 18/03/2022 15:06, Jonathan Cameron wrote: From: Jonathan Cameron Once a read or write reaches a CXL type 3 device, the HDM decoders on the device are used to establish the Device Physical Address which should be accessed. These functions peform the required maths and then use a device spec

Re: [PATCH v8 23/46] hw/cxl/component: Implement host bridge MMIO (8.2.5, table 142)

2022-03-19 Thread Mark Cave-Ayland
On 18/03/2022 15:06, Jonathan Cameron wrote: From: Ben Widawsky CXL host bridges themselves may have MMIO. Since host bridges don't have a BAR they are treated as special for MMIO. This patch includes i386/pc support. Also hook up the device reset now that we have have the MMIO space in which

Re: [PATCH v8 17/46] hw/cxl/device: Add a memory device (8.2.8.5)

2022-03-19 Thread Mark Cave-Ayland
On 18/03/2022 15:06, Jonathan Cameron via wrote: From: Ben Widawsky A CXL memory device (AKA Type 3) is a CXL component that contains some combination of volatile and persistent memory. It also implements the previously defined mailbox interface as well as the memory device firmware interface.

[PATCH v3 06/10] vdpa-dev: implement the unrealize interface

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Implements the .unrealize interface. Signed-off-by: Longpeng --- hw/virtio/vdpa-dev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/hw/virtio/vdpa-dev.c b/hw/virtio/vdpa-dev.c index 4defe6c33d..1713818bc3 100644 --- a/hw/virtio/vdpa-dev.c

[PATCH v3 05/10] vdpa-dev: implement the realize interface

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Implements the .realize interface. Signed-off-by: Longpeng --- hw/virtio/vdpa-dev-pci.c | 18 - hw/virtio/vdpa-dev.c | 132 +++ include/hw/virtio/vdpa-dev.h | 10 +++ 3 files changed, 159 insertions(+), 1 deletion(-) diff --git

[PATCH v3 00/10] add generic vDPA device support

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Hi guys, With the generic vDPA device, QEMU won't need to touch the device types any more, such like vfio. We can use the generic vDPA device as follow: -device vhost-vdpa-device-pci,vdpa-dev=/dev/vhost-vdpa-X I've done some simple tests on Huawei's offloading card (net, 0.95)

[PATCH v3 09/10] vdpa-dev: implement the set_status interface

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Implements the .set_status interface. Signed-off-by: Longpeng --- hw/virtio/vdpa-dev.c | 100 ++- 1 file changed, 99 insertions(+), 1 deletion(-) diff --git a/hw/virtio/vdpa-dev.c b/hw/virtio/vdpa-dev.c index 9536982061..c6847df7aa 100644

[PATCH v3 08/10] vdpa-dev: implement the get_features interface

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Implements the .get_features interface. Signed-off-by: Longpeng --- hw/virtio/vdpa-dev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/virtio/vdpa-dev.c b/hw/virtio/vdpa-dev.c index f28d3ed5f9..9536982061 100644 --- a/hw/virtio/vdpa-dev.c +++ b/h

[PATCH v3 10/10] vdpa-dev: mark the device as unmigratable

2022-03-19 Thread Longpeng(Mike)
From: Longpeng The generic vDPA device doesn't support migration currently, so mark it as unmigratable temporarily. Signed-off-by: Longpeng --- hw/virtio/vdpa-dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/virtio/vdpa-dev.c b/hw/virtio/vdpa-dev.c index c6847df7aa..5224617574 1006

[PATCH v3 02/10] update linux headers

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Update linux headers to 5.xxx (kernel part is not merged yet) To support generic vdpa deivce, we need add the following ioctls: - VHOST_VDPA_GET_CONFIG_SIZE: get the configuration size. - VHOST_VDPA_GET_VQS_COUNT: get the count of supported virtqueues. Signed-off-by: Longpeng --

[PATCH v3 03/10] vdpa: add the infrastructure of vdpa-dev

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Add the infrastructure of vdpa-dev (the generic vDPA device), we can add a generic vDPA device as follow: -device vhost-vdpa-device-pci,vdpa-dev=/dev/vhost-vdpa-X Signed-off-by: Longpeng --- hw/virtio/Kconfig| 5 +++ hw/virtio/meson.build| 2 ++ hw/virtio

[PATCH v3 01/10] virtio: get class_id and pci device id by the virtio id

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Add helpers to get the "Transitional PCI Device ID" and "class_id" of the device specified by the "Virtio Device ID". These helpers will be used to build the generic vDPA device later. Signed-off-by: Longpeng --- hw/virtio/virtio-pci.c | 77 +

[PATCH v3 07/10] vdpa-dev: implement the get_config/set_config interface

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Implements the .get_config and .set_config interface. Signed-off-by: Longpeng --- hw/virtio/vdpa-dev.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/hw/virtio/vdpa-dev.c b/hw/virtio/vdpa-dev.c index 1713818bc3..f28d3ed5f9 100644 --- a/hw/vir

[PATCH v3 04/10] vdpa-dev: implement the instance_init/class_init interface

2022-03-19 Thread Longpeng(Mike)
From: Longpeng Implements the .instance_init and the .class_init interface. Signed-off-by: Longpeng --- hw/virtio/vdpa-dev-pci.c | 22 +++- hw/virtio/vdpa-dev.c | 69 ++-- include/hw/virtio/vdpa-dev.h | 3 ++ 3 files changed, 91 insertions(+