[PATCH] sm4:Adjust the naming of SM4 encryption method

2024-07-30 Thread luzhipeng
With reference to the naming conventions of other encryption algorithms, the name of SM4 is modified.So libvirt and qemu are compatible. Signed-off-by: luzhipeng --- crypto/block-luks.c | 2 +- crypto/cipher-gcrypt.c.inc | 4 ++-- crypto/cipher-nettle.c.inc | 4

[PATCH v2] contrib/gitdm: add domain-map for Cestc

2023-06-28 Thread luzhipeng
Signed-off-by: luzhipeng --- contrib/gitdm/domain-map | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/gitdm/domain-map b/contrib/gitdm/domain-map index 3e31a06245..c51fd3b591 100644 --- a/contrib/gitdm/domain-map +++ b/contrib/gitdm/domain-map @@ -12,6 +12,7 @@ amd.com AMD

[PATCH] contrib/gitdm: add domain-map for Cestc

2023-06-25 Thread luzhipeng
From: Zhipeng Lu Signed-off-by: Zhipeng Lu --- contrib/gitdm/domain-map | 1 + meson| 2 +- qapi/block-core.json | 3 ++- roms/SLOF| 2 +- roms/opensbi | 2 +- roms/qboot | 2 +- roms/seabios | 2 +-

[PATCH] contrib/gitdm: add domain-map for Cestc

2023-06-25 Thread luzhipeng
From: Zhipeng Lu Signed-off-by: Zhipeng Lu --- contrib/gitdm/domain-map | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/gitdm/domain-map b/contrib/gitdm/domain-map index 3727918641..2f9dd66ef8 100644 --- a/contrib/gitdm/domain-map +++ b/contrib/gitdm/domain-map @@ -43,3 +43,4 @@

[PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-01 Thread luzhipeng
From: zhipeng Lu The drive interface supports media=cdrom so that the usb cdrom can be emulated as cdrom in qemu, but libvirt deprived the drive interface, so media=cdrom is added to the blockdev interface to support usb cdrom emulated as cdrom Signed-off-by: zhipeng Lu --- block.c

[PATCH RESEND] cirrus_vga: fix potential memory overflow

2022-10-06 Thread luzhipeng
From: lu zhipeng Signed-off-by: lu zhipeng --- hw/display/cirrus_vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index 3bb6a58698..2577005d03 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -834,7

[PATCH RESEND] elf2dmp: free memory in failure

2022-10-06 Thread luzhipeng
From: lu zhipeng The 'kdgb' is allocating memory in get_kdbg(), but it is not freed in error path. So fix that. Signed-off-by: lu zhipeng --- contrib/elf2dmp/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/elf2dmp/main.c b/contrib/elf2dmp/main.c index b9fc6d230c..d77b8f98f7

[PATCH] elf2dmp: free memory in failure

2022-09-29 Thread luzhipeng
From: lu zhipeng Signed-off-by: lu zhipeng --- contrib/elf2dmp/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/elf2dmp/main.c b/contrib/elf2dmp/main.c index b9fc6d230c..d77b8f98f7 100644 --- a/contrib/elf2dmp/main.c +++ b/contrib/elf2dmp/main.c @@ -125,6 +125,7 @@ static

[PATCH] cirrus_vga: fix potential memory overflow

2022-09-29 Thread luzhipeng
From: lu zhipeng Signed-off-by: lu zhipeng --- hw/display/cirrus_vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index 3bb6a58698..2577005d03 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -834,7

[PATCH] virtio: del net client if net_init_tap_one failed

2022-09-27 Thread luzhipeng
From: lu zhipeng If the net tap initializes successful, but failed during network card hot-plugging, the net-tap will remains, so cleanup. Signed-off-by: lu zhipeng --- net/tap.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/net/tap.c b/net/tap.c

Re: [PATCH] qemu-nbd: set timeout to qemu-nbd socket

2022-09-27 Thread luzhipeng
在 2022/9/26 20:44, Vladimir Sementsov-Ogievskiy 写道: On 9/26/22 14:34, Denis V. Lunev wrote: On 9/26/22 12:05, Vladimir Sementsov-Ogievskiy wrote: [+ Den] On 9/25/22 16:53, luzhipeng wrote: From: lu zhipeng Prevent the NBD socket stuck all the time, So set timeout. Signed-off-by: lu

Re: [PATCH] qemu-nbd: set timeout to qemu-nbd socket

2022-09-26 Thread luzhipeng
在 2022/9/26 20:44, Vladimir Sementsov-Ogievskiy 写道: On 9/26/22 14:34, Denis V. Lunev wrote: On 9/26/22 12:05, Vladimir Sementsov-Ogievskiy wrote: [+ Den] On 9/25/22 16:53, luzhipeng wrote: From: lu zhipeng Prevent the NBD socket stuck all the time, So set timeout. Signed-off-by: lu

[PATCH] qemu-nbd: set timeout to qemu-nbd socket

2022-09-25 Thread luzhipeng
From: lu zhipeng Prevent the NBD socket stuck all the time, So set timeout. Signed-off-by: lu zhipeng --- nbd/client.c | 8 1 file changed, 8 insertions(+) diff --git a/nbd/client.c b/nbd/client.c index 30d5383cb1..89dde53a0f 100644 --- a/nbd/client.c +++ b/nbd/client.c @@ -24,6

[PATCH] virtio: del net client if net_init_tap_one failed

2022-09-23 Thread luzhipeng
From: lu zhipeng If the net tap initializes successful, but failed during network card hot-plugging, the net-tap will remains, so cleanup. Signed-off-by: lu zhipeng --- net/tap.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/net/tap.c b/net/tap.c

Re: [PATCH] block: unmap (discard) blocks only if discard_zeros flag is true

2022-09-23 Thread luzhipeng
在 2022/9/23 22:28, Kevin Wolf 写道: Am 23.09.2022 um 12:02 hat luzhipeng geschrieben: From: lu zhipeng we can unmap(discard) blocks for block devices of supporting discard zeros or regular file. Signed-off-by: lu zhipeng This more or less restores the state before commit 34fa110e

[PATCH] block: unmap (discard) blocks only if discard_zeros flag is true

2022-09-23 Thread luzhipeng
From: lu zhipeng we can unmap(discard) blocks for block devices of supporting discard zeros or regular file. Signed-off-by: lu zhipeng --- block/file-posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/file-posix.c b/block/file-posix.c index

[PATCH] qcow2: fix memory leak in qcow2_read_extensions

2022-09-21 Thread luzhipeng
From: lu zhipeng Free feature_table if it is failed in bdrv_pread. Signed-off-by: lu zhipeng --- block/qcow2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/qcow2.c b/block/qcow2.c index c6c6692fb7..c8fc3a6160 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -275,6 +275,7 @@

[PATCH] qga: fix possible memory leak

2022-09-21 Thread luzhipeng
From: lu zhipeng Signed-off-by: lu zhipeng --- qga/main.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/qga/main.c b/qga/main.c index 5f1efa2333..73ea1aae65 100644 --- a/qga/main.c +++ b/qga/main.c @@ -1287,7 +1287,7 @@ static GAState

[PATCH v5] qga: add guest-get-diskstats command for Linux guests

2022-05-19 Thread luzhipeng
Add a new 'guest-get-diskstats' command for report disk io statistics for Linux guests. This can be useful for getting io flow or handling IO fault, no need to enter guests. Signed-off-by: luzhipeng Reviewed-by: Marc-André Lureau --- Changes v4->v5: fix Typo and adjust fileds order in q

[PATCH v4] qga: add guest-get-diskstats command for Linux guests

2022-05-19 Thread luzhipeng
Add a new 'guest-get-diskstats' command for report disk io statistics for Linux guests. This can be useful for getting io flow or handling IO fault, no need to enter guests. Signed-off-by: luzhipeng --- Changes v3->v4: https://patchew.org/QEMU/20220515095437.1291-1-luzhip...@cestc.cn/ Chan

[PATCH v3] qga: add guest-get-diskstats command for Linux guests

2022-05-15 Thread luzhipeng
Add a new 'guest-get-diskstats' command for report disk io statistics for Linux guests. This can be usefull for getting io flow or handling IO fault, no need to enter guests. Signed-off-by: luzhipeng --- Changes v2->v3: bugfix for memory leak Changes v1->v2: v1:https://patchew.or

[PATCH v2] qga: add guest-get-diskstats command for Linux guests

2022-05-13 Thread luzhipeng
Add a new 'guest-get-diskstats' command for report disk io statistics for Linux guests. This can be usefull for getting io flow or handling IO fault, no need to enter guests. Signed-off-by: luzhipeng --- Changes v1->v2: v1:https://patchew.org/QEMU/20220512011930.214-1-luzhip...@cestc.cn/

[PATCH RESEND] qga: add guest-get-diskstats command for Linux guests

2022-05-11 Thread luzhipeng
Add a new 'guest-get-diskstats' command for report disk io statistics for Linux guests. This can be usefull for getting io flow or handling IO fault, no need to enter guests. Signed-off-by: luzhipeng --- qga/commands-posix.c | 94 qga/commands-win32

[PATCH] qga: add guest-get-diskstats command

2022-05-05 Thread luzhipeng
Add a new 'guest-get-diskstats' command for report disk io statistics of the guest. This can be usefull for handling IO fault, no need to enter guest os. Signed-off-by: luzhipeng --- qga/commands-posix.c | 94 qga/commands-win32.c | 6 +++ qga/qapi

[Qemu-devel] [PATCH RESEND] hw/virt/arm: Add support for Cortex-A72 in virt

2018-11-27 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index a2b8d8f..f69e7eb 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -174,6 +174,7 @@ static const char *valid_cpus[] = {

[Qemu-devel] [PATCH] hw/virt/arm: Add support fot Cortex-A72

2018-11-20 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index a2b8d8f..f69e7eb 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -174,6 +174,7 @@ static const char *valid_cpus[] = {