Re: [RFC 1/2] virtio: expose used buffers

2022-08-25 Thread Guo Zhi
- Original Message - > From: "jasowang" > To: "Guo Zhi" > Cc: "eperezma" , "sgarzare" , > "Michael Tsirkin" , > "qemu-devel@nongnu.org Developers" > Sent: Thursday, August 25, 2022 2:06:11 PM > Subje

Re: [RFC 1/2] virtio: expose used buffers

2022-08-25 Thread Guo Zhi
- Original Message - > From: "eperezma" > To: "Guo Zhi" > Cc: "jasowang" , "sgarzare" , > "Michael Tsirkin" , > "qemu-devel@nongnu.org Developers" > Sent: Monday, August 22, 2022 10:08:32 PM > Subject:

[RFC 2/2] virtio: enable f_in_order feature for virtio-net

2022-08-18 Thread Guo Zhi
In order feature is not a transparent feature in QEMU, only specific devices(eg, virtio-net) support it. Signed-off-by: Guo Zhi --- hw/net/virtio-net.c| 1 + include/hw/virtio/virtio.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/net/virtio-net.c b/hw/net

[RFC 1/2] virtio: expose used buffers

2022-08-18 Thread Guo Zhi
strategy. Signed-off-by: Guo Zhi --- hw/net/virtio-net.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index dd0d056f..c8e83921 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -2542,8

[RFC 0/2] Virtio in order feature support for virtio-net device.

2022-08-18 Thread Guo Zhi
for the future. Related patches: In order feature in Linux(support virtio driver, vhost_test and vsock device): https://lkml.org/lkml/2022/8/17/643 Guo Zhi (2): virtio: expose used buffers virtio: enable f_in_order feature for virtio-net hw/net/virtio-net.c| 30

GSoC project: VIRTIO_F_IN_ORDER support for virtio devices

2022-05-27 Thread Guo Zhi
Hi everyone, I'm Zhi Guo, a student from GSoC 2022. My project is VIRTIO_F_IN_ORDER support for virtio devices. VIRTIO_F_IN_ORDER is a new feature presented in VIRTIO 1.1. As mentioned on the project description

[PATCH v2] vga: avoid crash if no default vga card

2022-05-03 Thread Guo Zhi
QEMU in some arch will crash when executing -vga help command, because there is no default vga model. Add check to this case and avoid crash. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/978 Signed-off-by: Guo Zhi --- softmmu/vl.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v1] vga: avoid crash if no default vga card

2022-05-03 Thread Guo Zhi
QEMU in some arch will crash when executing -vga help command, because there is no default vga model. Add check to this case and avoid crash. Signed-off-by: Guo Zhi --- softmmu/vl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/softmmu/vl.c b/softmmu/vl.c index

Re: [PATCH v2] hw/ppc: change indentation to spaces from TABs

2022-04-13 Thread Guo Zhi
Thanks for your help, I'll pay attention to the commit specification next time. Guo - Original Message - From: "Daniel Henrique Barboza" To: "Guo Zhi" , "Cédric Le Goater" , "David Gibson" , "Greg Kurz" Cc: "qemu-ppc" , &q

[PATCH v2] hw/ppc: change indentation to spaces from TABs

2022-04-11 Thread Guo Zhi
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/374 There are still some files in the QEMU PPC code base that use TABs for indentation instead of using spaces. The TABs should be replaced so that we have a consistent coding style. Signed-off-by: Guo Zhi --- hw/ppc/ppc440_bamboo.c

Re: [PATCH v1] hw/ppc: change indentation to spaces from TABs

2022-04-11 Thread Guo Zhi
Sure, I will send a v2 patch. Thanks, Guo - Original Message - From: "Daniel Henrique Barboza" To: "Thomas Huth" , "Bin Meng" Cc: "Guo Zhi" , "Cédric Le Goater" , "David Gibson" , "Greg Kurz" , "qemu-ppc&qu

[PATCH v1] configure: judge build dir permission

2022-04-05 Thread Guo Zhi
If this patch is applied, issue: https://gitlab.com/qemu-project/qemu/-/issues/321 can be closed. Signed-off-by: Guo Zhi --- configure | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 7c08c18358..9cfa78efd2 100755 --- a/configure +++ b

[PATCH v1] hw/ppc: change indentation to spaces from TABs

2022-04-05 Thread Guo Zhi
-by: Guo Zhi --- hw/core/uboot_image.h | 185 - hw/ppc/ppc440_bamboo.c | 6 +- hw/ppc/spapr_rtas.c| 18 ++-- include/hw/ppc/ppc.h | 10 +-- 4 files changed, 109 insertions(+), 110 deletions(-) diff --git a/hw/core/uboot_image.h b/hw/core/uboot_image.h