[PATCH] crypto: add support for sm4 without key length suffix

2024-08-11 Thread luzhipeng
qemu add sm4 in release 9, but the name of sm4 doesn't have the key length suffix, So set size to 0, construct cipher name without key length as suffix. Signed-off-by: luzhipeng --- docs/formatstorageencryption.rst | 8 +--- src/qemu/qemu_block.c| 10 +++--- 2 files changed,

[PATCH] add support for xml about cipher info

2024-08-11 Thread luzhipeng
The destination disk's xml contains the ciper info and it check fail, when snaphot,blockcopy and blockpull vm's disk. So it removes the check about cipher info. Signed-off-by: luzhipeng --- src/conf/domain_validate.c | 12 1 file changed, 12 deletions(-) diff --git a/src/conf/domai

[PATCH 3/3] qemu: enable qcow2 data-file attach to VM on start

2024-08-11 Thread Nikolai Barybin via Devel
- parse data-file metadata and init src->dataFileStore struct - chown data-file to allow qemu to open it - add data-file path to VM's cgroup and namespace - add data-file option to QEMU process command line Signed-off-by: Nikolai Barybin --- src/qemu/qemu_block.c | 45 +++

[PATCH 2/3] storage: add qcow2 filename parsing from header

2024-08-11 Thread Nikolai Barybin via Devel
Signed-off-by: Nikolai Barybin --- src/storage_file/storage_file_probe.c | 66 +++ 1 file changed, 57 insertions(+), 9 deletions(-) diff --git a/src/storage_file/storage_file_probe.c b/src/storage_file/storage_file_probe.c index 243927d50a..c7ff743c87 100644 --- a/src/st

[PATCH 1/3] conf: add data-file feature and related fields to virStorageSource

2024-08-11 Thread Nikolai Barybin via Devel
Signed-off-by: Nikolai Barybin --- src/conf/storage_source_conf.c | 8 src/conf/storage_source_conf.h | 5 + 2 files changed, 13 insertions(+) diff --git a/src/conf/storage_source_conf.c b/src/conf/storage_source_conf.c index 908bc5fab2..d76de058b9 100644 --- a/src/conf/storage_sour

[PATCH 0/3] Implement support for QCOW2 data files

2024-08-11 Thread Nikolai Barybin via Devel
There are use cases when the existing disks (i.e. LVM) are wanted to be used with advanced features. For this purpose QEMU allows data-file feature for qcow2 files: metadata is kept in the qcow2 file like usual, but guest data is written to an external file. These patches enable support for this fe

Re: [PATCH v2 4/4] virtio-net: Add support for USO features

2024-08-11 Thread Michael S. Tsirkin
On Thu, Aug 08, 2024 at 11:25:29AM -0400, Peter Xu wrote: > On Thu, Aug 08, 2024 at 10:47:28AM -0400, Michael S. Tsirkin wrote: > > On Thu, Aug 08, 2024 at 10:15:36AM -0400, Peter Xu wrote: > > > On Thu, Aug 08, 2024 at 07:12:14AM -0400, Michael S. Tsirkin wrote: > > > > This is too big of a hammer