Re: [PATCH 7/7] security: apparmor: Use translated disk definitions for disk type=volume

2023-10-13 Thread Ján Tomko
On a Thursday in 2023, Peter Krempa wrote: The 'virt-aa-helper' process gets a XML of the VM it needs to create a profile for. For a disk type='volume' this XML contained only the pool and volume name. The 'virt-aa-helper' needs a local path though for anything it needs to label. This means

Re: [PATCH 6/7] conf: Save translated disk definition for disk type='volume' to status XML

2023-10-13 Thread Ján Tomko
On a Thursday in 2023, Peter Krempa wrote: Re-translating the disk source pools when reconnecting to a VM makes no sense as the volume might have changed or pool became inactive. The VM still uses the original volume though. Failing to re-translate the pool also causes the VM to be killed. Fix

Re: [PATCH 5/7] qemustatusxml2xmltest: Demonstrate use of VIR_DOMAIN_DEF_(PARSE|FORMAT)_VOLUME_TRANSLATED

2023-10-13 Thread Ján Tomko
On a Thursday in 2023, Peter Krempa wrote: Enable the flags in the status xml2xmtest and add an exaple to the test data. Signed-off-by: Peter Krempa --- tests/qemustatusxml2xmldata/modern-in.xml | 4 ++-- tests/qemustatusxml2xmltest.c | 6 -- 2 files changed, 6 insertions(+), 4

Re: [PATCH 4/7] qemu: domain: Allow preserving translated disk type='volume' data into XML if needed

2023-10-13 Thread Ján Tomko
On a Thursday in 2023, Peter Krempa wrote: Re-translating a disk type='volume' definition from a storage pool is not a good idea in cases when the volume might have changed or we might not have access to the storage driver. Specific cases are if a storage pool is not activated on daemon

Re: [PATCH 3/7] virDomainDiskTranslateSourcePool: Don't re-translate already translated defs

2023-10-13 Thread Ján Tomko
On a Thursday in 2023, Peter Krempa wrote: If a disk definition was already translated re-doing it makes no sense. Skip the translation if the 'actualtype' is already populated. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 2/7] virDomainDiskSourcePoolDefParse: Refactor cleanup

2023-10-13 Thread Ján Tomko
On a Thursday in 2023, Peter Krempa wrote: Register autoptr cleanup function for virStorageSourcePoolDef and refactor the parser to simplify the logic. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 35 +++--- src/conf/storage_source_conf.h | 1 + 2

Re: [PATCH 1/7] virStorageSourcePoolDef: Turn 'mode' member into proper enum type

2023-10-13 Thread Ján Tomko
On a Thursday in 2023, Peter Krempa wrote: Use proper enum type and refactor the formatter accordingly. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 12 src/conf/storage_source_conf.h | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) Reviewed-by: Ján

Re: [PATCH v4 04/10] migration: migrate 'blk' command option is deprecated.

2023-10-13 Thread Markus Armbruster
Juan Quintela writes: > Set the 'block' migration capability to 'true' instead. > > Signed-off-by: Juan Quintela > Acked-by: Stefan Hajnoczi > Reviewed-by: Thomas Huth > > --- > > Improve documentation and style (markus) > --- > docs/about/deprecated.rst | 7 +++ > qapi/migration.json

Re: [PATCH v4 03/10] migration: migrate 'inc' command option is deprecated.

2023-10-13 Thread Markus Armbruster
Juan Quintela writes: > Set the 'block_incremental' migration parameter to 'true' instead. > > Reviewed-by: Thomas Huth > Acked-by: Stefan Hajnoczi > Signed-off-by: Juan Quintela > > --- > > Improve documentation and style (thanks Markus) > --- > docs/about/deprecated.rst | 7 +++ >

Re: [PATCH v4 01/10] migration: Improve json and formatting

2023-10-13 Thread Markus Armbruster
Juan Quintela writes: > Signed-off-by: Juan Quintela > --- > qapi/migration.json | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/qapi/migration.json b/qapi/migration.json > index d7dfaa5db9..6865fea3c5 100644 > --- a/qapi/migration.json > +++

ANNOUNCE: Forthcoming changes to libvirt mailing list hosting

2023-10-13 Thread Daniel P . Berrangé
Hello Libvirt Community, For the last 18(!) years, libvirt community mailing lists have been kindly hosted by Red Hat Corporate IT on the redhat.com Mailman installation. In retrospect this wasn't the ideal home for community mailing lists but that decision is ancient history. Unfortunately as a

[PATCH v3 5/6] docs/about/deprecated: Document RISC-V "pmu-num" deprecation

2023-10-13 Thread Rob Bradford
This has been replaced by a "pmu-mask" property that provides much more flexibility. Signed-off-by: Rob Bradford Acked-by: LIU Zhiwei --- docs/about/deprecated.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index

Re: [PATCH v2 6/6] docs/about/deprecated: Document RISC-V "pmu-num" deprecation

