Re: [libvirt PATCH 1/3] conf: remove attribute

2023-01-13 Thread Jiri Denemark
On Thu, Jan 12, 2023 at 23:42:16 -0500, Laine Stump wrote: > This attribute was added to support setting the --interface option for > passt, but in a post-push/pre-9.0-release review, danpb pointed out > that it would be better to use the existing > attribute to set --interface rather than

Re: [PATCH] NEWS: Document virDomainFDAssociate and NULL dereference in virXMLPropStringRequired

2023-01-13 Thread Ján Tomko
On a Friday in 2023, Peter Krempa wrote: Signed-off-by: Peter Krempa --- NEWS.rst | 11 +++ 1 file changed, 11 insertions(+) Reviewed-by: Ján Tomko Jano signature.asc Description: PGP signature

libvirt-9.0.0 release candidate 2

2023-01-13 Thread Jiri Denemark
I have just tagged v9.0.0-rc2 (the last minute change to the XML format for passt is included) in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix

Re: [libvirt PATCH 0/3] Remove per danpb's request, and a couple small cleanups

2023-01-13 Thread Jiri Denemark
On Thu, Jan 12, 2023 at 23:42:15 -0500, Laine Stump wrote: > The first patch implements what danpb suggested yesterday - using > instead of to populate > the passt --interface option. The other two are small cleanups I > noticed while making the changes in patch 1. > > jdenemar: feel free to

[PATCH] NEWS: Document virDomainFDAssociate and NULL dereference in virXMLPropStringRequired

2023-01-13 Thread Peter Krempa
Signed-off-by: Peter Krempa --- NEWS.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 8482c49b3c..9baf10b8e9 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -38,6 +38,12 @@ v9.0.0 (unreleased) Connecting the VM to a swtpm daemon started outside of

Re: [PATCH v1 0/4] Introduce active disk internal snapshot support

2023-01-13 Thread Peter Krempa
On Thu, Jan 12, 2023 at 02:44:35 -0600, Or Ozeri wrote: > Internal disk snapshots are currently only supported on non-active VMs. > This patch series extends this support for active VMs running with qemu. Could you elaborate how this will be useful? Generally disk only snapshots are of very

[PATCH 1/9] audio: don't check qemu_add_vm_change_state_handler failure

2023-01-13 Thread Daniel P . Berrangé
This function cannot fail since g_malloc0 aborts on OOM. Signed-off-by: Daniel P. Berrangé --- audio/audio.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index d849a94a81..7b4b957945 100644 --- a/audio/audio.c +++ b/audio/audio.c @@

[PATCH 5/9] audio: remove empty AUD_remove_card method

2023-01-13 Thread Daniel P . Berrangé
Since the linked list of QEMUSoundCard structs was removed, AUD_remove_card does nothing useful. Signed-off-by: Daniel P. Berrangé --- audio/audio.c| 4 audio/audio.h| 1 - hw/audio/ac97.c | 1 - hw/audio/adlib.c | 1 - hw/audio/es1370.c| 1 - hw/audio/gus.c

[PATCH 4/9] audio: remove QEMUSoundCard linked list

2023-01-13 Thread Daniel P . Berrangé
No code ever iterates over the list Signed-off-by: Daniel P. Berrangé --- audio/audio.c | 5 - audio/audio.h | 1 - audio/audio_int.h | 1 - 3 files changed, 7 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index 94a16c2dda..217095306f 100644 --- a/audio/audio.c +++

[PATCH 7/9] ui/vnc: don't accept VNC_ENCODING_AUDIO without audiodev

2023-01-13 Thread Daniel P . Berrangé
If we have no audio state configured, then we don't want to advertize the VNC_ENCODING_AUDIO feature. If a client attempts to use it despite being disabled, we should also reject it. Signed-off-by: Daniel P. Berrangé --- docs/about/deprecated.rst | 6 --

[PATCH 6/9] docs: split the deprecation warning for soundcards vs VNC

2023-01-13 Thread Daniel P . Berrangé
Both soundcards and VNC will require the audiodev= property but lets split the deprecation message since these are distinct functional areas. Signed-off-by: Daniel P. Berrangé --- docs/about/deprecated.rst | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git

[PATCH 9/9] audio: remove support for QEMU_AUDIO_ env variables

2023-01-13 Thread Daniel P . Berrangé
All user created devices and the builtin pcspk can be given a audiodev property. A few devices using audiodevs though cannot be configured directly as they are built-in devices created programmatically by the machine type. To enable those to continue to be used we leave in the logic that picks

[PATCH 0/9] audio: remove deprecated QEMU_AUDIO env support

