Re: [libvirt PATCH 00/28] native support for nftables in virtual network driver

2024-06-12 Thread Andrea Bolognani
On Wed, Jun 12, 2024 at 10:42:43AM GMT, Laine Stump wrote: > On 6/12/24 9:18 AM, Andrea Bolognani wrote: > > On Wed, Jun 12, 2024 at 08:42:48AM GMT, Laine Stump wrote: > > > On 6/12/24 6:47 AM, Daniel P. Berrangé wrote: > > > > On Wed, Jun 12, 2024 at 03:27:24AM

Re: [libvirt PATCH 00/28] native support for nftables in virtual network driver

2024-06-12 Thread Andrea Bolognani
On Wed, Jun 12, 2024 at 08:42:48AM GMT, Laine Stump wrote: > On 6/12/24 6:47 AM, Daniel P. Berrangé wrote: > > On Wed, Jun 12, 2024 at 03:27:24AM -0700, Andrea Bolognani wrote: > > > [...] I'd be extremely surprised to learn that > > > guest network connectivity h

Re: [libvirt PATCH 00/28] native support for nftables in virtual network driver

2024-06-12 Thread Andrea Bolognani
On Wed, Jun 12, 2024 at 09:57:15AM GMT, Daniel P. Berrangé wrote: > On Wed, Jun 12, 2024 at 01:54:47AM -0700, Andrea Bolognani wrote: > > Is there much of a difference between having an explicit noop backend > > that is checked for availability after all other ones, and simply

Re: [libvirt PATCH 00/28] native support for nftables in virtual network driver

2024-06-12 Thread Andrea Bolognani
On Tue, Jun 11, 2024 at 05:27:42PM GMT, Daniel P. Berrangé wrote: > On Tue, Jun 11, 2024 at 08:49:42AM -0700, Andrea Bolognani wrote: > > One additional issue with this: > > > > $ PATH=/usr/bin /usr/sbin/libvirtd > > error : virNetworkLoadDriverConfig:146 : interna

Re: [libvirt PATCH 00/28] native support for nftables in virtual network driver

2024-06-11 Thread Andrea Bolognani
On Tue, Jun 11, 2024 at 02:38:58AM GMT, Andrea Bolognani wrote: > On Mon, Jun 10, 2024 at 09:10:08PM GMT, Roman Bogorodskiy wrote: > > Laine Stump wrote: > > > > > This patch series enables libvirt to use nftables rules rather than > > > iptables *when sett

Re: [libvirt PATCH 00/28] native support for nftables in virtual network driver

2024-06-11 Thread Andrea Bolognani
estoring the previous status quo. A noop backend might be the answer, but honestly I just don't understand enough about networking to know for sure. I thought that these firewall rules were necessary in order to give network access to VMs, but if FreeBSD has been doing fine without iptables so far clearly that's not the case? [1] https://gitlab.com/libvirt/libvirt/-/issues/642 -- Andrea Bolognani / Red Hat / Virtualization

Re: [PATCH] security: AppArmor allow write when os loader readonly=no

2024-06-07 Thread Andrea Bolognani
d-off-by: Christian Ehrhardt It looks reasonable to me too, but I'd like to see someone other than the author take it for a spin. Christian, can you please give it a shot? Once we have your Tested-by, I'll happily throw in my Reviewed-by and push the patch. -- Andrea Bolognani / Red Hat / Virtualization

[PATCH v2 4/4] qemu: Reject TPM 1.2 in most scenarios

2024-06-04 Thread Andrea Bolognani
Everywhere we use TPM 2.0 as our default, the chances of TPM 1.2 being supported by the guest OS are very slim. Just reject such configurations outright. Signed-off-by: Andrea Bolognani --- src/qemu/qemu_validate.c | 22 --- ...aarch64-tpm-wrong

[PATCH v2 1/4] tests: Add TPM coverage to default-models tests

2024-06-04 Thread Andrea Bolognani
unlikely to happen for the latter. Signed-off-by: Andrea Bolognani --- ...aarch64-virt-default-models.aarch64-latest.abi-update.args | 3 +++ .../aarch64-virt-default-models.aarch64-latest.abi-update.xml | 3 +++ .../aarch64-virt-default-models.aarch64-latest.args | 3 +++ .../aarch64-virt

[PATCH v2 3/4] qemu: Default to TPM 2.0 in most scenarios

2024-06-04 Thread Andrea Bolognani
that it reflects reality and we don't have to remember to update it every time a new architecture is introduced. Signed-off-by: Andrea Bolognani --- src/qemu/qemu_domain.c | 13 - ...irt-default-models.riscv64-latest.abi-update.xml | 2 +- .../riscv64-virt

[PATCH v2 2/4] tests: Delete some redundant test cases