2023-10-13 Thread LIU Zhiwei
On 2023/10/11 22:45, Rob Bradford wrote: This has been replaced by a "pmu-mask" property that provides much more flexibility. Signed-off-by: Rob Bradford --- docs/about/deprecated.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/about/deprecated.rst

[PATCH v2 6/6] docs/about/deprecated: Document RISC-V "pmu-num" deprecation

2023-10-13 Thread Rob Bradford
This has been replaced by a "pmu-mask" property that provides much more flexibility. Signed-off-by: Rob Bradford --- docs/about/deprecated.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 8b136320e2..37f3414ef8

[PATCH v4 03/10] migration: migrate 'inc' command option is deprecated.

2023-10-13 Thread Juan Quintela
Set the 'block_incremental' migration parameter to 'true' instead. Reviewed-by: Thomas Huth Acked-by: Stefan Hajnoczi Signed-off-by: Juan Quintela --- Improve documentation and style (thanks Markus) --- docs/about/deprecated.rst | 7 +++ qapi/migration.json | 8 +++-

[PATCH v4 06/10] migration: Deprecate old compression method

2023-10-13 Thread Juan Quintela
Signed-off-by: Juan Quintela Acked-by: Stefan Hajnoczi Acked-by: Peter Xu --- docs/about/deprecated.rst | 8 qapi/migration.json | 79 +-- migration/options.c | 13 +++ 3 files changed, 72 insertions(+), 28 deletions(-) diff --git

[PATCH v4 05/10] migration: Deprecate block migration

2023-10-13 Thread Juan Quintela
It is obsolete. It is better to use driver-mirror with NBD instead. CC: Kevin Wolf CC: Eric Blake CC: Stefan Hajnoczi CC: Hanna Czenczek Signed-off-by: Juan Quintela Acked-by: Stefan Hajnoczi --- docs/about/deprecated.rst | 10 ++ qapi/migration.json | 29

[PATCH v4 07/10] [RFC] migration: Make -i/-b an error for hmp and qmp

2023-10-13 Thread Juan Quintela
[DON'T MERGE] Block migration is obsolete, users should use blockdev-mirror instead. Make it one error to set them. Signed-off-by: Juan Quintela --- migration/migration-hmp-cmds.c | 15 ++- migration/migration.c | 35 +++--- 2 files changed, 21

[PATCH v4 08/10] [RFC] migration: Remove helpers needed for -i/-b migrate options

2023-10-13 Thread Juan Quintela
[DON'T MERGE] We were abusing capabilities and parameters to implement -i/-b. Previous patch convert that options into one error. Remove all the helpers needed to implement them. Signed-off-by: Juan Quintela --- migration/migration.h | 4 migration/options.h | 6 --

[PATCH v4 10/10] [RFC] migration: Remove block migration support

2023-10-13 Thread Juan Quintela
[DON'T MERGE] Signed-off-by: Juan Quintela --- meson.build|2 - qapi/migration.json| 31 +- include/migration/misc.h |8 - migration/block.h | 52 -- migration/options.h|1 - migration/block.c | 1030

[PATCH v4 09/10] [RFC] migration: Remove support for block_incremental

2023-10-13 Thread Juan Quintela
[DON'T MERGE] Signed-off-by: Juan Quintela --- docs/about/deprecated.rst | 7 - qapi/migration.json| 55 +++--- migration/options.h| 1 - migration/block.c | 2 +- migration/migration-hmp-cmds.c | 18 +--

[PATCH v4 04/10] migration: migrate 'blk' command option is deprecated.

2023-10-13 Thread Juan Quintela
Set the 'block' migration capability to 'true' instead. Signed-off-by: Juan Quintela Acked-by: Stefan Hajnoczi Reviewed-by: Thomas Huth --- Improve documentation and style (markus) --- docs/about/deprecated.rst | 7 +++ qapi/migration.json | 6 -- migration/migration.c | 5

[PATCH v4 02/10] migration: Print block status when needed

2023-10-13 Thread Juan Quintela
The new line was only printed when command options were used. When we used migration parameters and capabilities, it wasn't. Signed-off-by: Juan Quintela --- migration/migration-hmp-cmds.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/migration/migration-hmp-cmds.c

[PATCH v4 01/10] migration: Improve json and formatting

2023-10-13 Thread Juan Quintela
Signed-off-by: Juan Quintela --- qapi/migration.json | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qapi/migration.json b/qapi/migration.json index d7dfaa5db9..6865fea3c5 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -73,7 +73,7 @@ { 'struct':

[PATCH v4 00/10] Migration deprecated parts

2023-10-13 Thread Juan Quintela
On this v4: - addressed all markus comments. - rebased on latest. - improve formatting of migration.json - print block migration status when needed. - patches 7-10 are not mean to merge, they just show why we want to deprecate block migration and remove its support. - Patch 7 just drop support