2023-01-13 Thread Daniel P . Berrangé
This removes much of the deprecated audio code, most notably the QEMU_AUDIO env variables. The VNC server will also stop accepting client requests for audio streaming unless an audiodev is set. I tried to make the use of 'audiodev' mandatory for devices but that turned out to not be practical.

[PATCH 3/9] audio: remove unused 'name' in QEMUSoundCard struct

2023-01-13 Thread Daniel P . Berrangé
Signed-off-by: Daniel P. Berrangé --- audio/audio.c | 2 -- audio/audio.h | 1 - 2 files changed, 3 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index f397072a1f..94a16c2dda 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1833,7 +1833,6 @@ void AUD_register_card (const char *name,

[PATCH 2/9] audio: remove special audio_calloc function

2023-01-13 Thread Daniel P . Berrangé
The audio_calloc function does various checks on the size and nmembers parameters to detect various error conditions. There are only 5 callers * alsa_poll_helper: the pollfd count is small and bounded, * audio_pcm_create_voice_pair_: allocating a single fixed size struct *

[PATCH 8/9] audio: audio state is now mandatory for capture

2023-01-13 Thread Daniel P . Berrangé
Both callers of AUD_add_capture will now ensure that the audio state is non-NULL. Signed-off-by: Daniel P. Berrangé --- audio/audio.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index 00128c2ad7..64b75cdf94 100644 --- a/audio/audio.c +++

Re: [PATCH V8 06/13] spec: Move common files and dependencies to libvirt-daemon-common

2023-01-13 Thread Andrea Bolognani
On Wed, Jan 11, 2023 at 03:05:53PM -0700, Jim Fehlig wrote: > @@ -432,17 +432,30 @@ Summary: Server side daemon and supporting files for > libvirt library > > # The client side, i.e. shared libs are in a subpackage > Requires: libvirt-libs = %{version}-%{release} > +Requires:

Re: [PATCH V8 10/13] spec: Remove libvirt-daemon dependency from primary drivers

2023-01-13 Thread Andrea Bolognani
On Wed, Jan 11, 2023 at 03:05:57PM -0700, Jim Fehlig wrote: > Change the dependency to a 'Wants' to avoid a pacakge *package > +++ b/libvirt.spec.in > @@ -775,7 +776,8 @@ QEMU > %if %{with_lxc} > %package daemon-driver-lxc > Summary: LXC driver plugin for the libvirtd daemon > -Requires:

Re: [PATCH V8 10/13] spec: Remove libvirt-daemon dependency from primary drivers

2023-01-13 Thread Andrea Bolognani
On Fri, Jan 13, 2023 at 07:05:36PM +0200, Andrea Bolognani wrote: > Overall things look good. Let me actually test this a bit :) Some quick testing (QEMU only) revealed no issues. So I just need you to clarify the lxc virtlogd bit above and weigh in on the other nits I mentioned, but otherwise I

Re: [PATCH V8 10/13] spec: Remove libvirt-daemon dependency from primary drivers

2023-01-13 Thread Jim Fehlig
On 1/13/23 10:05, Andrea Bolognani wrote: On Wed, Jan 11, 2023 at 03:05:57PM -0700, Jim Fehlig wrote: Change the dependency to a 'Wants' to avoid a pacakge *package +++ b/libvirt.spec.in @@ -775,7 +776,8 @@ QEMU %if %{with_lxc} %package daemon-driver-lxc Summary: LXC driver plugin for

Re: [PATCH V8 06/13] spec: Move common files and dependencies to libvirt-daemon-common

2023-01-13 Thread Jim Fehlig
On 1/13/23 09:52, Andrea Bolognani wrote: On Wed, Jan 11, 2023 at 03:05:53PM -0700, Jim Fehlig wrote: @@ -432,17 +432,30 @@ Summary: Server side daemon and supporting files for libvirt library # The client side, i.e. shared libs are in a subpackage Requires: libvirt-libs =

[PATCH V9 10/14] services: Weaken systemd dependency on virtlockd

2023-01-13 Thread Jim Fehlig
The systemd service files of the qemu and libxl driver currently have a 'Requires' dependency on virtlockd, which is too strong since virtlockd is not enabled by default in either driver. Change the dependency to a 'Wants' to avoid a package dependency between the driver subpackages and the new

[PATCH V9 11/14] spec: Remove libvirt-daemon dependency from primary drivers

2023-01-13 Thread Jim Fehlig
To avoid needlessly installing the monolithic daemon, replace the libvirt-daemon dependency with libvirt-daemon-common in the primary drivers. The qemu driver also needs a dependency on libvirt-daemon-log since the virtqemud systemd service file has a hard dependency on virtlogd.socket.