2024-06-04 Thread Andrea Bolognani
The default-models tests provide coverage for these scenarios now. Signed-off-by: Andrea Bolognani Reviewed-by: Peter Krempa --- .../aarch64-tpm.aarch64-latest.args | 34 - .../aarch64-tpm.aarch64-latest.xml| 29 tests/qemuxmlconfdata/aarch64-tpm.xml

[PATCH v2 0/4] qemu: Use TPM 2.0 in most scenarios

2024-06-04 Thread Andrea Bolognani
Changes from [v1] * use TPM 2.0 more; * reject TPM 1.2 more; * add better comments to loongarch64 and s390x test cases. [v1] https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/YZMV33UPKZRRQBN4XCCAW25IRV46LX57/ Andrea Bolognani (4): tests: Add TPM coverage

Re: [PATCH 3/3] qemu: Only allow TPM 2.0 for RISC-V guests

2024-06-03 Thread Andrea Bolognani
On Mon, Jun 03, 2024 at 10:50:40AM GMT, Daniel P. Berrangé wrote: > On Mon, May 27, 2024 at 07:31:36PM +0200, Andrea Bolognani wrote: > > +/* TPM 1.2 does not work on certain modern architectures */ > > +if (qemuDoma

[PATCH] rpm: Don't default to nftables on existing distros

2024-06-03 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 4381dbe30c..5ca7b95e6c 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -205,6 +205,18 @@ %define

Re: [PATCH 3/3] rpm: Configure firewall backends explicitly

2024-06-03 Thread Andrea Bolognani
On Mon, Jun 03, 2024 at 10:57:15AM GMT, Daniel P. Berrangé wrote: > On Tue, May 28, 2024 at 05:49:21PM +0200, Andrea Bolognani wrote: > > +++ b/libvirt.spec.in > > @@ -1387,6 +1387,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y' > > %{_specdir}/libvirt.spec) > >

Re: [PATCH 1/3] meson: Improve default firewall backend configuration

2024-05-28 Thread Andrea Bolognani
On Tue, May 28, 2024 at 12:50:51PM GMT, Laine Stump wrote: > On 5/28/24 12:31 PM, Pavel Hrdina wrote: > > On Tue, May 28, 2024 at 05:49:19PM +0200, Andrea Bolognani wrote: > > > + if (not firewall_backend_priority.contains('nftables') or > > > + not firewal

[PATCH 3/3] rpm: Configure firewall backends explicitly

2024-05-28 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index 6fb223c74a..4381dbe30c 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1387,6 +1387,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y

[PATCH 2/3] meson: Include firewall backend selection in summary

2024-05-28 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- meson.build | 5 + 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index ed0e9686f8..e98ab0d5ac 100644 --- a/meson.build +++ b/meson.build @@ -2382,6 +2382,11 @@ misc_summary = { 'sysctl config': conf.has('WITH_SYSCTL

[PATCH 1/3] meson: Improve default firewall backend configuration

2024-05-28 Thread Andrea Bolognani
=iptables,nftables Checks have been added to prevent invalid values from being accepted. Signed-off-by: Andrea Bolognani --- meson.build | 16 +--- meson_options.txt| 3 +-- src/network/bridge_driver_conf.c | 6 +- src/network/meson.build

[PATCH 0/3] meson: Improve default firewall backend configuration

2024-05-28 Thread Andrea Bolognani
Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1308917840 See 1/3 for details. Andrea Bolognani (3): meson: Improve default firewall backend configuration meson: Include firewall backend selection in summary rpm: Configure firewall backends explicitly libvirt.spec.in

Re: [PATCH 1/3] tests: Add TPM coverage to default-models tests

2024-05-28 Thread Andrea Bolognani
On Tue, May 28, 2024 at 08:59:46AM GMT, Peter Krempa wrote: > On Mon, May 27, 2024 at 19:31:34 +0200, Andrea Bolognani wrote: > > Note that TPM supports seems to be currently missing from s390x > > and loongarch64 QEMU builds. I'm not entirely sure whether > >

[PATCH 2/3] tests: Delete some redundant test cases

2024-05-27 Thread Andrea Bolognani
The default-models tests provide coverage for these scenarios now. Signed-off-by: Andrea Bolognani --- .../aarch64-tpm.aarch64-latest.args | 34 - .../aarch64-tpm.aarch64-latest.xml| 29 tests/qemuxmlconfdata/aarch64-tpm.xml | 15 .../tpm

[PATCH 3/3] qemu: Only allow TPM 2.0 for RISC-V guests

2024-05-27 Thread Andrea Bolognani
We've made similar changes for aarch64 a few years back (see d8a1c059e0ed and previous commits), and the rationale is the same: the architecture is new enough that TPM 2.0 predates it, so TPM 1.2 support was never considered and will just not work. Signed-off-by: Andrea Bolognani --- src/qemu

[PATCH 1/3] tests: Add TPM coverage to default-models tests

2024-05-27 Thread Andrea Bolognani
, but either way we have to skip them for now. Signed-off-by: Andrea Bolognani --- ...aarch64-virt-default-models.aarch64-latest.abi-update.args | 3 +++ .../aarch64-virt-default-models.aarch64-latest.abi-update.xml | 3 +++ .../aarch64-virt-default-models.aarch64-latest.args | 3

[PATCH 0/3] qemu: Use TPM 2.0 on RISC-V

2024-05-27 Thread Andrea Bolognani
Andrea Bolognani (3): tests: Add TPM coverage to default-models tests tests: Delete some redundant test cases qemu: Only allow TPM 2.0 for RISC-V guests src/qemu/qemu_domain.c| 1 + src/qemu/qemu_validate.c | 10 +-- ...aarch64-tpm-wrong

Re: [PATCH 4/4] rpm: Drop with_ssh_proxy define

2024-05-16 Thread Andrea Bolognani
On Thu, May 16, 2024 at 10:26:28AM GMT, Daniel P. Berrangé wrote: > On Thu, May 16, 2024 at 02:23:13AM -0700, Andrea Bolognani wrote: > > IIUC requirements are mostly on the guest OS side, and on the host OS > > side we just need the ssh ProxyCommand feature which would have bee

Re: [PATCH 4/4] rpm: Drop with_ssh_proxy define

2024-05-16 Thread Andrea Bolognani
On Thu, May 16, 2024 at 10:03:02AM GMT, Daniel P. Berrangé wrote: > On Thu, May 16, 2024 at 10:24:22AM +0200, Andrea Bolognani wrote: > > As a general rule, we use defines for features that can only be > > enabled on a subset of the platforms that we target, and we > > don

[PATCH 2/4] rpm: Only Recommend ssh-proxy

2024-05-16 Thread Andrea Bolognani
The way things are implemented, installing the package not only makes the feature available but also enables it. Some admins might not want that to happen, so let's make the dependency a weak one to offer them a way out. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 4 ++-- 1 file

[PATCH 4/4] rpm: Drop with_ssh_proxy define

2024-05-16 Thread Andrea Bolognani
having a define for it is unnecessary. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 0d6f15460d..b6f9bf86f3 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -91,7

[PATCH 3/4] rpm: Move dependency on ssh-proxy to QEMU driver

2024-05-16 Thread Andrea Bolognani
This way we can avoid repeating it twice. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 329b923e8f..0d6f15460d 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -810,6

[PATCH 1/4] rpm: Drop weak dependency on ssh-proxy from client

2024-05-16 Thread Andrea Bolognani
The ssh-proxy feature works independently of the clients, just like the NSS plugin does. Moreover, ssh-proxy only works for local VMs, while clients are routinely used to manage remote hypervisors. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 3 --- 1 file changed, 3 deletions

[PATCH 0/4] rpm: Some ssh-proxy improvements

2024-05-16 Thread Andrea Bolognani
CI pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1292193155 Andrea Bolognani (4): rpm: Drop weak dependency on ssh-proxy from client rpm: Only Recommend ssh-proxy rpm: Move dependency on ssh-proxy to QEMU driver rpm: Drop with_ssh_proxy define libvirt.spec.in | 23

Re: [PATCH v3 2/5] qemu: Introduce shared_filesystems configuration option

2024-05-09 Thread Andrea Bolognani
nux labels. Please do. Hopefully you'll get further than I was able to :) -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [PATCH v3 4/5] utils: Use overrides in virFileIsSharedFS()

2024-05-09 Thread Andrea Bolognani
On Thu, May 09, 2024 at 02:28:15PM GMT, Peter Krempa wrote: > On Thu, May 02, 2024 at 19:39:41 +0200, Andrea Bolognani wrote: > > +static bool > > +virFileIsSharedFSOverride(const char *path, > > + char *const *overrides) > > +{ > > +

Re: [PATCH v3 3/5] qemu: Propagate shared_filesystems

2024-05-09 Thread Andrea Bolognani
rcIsSafe(virDomainDef *def, > > - virQEMUCaps *qemuCaps, > > +qemuMigrationSrcIsSafe(virDomainObj *vm, > > size_t nmigrate_disks, > > const char **migrate_disks, > > unsigned int flags) > > S

Re: [PATCH v3 2/5] qemu: Introduce shared_filesystems configuration option

2024-05-09 Thread Andrea Bolognani
On Thu, May 09, 2024 at 01:58:21PM GMT, Peter Krempa wrote: > On Thu, May 02, 2024 at 19:39:39 +0200, Andrea Bolognani wrote: > > +# libvirt will normally prevent migration if the storage backing the VM is > > not > > +# on a shared filesystems. Sometimes, however, th

Re: [PATCH 2/2] tests: fix two off-by-1 errors in read-big-pipe test

2024-05-08 Thread Andrea Bolognani
ends the data, > as well as the trailing '\0' terminator. > > Both bugs combined mean it is sending '\0\0' as the last bytes, instead > of '\n' which was intended. When virFileReadAll reads data from the > pipe, it ends up adding another '\0' resulting in in a very NUL *resulting in a very Rev

Re: [PATCH 1/2] tests: fix hang in virshtest 'read-big-pipe' case

2024-05-08 Thread Andrea Bolognani
Thanks a lot for looking into this! Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [PATCH 30/35] virshtest: Adapt 'virsh-read-bufsiz' and 'virsh-read-non-seekable'

2024-05-07 Thread Andrea Bolognani
On Tue, May 07, 2024 at 08:14:18PM GMT, Daniel P. Berrangé wrote: > On Tue, May 07, 2024 at 04:56:00PM +0000, Andrea Bolognani wrote: > > On Fri, Mar 22, 2024 at 06:56:08PM GMT, Peter Krempa wrote: > > > +static void > > > +testPipeFeeder(void *opaque) > >

Re: [PATCH 30/35] virshtest: Adapt 'virsh-read-bufsiz' and 'virsh-read-non-seekable'

2024-05-07 Thread Andrea Bolognani
rchitectures? [1] https://buildd.debian.org/status/fetch.php?pkg=libvirt=ppc64el=10.3.0-2=1715074703=0 [2] https://koji.fedoraproject.org/koji/taskinfo?taskID=117156020 -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel

Re: [PATCH 08/13] ci: Drop Ubuntu 20.04

2024-05-07 Thread Andrea Bolognani
rning > * update all the distros new/old in one go > * update glib & re-enable the warning Is this dance really necessary? We obviously care about bisectability of the code itself, but IMO it's fine if the CI pipeline stops making sense for a bit in the middle of a series, as long

Re: [PATCH] NEWS: document qemu: ras as a new feature

2024-05-06 Thread Andrea Bolognani
On Fri, May 03, 2024 at 01:49:30PM GMT, Kristina Hanicova wrote: > Signed-off-by: Kristina Hanicova > --- > NEWS.rst | 5 + > 1 file changed, 5 insertions(+) Reviewed-by: Andrea Bolognani and pushed. Thanks! -- Andrea Bolognani / Red Hat / Vi

Re: [PATCH] vsh: Don't init history in cmdComplete()

2024-05-06 Thread Andrea Bolognani
t; > Resolves: https://bugs.gentoo.org/931109 > Signed-off-by: Michal Privoznik > --- > tools/vsh.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) This caused FTBFS on Debian too. I was going to investigate the matter today, and seeing the fix merged already was a

Re: [PATCH v2 4/5] utils: Use overrides in virFileIsSharedFS()

2024-05-02 Thread Andrea Bolognani
On Thu, May 02, 2024 at 12:16:32PM GMT, Andrea Bolognani wrote: > On Thu, Apr 18, 2024 at 01:17:34PM GMT, Stefan Berger wrote: > > On 4/17/24 09:29, Andrea Bolognani wrote: > > > +static bool > > > +virFileIsSharedFSOverride(const char *path, > > > +

[PATCH v3 3/5] qemu: Propagate shared_filesystems

2024-05-02 Thread Andrea Bolognani
of it. Note that with this change the list is propagated all the way through, but its contents are still ignored, so the behavior remains the same for now. Signed-off-by: Andrea Bolognani Reviewed-by: Stefan Berger --- src/lxc/lxc_controller.c | 3 +- src/lxc/lxc_driver.c | 2

[PATCH v3 5/5] qemu: Always set labels for TPM state

2024-05-02 Thread Andrea Bolognani
for disks and other types of persistent storage such as NVRAM files, which always get relabeled. Signed-off-by: Andrea Bolognani Reviewed-by: Stefan Berger --- src/qemu/qemu_tpm.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/qemu/qemu_tpm.c b/src/qemu

[PATCH v3 4/5] utils: Use overrides in virFileIsSharedFS()

2024-05-02 Thread Andrea Bolognani
If the local admin has explicitly declared that a certain filesystem is to be considered shared, we should treat it as such. Signed-off-by: Andrea Bolognani Reviewed-by: Stefan Berger --- src/util/virfile.c | 42 +- 1 file changed, 41 insertions(+), 1

[PATCH v3 2/5] qemu: Introduce shared_filesystems configuration option

2024-05-02 Thread Andrea Bolognani
As explained in the comment, this can help in scenarios where a shared filesystem can't be detected as such by libvirt, by giving the admin the opportunity to provide this information manually. Signed-off-by: Andrea Bolognani --- src/qemu/libvirtd_qemu.aug | 3 +++ src/qemu

[PATCH v3 1/5] security: Fix alignment

2024-05-02 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani Reviewed-by: Stefan Berger --- src/security/security_selinux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index aaec34ff8b..a4915dbc89 100644 --- a/src/security

[PATCH v3 0/5] qemu: Introduce shared_filesystems configuration option

2024-05-02 Thread Andrea Bolognani
] https://issues.redhat.com/browse/CNV-39370 Andrea Bolognani (5): security: Fix alignment qemu: Introduce shared_filesystems configuration option qemu: Propagate shared_filesystems utils: Use overrides in virFileIsSharedFS() qemu: Always set labels for TPM state src/lxc/lxc_controller.c

Re: [PATCH v2 4/5] utils: Use overrides in virFileIsSharedFS()

2024-05-02 Thread Andrea Bolognani
On Thu, Apr 18, 2024 at 01:17:34PM GMT, Stefan Berger wrote: > On 4/17/24 09:29, Andrea Bolognani wrote: > > +static bool > > +virFileIsSharedFSOverride(const char *path, > > + char *const *overrides) > > +{ > > +g_autofree char *dirpat

Re: [PATCH v2 2/5] qemu: Introduce shared_filesystems configuration option

2024-05-02 Thread Andrea Bolognani
On Wed, Apr 17, 2024 at 03:16:18PM GMT, Stefan Berger wrote: > On 4/17/24 09:29, Andrea Bolognani wrote: > > +#shared_filesystems = [ > > +# "/path/to/images", > > +# "/path/to/nvram", > > +# "/path/to/swtpm" > > +#] > > May b

Re: [PATCH 2/4] conf: parse and format machine virt ras feature

2024-04-29 Thread Andrea Bolognani
10.3.0` (QEMU/KVM and ARM virt guests only) Of course this will need updating since 10.3.0 has already entered freeze. -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an

Re: [PATCH 1/4] Introduce QEMU_CAPS_MACHINE_VIRT_RAS capability

2024-04-29 Thread Andrea Bolognani
_armv7l.xml | 1 + > 9 files changed, 10 insertions(+) Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [PATCH 3/4] qemu: validate machine virt ras feature

2024-04-29 Thread Andrea Bolognani
o start > > such guest. Even though the feature might already be off by default. > > I prefer this one. Don't see any point in toggling a feature that: > 1) was not even present in the QEMU they're using > 2) is currently off by default and possibly will be for some time. I agr

Re: [PATCH 09/10] qemu: Always set labels for TPM state

2024-04-19 Thread Andrea Bolognani
On Thu, Apr 18, 2024 at 06:29:53PM +0100, Daniel P. Berrangé wrote: > On Wed, Mar 20, 2024 at 09:10:48AM -0700, Andrea Bolognani wrote: > > On Wed, Mar 20, 2024 at 10:18:39AM -0400, Stefan Berger wrote: > > > On 3/20/24 08:23, Peter Krempa wrote: > > > >

Re: [PATCH 09/10] qemu: Always set labels for TPM state

2024-04-17 Thread Andrea Bolognani
On Wed, Mar 20, 2024 at 09:10:48AM -0700, Andrea Bolognani wrote: > On Wed, Mar 20, 2024 at 10:18:39AM -0400, Stefan Berger wrote: > > On 3/20/24 08:23, Peter Krempa wrote: > > > Did you consider the case when the migration fails and the VM will be > > > restored to r

Re: [PATCH 06/10] qemu: Introduce shared_filesystems configuration option

2024-04-17 Thread Andrea Bolognani
On Tue, Mar 26, 2024 at 08:54:03AM -0700, Andrea Bolognani wrote: > On Wed, Mar 20, 2024 at 08:43:24AM -0700, Andrea Bolognani wrote: > > On Wed, Mar 20, 2024 at 12:37:37PM +0100, Peter Krempa wrote: > > > On Wed, Mar 20, 2024 at 10:19:11 +0100, Andrea Bolognani wrote:

[PATCH v2 3/5] qemu: Propagate shared_filesystems

2024-04-17 Thread Andrea Bolognani
of it. Note that with this change the list is propagated all the way through, but its contents are still ignored, so the behavior remains the same for now. Signed-off-by: Andrea Bolognani --- src/lxc/lxc_controller.c | 3 +- src/lxc/lxc_driver.c | 2 +- src/lxc/lxc_process.c

[PATCH v2 5/5] qemu: Always set labels for TPM state

2024-04-17 Thread Andrea Bolognani
for disks and other types of persistent storage such as NVRAM files, which always get relabeled. Signed-off-by: Andrea Bolognani --- src/qemu/qemu_tpm.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c index cdf4bfbad2

[PATCH v2 2/5] qemu: Introduce shared_filesystems configuration option

2024-04-17 Thread Andrea Bolognani
As explained in the comment, this can help in scenarios where a shared filesystem can't be detected as such by libvirt, by giving the admin the opportunity to provide this information manually. Signed-off-by: Andrea Bolognani --- src/qemu/libvirtd_qemu.aug | 3 +++ src/qemu

[PATCH v2 4/5] utils: Use overrides in virFileIsSharedFS()

2024-04-17 Thread Andrea Bolognani
If the local admin has explicitly declared that a certain filesystem is to be considered shared, we should treat it as such. Signed-off-by: Andrea Bolognani --- src/util/virfile.c | 42 +- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src

[PATCH v2 1/5] security: Fix alignment

2024-04-17 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- src/security/security_selinux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index aaec34ff8b..a4915dbc89 100644 --- a/src/security/security_selinux.c +++ b/src

[PATCH v2 0/5] qemu: Introduce shared_filesystems configuration option

2024-04-17 Thread Andrea Bolognani
://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/MMKVR54LD3SDG5CMSXUECV7I57LMJJTH/ [1] https://issues.redhat.com/browse/CNV-34322 [2] https://issues.redhat.com/browse/CNV-39370 Andrea Bolognani (5): security: Fix alignment qemu: Introduce shared_filesystems configuration option

Re: [PATCH 3/3] qemu_command: Generate mem-reserve for controllers

2024-04-15 Thread Andrea Bolognani
s:driver", modelName, >"i:chassis_nr", pciopts->chassisNr, > + "P:mem-reserve", pciopts->memReserve * > 1024, I thought this couldn't possibly work correctly at first, but then I looked up what "

Re: [PATCH 2/3] qemu_validate: Restrict setting @memReserve only to some controllers

2024-04-15 Thread Andrea Bolognani
/qemu_validate.c | 25 + > 1 file changed, 25 insertions(+) Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [PATCH 1/3] conf: Introduce @memReserve to

2024-04-15 Thread Andrea Bolognani
show_bug.cgi?id=1408810 and was concerned that whatever you implemented here might rule out potentially implementing that in the future, or having to resort to some hacks. But since the parser will reject memReserve='0', we can still decide to relax things in the future and permit ioReserve='0' w

[PATCH 2/2] virsh: Display more empathy towards inconsolable VMs :(

2024-04-01 Thread Andrea Bolognani
our best efforts. Try to put this sentiment into words; to further carry the message, also include a tasteful ASCII rendition of our sorrow. Signed-off-by: Andrea Bolognani --- tools/virsh-console.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/virsh-console.c b

[PATCH 1/2] virsh: Show 'connected to console' message later

2024-04-01 Thread Andrea Bolognani
' Escape character is ^] (Ctrl + ]) error: internal error: cannot find character device The initial message is misleading. Change things so that it's only printed if we actually successfully connected to the VM console. Signed-off-by: Andrea Bolognani --- tools/virsh-console.c | 19

[PATCH 0/2] virsh: Improve console functionality

2024-04-01 Thread Andrea Bolognani
*** APRIL BLURBS *** Andrea Bolognani (2): virsh: Show 'connected to console' message later virsh: Display more empathy towards inconsolable VMs :( tools/virsh-console.c | 24 +--- tools/virsh-domain.c | 7 --- 2 files changed, 17 insertions(+), 14 deletions

Re: [libvirt PATCH] NEWS: Update

2024-03-27 Thread Andrea Bolognani
works now. > + > + * virt-admin: Fix segfault when libvirtd dies > + > +Now, `virt-admin` no longer crashes when `libvirtd` unexpectedly closes > +the connection. I'd just drop the initial "Now," here. Throughout, you need to use ``reStructuredText preformatte

Re: [PATCH 06/10] qemu: Introduce shared_filesystems configuration option

2024-03-26 Thread Andrea Bolognani
On Tue, Mar 26, 2024 at 01:15:41PM -0400, Stefan Berger wrote: > On 3/26/24 12:38, Andrea Bolognani wrote: > > On Tue, Mar 26, 2024 at 12:04:21PM -0400, Stefan Berger wrote: > > > On 3/26/24 11:54, Andrea Bolognani wrote: > > > > The issue is that, when remembe

Re: [PATCH 07/10] qemu: Propagate shared_filesystems

2024-03-26 Thread Andrea Bolognani
On Wed, Mar 20, 2024 at 01:10:00PM +0100, Peter Krempa wrote: > On Wed, Mar 20, 2024 at 10:19:12 +0100, Andrea Bolognani wrote: > > @@ -1355,7 +1363,7 @@ virSecurityManagerMetadataLock(virSecurityManager > > *mgr G_GNUC_UNUSED, > > }

Re: [PATCH 06/10] qemu: Introduce shared_filesystems configuration option

2024-03-26 Thread Andrea Bolognani
On Tue, Mar 26, 2024 at 12:04:21PM -0400, Stefan Berger wrote: > > > On 3/26/24 11:54, Andrea Bolognani wrote: > > On Wed, Mar 20, 2024 at 08:43:24AM -0700, Andrea Bolognani wrote: > > > On Wed, Mar 20, 2024 at 12:37:37PM +0100, Peter Krempa wrote: > > > > On

Re: [PATCH 06/10] qemu: Introduce shared_filesystems configuration option

2024-03-26 Thread Andrea Bolognani
On Wed, Mar 20, 2024 at 08:43:24AM -0700, Andrea Bolognani wrote: > On Wed, Mar 20, 2024 at 12:37:37PM +0100, Peter Krempa wrote: > > On Wed, Mar 20, 2024 at 10:19:11 +0100, Andrea Bolognani wrote: > > > +# libvirt will normally prevent migration if the stor

[PATCH 0/2] NEWS: Mention loongarch64 guest support

2024-03-21 Thread Andrea Bolognani
Plus a random fix. Andrea Bolognani (2): NEWS: Fix spacing NEWS: Mention loongarch64 guest support NEWS.rst | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) -- 2.44.0 ___ Devel mailing list -- devel@lists.libvirt.org

[PATCH 1/2] NEWS: Fix spacing

2024-03-21 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- NEWS.rst | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index ff98a47577..ec2fadaae8 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -16,11 +16,12 @@ v10.2.0 (unreleased) * **Removed features** * **New features

[PATCH 2/2] NEWS: Mention loongarch64 guest support

2024-03-21 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- NEWS.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index ec2fadaae8..ef9e312698 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -29,6 +29,13 @@ v10.2.0 (unreleased) guest can access files on this driver through the Media

Re: [libvirt PATCH V4 0/4] add loongarch support for libvirt

2024-03-21 Thread Andrea Bolognani
plement the method of getting host info for loongarch > Add test script for loongarch Everything looks great. Reviewed-by: Andrea Bolognani and pushed. Thank you for your patience! -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [PATCH 09/10] qemu: Always set labels for TPM state

2024-03-20 Thread Andrea Bolognani
On Wed, Mar 20, 2024 at 10:18:39AM -0400, Stefan Berger wrote: > On 3/20/24 08:23, Peter Krempa wrote: > > On Wed, Mar 20, 2024 at 10:19:14 +0100, Andrea Bolognani wrote: > > > Consider the case in which one host (mig-one) exports its > > > local filesystem /sr

Re: [PATCH 10/10] NEWS: Document qemu shared_filesystems option

2024-03-20 Thread Andrea Bolognani
On Wed, Mar 20, 2024 at 10:07:11AM -0400, Stefan Berger wrote: > On 3/20/24 05:19, Andrea Bolognani wrote: > > + * qemu: Add ``shared_filesystems`` configuration option > > + > > +This option can be used to configure libvirt so that migration between > > two &

Re: [PATCH 06/10] qemu: Introduce shared_filesystems configuration option

2024-03-20 Thread Andrea Bolognani
ot used locally. In the more general case, there's really nothing preventing people from creating a similar setup outside of KubeVirt with Portworx. As you rightfully point out, there are some drawbacks to the approach but it's not necessarily an invalid one per se. [1] https://github.com/lib

Re: [PATCH 06/10] qemu: Introduce shared_filesystems configuration option

2024-03-20 Thread Andrea Bolognani
On Wed, Mar 20, 2024 at 12:37:37PM +0100, Peter Krempa wrote: > On Wed, Mar 20, 2024 at 10:19:11 +0100, Andrea Bolognani wrote: > > +# libvirt will normally prevent migration if the storage backing the VM is > > not > > +# on a shared filesystems. Sometimes, however, th

[PATCH 08/10] utils: Use overrides in virFileIsSharedFS()

2024-03-20 Thread Andrea Bolognani
If the filesystem wasn't determined to be a shared one via the type check, try comparing it with the additional paths that have been configured by the local admin. Signed-off-by: Andrea Bolognani --- src/util/virfile.c | 86 ++ 1 file changed, 72

[PATCH 03/10] security: Drop virSecurity(DAC|SELinux)RestoreImageLabelSingle()

2024-03-20 Thread Andrea Bolognani
Each one only has a single, trivial caller. Signed-off-by: Andrea Bolognani --- src/security/security_dac.c | 21 - src/security/security_selinux.c | 21 - 2 files changed, 8 insertions(+), 34 deletions(-) diff --git a/src/security/security_dac.c b

[PATCH 09/10] qemu: Always set labels for TPM state

2024-03-20 Thread Andrea Bolognani
for disks and other types of persistent storage such as NVRAM files, which always get relabeled. Signed-off-by: Andrea Bolognani --- src/qemu/qemu_tpm.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c index f1b4283a70

[PATCH 10/10] NEWS: Document qemu shared_filesystems option

2024-03-20 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- NEWS.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 489201d3fc..7e17043c2a 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -17,6 +17,13 @@ v10.2.0 (unreleased) * **New features** + * qemu: Add ``shared_filesystems

[PATCH 07/10] qemu: Propagate shared_filesystems

2024-03-20 Thread Andrea Bolognani
of it. Note that with this change the list is propagated all the way through, but its contents are still ignored, so the behavior remains the same for now. Signed-off-by: Andrea Bolognani --- src/lxc/lxc_controller.c | 2 +- src/lxc/lxc_driver.c | 2 +- src/lxc/lxc_process.c

[PATCH 05/10] qemu: Tweak augeas schema

2024-03-20 Thread Andrea Bolognani
Current entries should always be listed before obsolete ones. Signed-off-by: Andrea Bolognani --- src/qemu/libvirtd_qemu.aug | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qemu/libvirtd_qemu.aug b/src/qemu/libvirtd_qemu.aug index 43485b43fb..2b6526538f 100644

[PATCH 06/10] qemu: Introduce shared_filesystems configuration option

2024-03-20 Thread Andrea Bolognani
As explained in the comment, this can help in scenarios where a shared filesystem can't be detected as such by libvirt, by giving the admin the opportunity to provide this information manually. Signed-off-by: Andrea Bolognani --- src/qemu/libvirtd_qemu.aug | 3 +++ src/qemu

[PATCH 00/10] qemu: Introduce shared_filesystems configuration option

2024-03-20 Thread Andrea Bolognani
://issues.redhat.com/browse/CNV-39370 Andrea Bolognani (10): security: Fix alignment security: Fix name for _virSecurityDACChardevCallbackData security: Drop virSecurity(DAC|SELinux)RestoreImageLabelSingle() security: Drop virSecurity(DAC|SELinux)SetImageLabelRelative() qemu: Tweak augeas

[PATCH 01/10] security: Fix alignment

2024-03-20 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- src/security/security_manager.c | 14 +++--- src/security/security_manager.h | 16 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/security/security_manager.c b/src/security/security_manager.c index afd41f1c20

[PATCH 02/10] security: Fix name for _virSecurityDACChardevCallbackData

2024-03-20 Thread Andrea Bolognani
It was clearly copied over from the SELinux driver without updating its name in the process. Signed-off-by: Andrea Bolognani --- src/security/security_dac.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/security/security_dac.c b/src/security/security_dac.c

[PATCH 04/10] security: Drop virSecurity(DAC|SELinux)SetImageLabelRelative()

2024-03-20 Thread Andrea Bolognani
The single caller for each function passes the same value for @src and @parent, which means that we don't really need the additional API. Signed-off-by: Andrea Bolognani --- src/security/security_dac.c | 19 +-- src/security/security_selinux.c | 19 +-- 2

Re: [PATCH 0/2] meson: Fix/improve detection of scheduler-related functionality

2024-03-19 Thread Andrea Bolognani
On Tue, Mar 19, 2024 at 05:45:10PM +0100, Michal Prívozník wrote: > On 2/27/24 19:30, Andrea Bolognani wrote: > > This applies on top of [1]. Test pipeline: [2] > > > > Upon further investigation, I have determined that not only > > we are unintentionally using the Li

Re: [PATCH] qemu: Add sysusers config file for qemu & kvm user/groups

2024-03-19 Thread Andrea Bolognani
or the qemu_user and qemu_group meson options, which have been around forever and can take arbitrary values. At the very least, installing this file needs to be gated behind a meson option that is off by default. A more complete solution that integrates properly with the existing facilities will requ

Re: [PATCH 0/2] meson: Fix/improve detection of scheduler-related functionality

2024-03-08 Thread Andrea Bolognani
On Fri, Mar 08, 2024 at 10:47:12AM +0100, Michal Prívozník wrote: > On 2/28/24 13:40, Andrea Bolognani wrote: > > On Wed, Feb 28, 2024 at 12:37:54PM +0100, Michal Prívozník wrote: > >> On 2/27/24 19:30, Andrea Bolognani wrote: > >>> This applies on top of [1]. Test

Re: [libvirt PATCH V3 4/4] Add test script for loongarch

2024-03-07 Thread Andrea Bolognani
> + > + This test is about default devices, so the ACPI feature doesn't need to be included. Same thing for the default-models test. The test coverage you've introduced is pretty good overall, but there's one notable blind spot: firmware handling. Thankfully, since I have recently add

Re: [libvirt PATCH V3 2/4] Support for loongarch64 in the QEMU driver

2024-03-07 Thread Andrea Bolognani
QEMU_CAPS_SCSI_LSI)) return VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSILOGIC; -- Andrea Bolognani / Red Hat / Virtualization ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [libvirt PATCH V3 1/4] Add loongarch cpu support

2024-03-07 Thread Andrea Bolognani
u/firmware/50-edk2-loongarch64.json"); DO_PARSE_TEST("usr/share/qemu/firmware/50-edk2-ovmf-4m-qcow2-x64-nosb.json"); DO_PARSE_TEST("usr/share/qemu/firmware/50-edk2-ovmf-x64-microvm.json"); DO_PARSE_TEST("usr/share/qemu/firmware/51-edk2-aarch64-raw.json&

  1   2   3   4   5   >