[PATCH V9 12/14] spec: Remove libvirt-daemon dependency from hypervisor subpackages

2023-01-13 Thread Jim Fehlig
Remove the libvirt-daemon dependency from the various libvirt-daemon- subpackages, replacing it with a set of the new sub subpackages providing similar functionality. When libvirt is build with modular daemons, the hypervisor subpackages no longer include the traditional, monolithic libvirt

[PATCH V9 08/14] spec: Add numad dependency to qemu and lxc drivers

2023-01-13 Thread Jim Fehlig
Both drivers use numad via virNumaGetAutoPlacementAdvice. Drop the numad dependency from libvirt-daemon-common to avoid enforcing it all users of the subpackage. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani --- libvirt.spec.in | 9 ++--- 1 file

[PATCH V9 13/14] kbase: Update rpm-deployment.rst with new subpackages

2023-01-13 Thread Jim Fehlig
Signed-off-by: Jim Fehlig Reviewed-by: Andrea Bolognani --- docs/kbase/rpm-deployment.rst | 36 --- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/docs/kbase/rpm-deployment.rst b/docs/kbase/rpm-deployment.rst index 7685ee1291..26fe1be8e6 100644

[PATCH V9 14/14] NEWS: Mention split of libvirt-daemon subpackage

2023-01-13 Thread Jim Fehlig
Signed-off-by: Jim Fehlig Reviewed-by: Andrea Bolognani --- NEWS.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 9baf10b8e9..c533c0824f 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -50,6 +50,12 @@ v9.0.0 (unreleased) With sufficiently new QEMU (v7.1.0)

[PATCH V9 09/14] spec: Remove libvirt-daemon dependency from secondary drivers

2023-01-13 Thread Jim Fehlig
To avoid needlessly installing the monolithic daemon, replace the libvirt-daemon dependency with libvirt-daemon-common in the secondary drivers. The common subpackage contains all the utilities and files needed by the secondary drivers. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé

[PATCH V9 06/14] spec: Move common files and dependencies to libvirt-daemon-common

2023-01-13 Thread Jim Fehlig
Introduce a new subpackage libvirt-daemon-common and move virt-admin, virt-host-validate, virt-ssh-helper, libvirt-guests and miscellaneous files/directories to it. Also move common dependencies to the new subpackage. These files, utilities, and dependecies are used by other core libvirt daemons

[PATCH V9 07/14] spec: Add module-init-tools dependency to nodedev and lxc drivers

2023-01-13 Thread Jim Fehlig
Only the nodedev and lxc drivers require module-init-tools. Remove the dependency from libvirt-daemon-common and add it to the nodedev and lxc drivers. This avoids enforcing the dependency on all users of libvirt-daemon-common. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé

[PATCH V9 03/14] spec: Move virtproxyd to a new subpackage libvirt-daemon-proxy

2023-01-13 Thread Jim Fehlig
Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani --- libvirt.spec.in | 68 - 1 file changed, 45 insertions(+), 23 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 19a3c8465c..6072ac2c1c

[PATCH V9 01/14] spec: Move virtlockd to a new subpackage libvirt-daemon-lock

2023-01-13 Thread Jim Fehlig
Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani --- libvirt.spec.in | 61 +++-- 1 file changed, 44 insertions(+), 17 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 77b274b6f9..bb0bfb5f35

[PATCH V9 02/14] spec: Move virtlogd to a new subpackage libvirt-daemon-log

2023-01-13 Thread Jim Fehlig
Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani --- libvirt.spec.in | 53 +++-- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index bb0bfb5f35..19a3c8465c

[PATCH V9 04/14] spec: Move lockd plugin to a new subpackage

2023-01-13 Thread Jim Fehlig
Introduce the libvirt-daemon-plugin-lockd subpackage to provide the client-side lockd plugin for virtlockd. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani --- libvirt.spec.in | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff

[PATCH V9 05/14] spec: Rename the libvirt-lock-sanlock subpackage

2023-01-13 Thread Jim Fehlig
The new name "libvirt-daemon-plugin-sanlock" provides consistency with the newly introduced "libvirt-daemon-plugin-lockd" subpackage. It's also a good opportunity to taking ownership of %{_libdir}/libvirt/lock-driver/, removing the need for a dependency on the libvirt-daemon package.

[PATCH V9 00/14] spec: Decompose the daemon subpackage

2023-01-13 Thread Jim Fehlig
This is V9 of https://listman.redhat.com/archives/libvir-list/2023-January/237006.html The end goal is to remove the libvirt-dameon dependency on the various libvirt-daemon-driver-foo subpackages, allowing installation of a modular daemon configuration without the traditional monolithic