]> git.ipfire.org Git - thirdparty/libvirt.git/log
thirdparty/libvirt.git
3 hours agocpu_map: Add YongFeng-v3 CPU model master
Jiri Denemark [Thu, 6 Nov 2025 09:57:47 +0000 (10:57 +0100)] 
cpu_map: Add YongFeng-v3 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add YongFeng-v2 CPU model
Jiri Denemark [Thu, 6 Nov 2025 09:57:25 +0000 (10:57 +0100)] 
cpu_map: Add YongFeng-v2 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add YongFeng CPU model
Jiri Denemark [Thu, 6 Nov 2025 09:56:27 +0000 (10:56 +0100)] 
cpu_map: Add YongFeng CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add features used by Zhaoxin YongFeng Processor
Jiri Denemark [Thu, 6 Nov 2025 09:06:53 +0000 (10:06 +0100)] 
cpu_map: Add features used by Zhaoxin YongFeng Processor

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add Zhaoxin CentaurHauls CPU vendor
Jiri Denemark [Thu, 6 Nov 2025 09:49:19 +0000 (10:49 +0100)] 
cpu_map: Add Zhaoxin CentaurHauls CPU vendor

Zhaoxin uses two distinct vendor IDs. This patch is adding one of them
used by Zhaoxin YongFeng Processor.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add EPYC-Turin CPU model
Jiri Denemark [Thu, 6 Nov 2025 08:33:16 +0000 (09:33 +0100)] 
cpu_map: Add EPYC-Turin CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add EPYC-Milan-v3 CPU model
Jiri Denemark [Thu, 6 Nov 2025 08:32:40 +0000 (09:32 +0100)] 
cpu_map: Add EPYC-Milan-v3 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add EPYC-v5 CPU model
Jiri Denemark [Thu, 6 Nov 2025 08:30:18 +0000 (09:30 +0100)] 
cpu_map: Add EPYC-v5 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add EPYC-Rome-v5 CPU model
Jiri Denemark [Thu, 6 Nov 2025 08:31:30 +0000 (09:31 +0100)] 
cpu_map: Add EPYC-Rome-v5 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add EPYC-Genoa-v2 CPU model
Jiri Denemark [Thu, 6 Nov 2025 08:27:39 +0000 (09:27 +0100)] 
cpu_map: Add EPYC-Genoa-v2 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add ClearwaterForest CPU model
Jiri Denemark [Wed, 5 Nov 2025 15:45:43 +0000 (16:45 +0100)] 
cpu_map: Add ClearwaterForest CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add GraniteRapids-v3 CPU model
Jiri Denemark [Thu, 6 Nov 2025 08:41:19 +0000 (09:41 +0100)] 
cpu_map: Add GraniteRapids-v3 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add SapphireRapids-v4 CPU model
Jiri Denemark [Thu, 6 Nov 2025 08:40:38 +0000 (09:40 +0100)] 
cpu_map: Add SapphireRapids-v4 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add SierraForest-v3 CPU model
Jiri Denemark [Wed, 5 Nov 2025 15:18:12 +0000 (16:18 +0100)] 
cpu_map: Add SierraForest-v3 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add SierraForest-v2 CPU model
Jiri Denemark [Wed, 5 Nov 2025 15:16:35 +0000 (16:16 +0100)] 
cpu_map: Add SierraForest-v2 CPU model

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocputest: Add data for AMD Ryzen 9 9950X 16-Core CPU
Jiri Denemark [Thu, 6 Nov 2025 13:13:34 +0000 (14:13 +0100)] 
cputest: Add data for AMD Ryzen 9 9950X 16-Core CPU

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocputest: Add data for Intel(R) Xeon(R) 6788P CPU
Jiri Denemark [Thu, 6 Nov 2025 11:20:01 +0000 (12:20 +0100)] 
cputest: Add data for Intel(R) Xeon(R) 6788P CPU

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocputest: Read more MSRs in cpu-data.py
Jiri Denemark [Thu, 6 Nov 2025 13:10:06 +0000 (14:10 +0100)] 
cputest: Read more MSRs in cpu-data.py

The features defined in our CPU map use quite a bit more than just the
two MSRs the script is currently trying to read. Let's read all of them
to get complete host CPU data.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocputest: Ignore missing MSRs in cpu-data.py
Jiri Denemark [Thu, 6 Nov 2025 12:40:14 +0000 (13:40 +0100)] 
cputest: Ignore missing MSRs in cpu-data.py

The current code made sense when we were reading only one MSR, but since
we started reading more MSRs, the host CPU would have to support all of
them otherwise the function would just return an empty dict.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agosync_qemu_models_i386: Support adding models to an empty group
Jiri Denemark [Thu, 6 Nov 2025 09:55:10 +0000 (10:55 +0100)] 
sync_qemu_models_i386: Support adding models to an empty group

When adding a new CPU vendor, we create a new empty group in
src/cpu_map/index.xml and want to use the sync_qemu_models_i386.py
script to add models there.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agosync_qemu_models_i386: Handle unknown features in GraniteRapids-v2
Jiri Denemark [Wed, 5 Nov 2025 14:54:57 +0000 (15:54 +0100)] 
sync_qemu_models_i386: Handle unknown features in GraniteRapids-v2

The GraniteRapids-v2 uses quite a few CPU features unknown to this
script.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agosync_qemu_models_i386: Print current model for unknown features
Jiri Denemark [Wed, 5 Nov 2025 14:49:22 +0000 (15:49 +0100)] 
sync_qemu_models_i386: Print current model for unknown features

This way one can just grep for all warnings in the script output and
still be able to see for which CPU model is defined using features the
script doesn't know about.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agosync_qemu_models_i386: Fix typo in CPUID_8000_0021_EAX_No_NESTED_DATA_BP
Jiri Denemark [Wed, 5 Nov 2025 14:48:11 +0000 (15:48 +0100)] 
sync_qemu_models_i386: Fix typo in CPUID_8000_0021_EAX_No_NESTED_DATA_BP

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Fix ordering of CPU models in meson.build
Jiri Denemark [Wed, 5 Nov 2025 14:47:18 +0000 (15:47 +0100)] 
cpu_map: Fix ordering of CPU models in meson.build

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add feature for detecting Indirect Target Selection immunity
Jiri Denemark [Wed, 5 Nov 2025 14:23:00 +0000 (15:23 +0100)] 
cpu_map: Add feature for detecting Indirect Target Selection immunity

QEMU commit 74978391b2da0116b9109d52931f342118d5a122

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add feature for detecting Branch History Injection immunity
Jiri Denemark [Wed, 5 Nov 2025 14:18:36 +0000 (15:18 +0100)] 
cpu_map: Add feature for detecting Branch History Injection immunity

QEMU commit b611931d4f70b9a3e49e39c405c63b3b5e9c0df1

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add features for Transient Scheduler Attacks mitigation
Jiri Denemark [Wed, 5 Nov 2025 14:11:56 +0000 (15:11 +0100)] 
cpu_map: Add features for Transient Scheduler Attacks mitigation

QEMU commits d8ec0baf4a15082cdc4abe1de28face9a26f0dc9 and
c79a35acadee784610aed40134a12738381b4fba

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add a few missing features to 0x80000021 CPUID leaf
Jiri Denemark [Wed, 5 Nov 2025 14:07:17 +0000 (15:07 +0100)] 
cpu_map: Add a few missing features to 0x80000021 CPUID leaf

QEMU commit dfd5b456108a75588ab094358ba5754787146d3d

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agocpu_map: Add msr-imm CPU feature
Jiri Denemark [Wed, 5 Nov 2025 13:45:36 +0000 (14:45 +0100)] 
cpu_map: Add msr-imm CPU feature

QEMU commit 91084f3b44b1da4935eec85b79c1f97d1c140ada

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 hours agoscripts: do not use uninitialized variable
Ján Tomko [Fri, 7 Nov 2025 14:44:09 +0000 (15:44 +0100)] 
scripts: do not use uninitialized variable

A previous commit removed the 'ret' variable when
switching to subprocess.run, but did not adjust
the exit code.

Fixes: 15c9ca383c2a814c61cc4ed16b4dad91221d8129
Signed-off-by: Ján Tomko <jtomko@redhat.com>
6 hours agotools/nss: check for missing array element
Daniel P. Berrangé [Thu, 16 Oct 2025 10:09:18 +0000 (11:09 +0100)] 
tools/nss: check for missing array element

We've already checked the upper bound of the array, but we should
none the less sanity check that the requested array element is
not NULL before dereferencing it.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
6 hours agosrc: check for invalid stream in virStreamInData
Daniel P. Berrangé [Thu, 16 Oct 2025 10:03:41 +0000 (11:03 +0100)] 
src: check for invalid stream in virStreamInData

All methods must use virCheckStreamReturn to validate their
'stream' parameter.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
6 hours agoscripts: use subprocess.run instead of os.system
Daniel P. Berrangé [Thu, 16 Oct 2025 09:23:27 +0000 (10:23 +0100)] 
scripts: use subprocess.run instead of os.system

The subprocess.run command avoids using the shell and so is robust
should sys.argv contain any whitespace or unexpected shell meta
characters.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
7 hours agoqemu: Use query-accelerators to query accelerators
Praveen K Paladugu [Thu, 6 Nov 2025 16:26:54 +0000 (10:26 -0600)] 
qemu: Use query-accelerators to query accelerators

Use the `query-accelerators` command to generically query the enabled
acclerator. Below is an example invocation in Qemu:

  { "execute": "query-accelerators"}
  "return": {"enabled": "kvm", "present": ["kvm", "mshv", "qtest", "tcg", "xen"]}}

"enabled" here indicates "kvm" is the enabled accelertor.

If query-accelerators command is not available, fallback to existing
mechnisms for querying kvm and hvf capabilities.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
7 hours agoqemu: Introduce query-accelerators cap
Praveen K Paladugu [Thu, 6 Nov 2025 16:26:53 +0000 (10:26 -0600)] 
qemu: Introduce query-accelerators cap

Introduce query-accelerators capability which is a generic way to query
the accelerators supported by qemu.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
30 hours agosrc: report error from failing to add timer/FD watches
Daniel P. Berrangé [Mon, 22 Jul 2024 14:56:03 +0000 (15:56 +0100)] 
src: report error from failing to add timer/FD watches

The virEventAddHandle/Timeout APIs are unusual in that they do not
report errors on failure, because they call through to function
callbacks which might be provided externally to libvirt and thus
won't be using libvirt's error reporting APIs.

This is a rather unfortunate design characteristic as we can see
most callers forgot about this special behaviour and so we are
lacking error reporting in many cases.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 days agoconf: Don't leak virDomainDiskDef's 'statistics' member
Peter Krempa [Wed, 5 Nov 2025 15:03:13 +0000 (16:03 +0100)] 
conf: Don't leak virDomainDiskDef's 'statistics' member

In commit 19fc614d531f I've added an option to configure statistics but
forgot to free it once the disk definition struct is freed.

Fixes: 19fc614d531fb75877abb59baaf33bc1add4d483
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
2 days agoqemu: Add support for enabling timed block device statistics collection
Peter Krempa [Tue, 7 Oct 2025 15:43:41 +0000 (17:43 +0200)] 
qemu: Add support for enabling timed block device statistics collection

Add validation that qemu supports the collection of statistics and
enable it on the block device commandline.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 days agoconf: Add configuration option for timed disk statistics collection
Peter Krempa [Mon, 6 Oct 2025 15:32:28 +0000 (17:32 +0200)] 
conf: Add configuration option for timed disk statistics collection

QEMU supports collection of disk statistics in configurable time
windows. Add support for enabling this feature to the conf parser.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 days agoqemu: capabilities: Introduce QEMU_CAPS_DISK_TIMED_STATS
Peter Krempa [Tue, 7 Oct 2025 12:57:50 +0000 (14:57 +0200)] 
qemu: capabilities: Introduce QEMU_CAPS_DISK_TIMED_STATS

The capability tracks support for 'stats-intervals' property of disk
frontends which enables statistics collection on the devices.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 days agoExpose qemu timed block statistics via bulk stats API
Peter Krempa [Fri, 12 Sep 2025 11:32:36 +0000 (13:32 +0200)] 
Expose qemu timed block statistics via bulk stats API

The statistics show various disk access timing parameters collected in
configurable interval which can be useful for performance
investigations.

Note that the statistic collection needs to be enabled explicitly for
the statistics to be collected and displayed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 days agoqemu_monitor: Extract 'timed_stats' of block devices
Peter Krempa [Thu, 11 Sep 2025 15:07:11 +0000 (17:07 +0200)] 
qemu_monitor: Extract 'timed_stats' of block devices

The 'timed_stats' block is a set of statistics gathered in configurable
time intervals. The stats include latency timings of reads/writes as
well as the depth of the request queues.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 days agoExpose qemu storage request limits via bulk stats API
Peter Krempa [Mon, 6 Oct 2025 13:30:43 +0000 (15:30 +0200)] 
Expose qemu storage request limits via bulk stats API

Management applications can use the detected limits to cross reference
with configuration within the VM to ensure optimal performance.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 days agoqemu: monitor: Extract block limit values
Peter Krempa [Wed, 1 Oct 2025 08:42:09 +0000 (10:42 +0200)] 
qemu: monitor: Extract block limit values

The 'limits' field reports various maximum request sizes and
alignments for a qemu blockdev protocol node.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 days agoqemucapabilitiestest: qemucapabilitiestest: Update 'caps_10.2.0_x86_64' to 'v10.1...
Peter Krempa [Mon, 3 Nov 2025 12:04:09 +0000 (13:04 +0100)] 
qemucapabilitiestest: qemucapabilitiestest: Update 'caps_10.2.0_x86_64' to 'v10.1.0-1969-g53b41bb789'

Notable changes:
 - deprecated 'reconnect' option removed from socket chardevs
 - 'query-accelerators' QMP command added
 - 'query-firmware-log' QMP command added
 - block image limits exposed via QMP
 - timed block statistics collection config is now available via -device
 - 'audio-backend' QOM object type added
 - 'mshv-accel' QOM object type added
 - 'tsa-l1-no', 'tsa-sq-no', 'verw-clear' cpu properties added
 - SCLP_CPI_INFO_AVAILABLE event addedt

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 days agoqemu: capabilities: Fix logic for formatting 'reconnect' parameter
Peter Krempa [Mon, 3 Nov 2025 12:23:48 +0000 (13:23 +0100)] 
qemu: capabilities: Fix logic for formatting 'reconnect' parameter

In commit e4d058866e9 I've converted the code to use the modern
'reconnect-ms' parameter instead of 'reconnect' but messed up the logic
for the time when 'reconnect' will be removed.

We need to check QEMU_CAPS_NETDEV_STREAM_RECONNECT_MILISECONDS
individually and not based on QEMU_CAPS_NETDEV_STREAM_RECONNECT.

Fix the logic as upstream qemu now removed 'reconnect'.

Fixes: e4d058866e9563756349de6b3f451a53e64ca872
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 days agoqemu: capabilities: Retire QEMU_CAPS_CHARDEV_RECONNECT
Peter Krempa [Mon, 3 Nov 2025 12:18:02 +0000 (13:18 +0100)] 
qemu: capabilities: Retire QEMU_CAPS_CHARDEV_RECONNECT

The flag was never queried since it's introduction in
5f7da98b3ff29dc274c9e500f6afa40a97f02b7b

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 days agoqemucapabilitiesdata: README: Add rules for dumps of unreleased qemu
Peter Krempa [Mon, 3 Nov 2025 16:03:54 +0000 (17:03 +0100)] 
qemucapabilitiesdata: README: Add rules for dumps of unreleased qemu

Add a note that the filename should match the final version number and
that it's expected to do an update after the given qemu version gets
released.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 days agoci: Refresh with 'lcitool manifest'
Michal Privoznik [Wed, 5 Nov 2025 11:31:41 +0000 (12:31 +0100)] 
ci: Refresh with 'lcitool manifest'

The only change here is that fuse3 is installed instead of fuse.
This is needed by v11.9.0-9-gb100dabd6d which made the change in
spec file.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
3 days agorpm: change from fuse-devel to fuse3-devel
Daniel P. Berrangé [Fri, 31 Oct 2025 14:02:09 +0000 (14:02 +0000)] 
rpm: change from fuse-devel to fuse3-devel

The meson.build already supports both fuse2 and fuse3, and fuse3
is in all Fedora versions we need, so switch to the newer version
unconditionally.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 days agoRemove arm from KVM arches
Daniel P. Berrangé [Mon, 3 Nov 2025 14:36:34 +0000 (14:36 +0000)] 
Remove arm from KVM arches

Not only was ARM 7 dropped from Fedora 37, KVM support has also been
dropped in upstream Linux.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
4 days agoqemu: Ignore "ht" CPU feature
Jiri Denemark [Fri, 24 Oct 2025 12:17:56 +0000 (14:17 +0200)] 
qemu: Ignore "ht" CPU feature

The feature does not do anything, QEMU will always set it according to
the CPU topology completely ignoring what we asked for. Unfortunately,
the way the state of "ht" is reported changed in QEMU 10.0.0 (commit
c6bd2dd634208).

QEMU older than 10.0.0 would just report whatever was specified on the
command line totally ignoring the actual state of the feature visible to
a guest. But after the change QEMU reports ht=on in case it enabled "ht"
based on the CPU topology. In all other cases QEMU still reports the
state requested on the command line.

As a result of this change a domain with multiple CPU threads started on
QEMU < 10.0.0 could not be migrated to QEMU >= 10.0.0 unless "ht" was
explicitly enabled in the domain XML because libvirt would see "ht"
enabled on the destination, but disabled on the source (the guest would
see "ht" enabled in both cases anyway). Outgoing migration of domains
started on QEMU >= 10.0.0 is not affected.

To fix this issue we can completely ignore "ht" both in the domain XML
and in the CPU properties reported by QEMU. With this fix incoming
migration to QEMU >= 10.0.0 works again.

Fixes: https://gitlab.com/libvirt/libvirt/-/issues/821
Fixes: https://issues.redhat.com/browse/RHEL-104216
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
4 days agoqemu_monitor: Filter CPU features reported by QEMU
Jiri Denemark [Fri, 24 Oct 2025 15:16:32 +0000 (17:16 +0200)] 
qemu_monitor: Filter CPU features reported by QEMU

Some features may be on our ignore list because they do nothing even
though QEMU still supports them and reports their state. But as the
features do nothing, the state reported by QEMU may not correspond to
what the guest sees. To avoid possible confusion we may just pretend
QEMU did not report any of the features on our ignore list.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
4 days agoqemu_process: Always fix CPUs on reconnect
Jiri Denemark [Fri, 24 Oct 2025 13:36:18 +0000 (15:36 +0200)] 
qemu_process: Always fix CPUs on reconnect

We fix CPUs (i.e., remove ignored CPU features) only when libvirt/QEMU
combo used to start the domain is very old and doesn't support
query-cpu-model-expansion, in which case the CPU definition may contain
features that are unknown to QEMU. But even if both libvirt and QEMU are
new enough, we still want to remove features that do nothing to minimize
confusion or to avoid false migration issues.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
4 days agoqemu_domain: Fix qemuDomainFixupCPUs
Jiri Denemark [Fri, 24 Oct 2025 13:27:03 +0000 (15:27 +0200)] 
qemu_domain: Fix qemuDomainFixupCPUs

The function was apparently created when the list of ignored CPU
features contained just cmt and related features. The list grew quite a
bit since then and this function stopped making sense as it would remove
all ignored features from CPU definitions but only if cmt was present.
The issue with cmt is long gone and this function was not really doing
anything. Surprisingly this didn't cause any real issues as we don't
update CPU definitions with features unknown to QEMU. But we may still
want to remove ignored features even though QEMU knows about them for
compatibility reasons.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
4 days agoqemu_domain: Simplify qemuDomainFixupCPUs
Jiri Denemark [Fri, 24 Oct 2025 13:13:49 +0000 (15:13 +0200)] 
qemu_domain: Simplify qemuDomainFixupCPUs

Since virCPUDefFilterFeatures never fails, we can use it for in-place
modifications instead of modifying a temporary virCPUDef copy.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
4 days agocpu_conf: Make virCPUDefFilterFeatures return void
Jiri Denemark [Fri, 24 Oct 2025 13:07:45 +0000 (15:07 +0200)] 
cpu_conf: Make virCPUDefFilterFeatures return void

The only thing that can fail inside virCPUDefFilterFeatures is
VIR_DELETE_ELEMENT_INPLACE macro. The macro just calls
virDeleteElementsN, which reports a warning when all elements to be
removed are not within the array bounds and returns -1. The function
succeeds otherwise. But since VIR_DELETE_ELEMENT_INPLACE sets the number
of elements to be removed to 1 and we call it with i < cpu->nfeatures,
the safety check in virDeleteElementsN will never fail. And even if we
theoretically called it with wrong arguments, it just wouldn't do
anything.

Thus we can safely assume VIR_DELETE_ELEMENT_INPLACE always succeeds in
virCPUDefFilterFeatures and avoid reporting any errors to simplify
callers.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
4 days agoPost-release version bump to 11.10.0
Jiri Denemark [Mon, 3 Nov 2025 11:29:58 +0000 (12:29 +0100)] 
Post-release version bump to 11.10.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
4 days agoRelease of libvirt-11.9.0 v11.9.0
Jiri Denemark [Mon, 3 Nov 2025 11:26:40 +0000 (12:26 +0100)] 
Release of libvirt-11.9.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
4 days agoNEWS: mention 'manual' snapshot mode improvement
Peter Krempa [Fri, 31 Oct 2025 13:17:11 +0000 (14:17 +0100)] 
NEWS: mention 'manual' snapshot mode improvement

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
4 days agoTranslated using Weblate (Portuguese)
Américo Monteiro [Mon, 3 Nov 2025 07:03:49 +0000 (07:03 +0000)] 
Translated using Weblate (Portuguese)

Currently translated at 99.5% (10922 of 10976 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
4 days agoTranslated using Weblate (Portuguese)
Anonymous [Mon, 3 Nov 2025 07:03:48 +0000 (07:03 +0000)] 
Translated using Weblate (Portuguese)

Currently translated at 99.5% (10922 of 10976 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Anonymous <noreply@weblate.org>
4 days agoTranslated using Weblate (Portuguese)
Américo Monteiro [Mon, 3 Nov 2025 07:03:47 +0000 (07:03 +0000)] 
Translated using Weblate (Portuguese)

Currently translated at 99.3% (10901 of 10976 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 98.9% (10856 of 10976 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
7 days agoNEWS: Document features/improvements/bug fixes I've participated in
Michal Privoznik [Fri, 31 Oct 2025 12:31:49 +0000 (13:31 +0100)] 
NEWS: Document features/improvements/bug fixes I've participated in

There are some features/improvements/bug fixes I've either
contributed or reviewed/merged. Document them for upcoming
release.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
7 days agoTranslated using Weblate (Ukrainian) v11.9.0-rc2
Yuri Chornoivan [Fri, 31 Oct 2025 09:59:00 +0000 (09:59 +0000)] 
Translated using Weblate (Ukrainian)

Currently translated at 100.0% (10976 of 10976 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
7 days agoTranslated using Weblate (Portuguese)
Américo Monteiro [Fri, 31 Oct 2025 09:58:59 +0000 (09:58 +0000)] 
Translated using Weblate (Portuguese)

Currently translated at 98.2% (10788 of 10976 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 98.0% (10766 of 10976 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
7 days agodocs: drvbhyve: document NVMe device
Roman Bogorodskiy [Wed, 29 Oct 2025 17:58:47 +0000 (18:58 +0100)] 
docs: drvbhyve: document NVMe device

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
7 days agoNEWS: document bhyve changes for 11.9.0
Roman Bogorodskiy [Wed, 29 Oct 2025 17:58:46 +0000 (18:58 +0100)] 
NEWS: document bhyve changes for 11.9.0

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
7 days agodrvch: Document config file locations
Michal Privoznik [Fri, 31 Oct 2025 09:45:54 +0000 (10:45 +0100)] 
drvch: Document config file locations

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
7 days agoch: Load ch.conf from SYSCONFDIR
Michal Privoznik [Thu, 23 Oct 2025 13:33:04 +0000 (15:33 +0200)] 
ch: Load ch.conf from SYSCONFDIR

Config files for system instances of our drivers (e.g.
"ch:///system", "qemu:///system", etc.) live under /etc/libvirt.
But for some reason, the CH driver was trying to load the config
file from /var/lib/libvirt/ch/ even though the file is installed
under /etc/libvirt per the following line from src/meson.build:

  install_data(virt_conf_files, install_dir: confdir)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
7 days agodrvch: Demote example section to a subsection
Michal Privoznik [Fri, 31 Oct 2025 09:43:27 +0000 (10:43 +0100)] 
drvch: Demote example section to a subsection

In our drvch.rst there's a section with example XML. Demote it to
a subsection ('-') since the whole document starts with section
('=') and this paragraph is really just a child of the root.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
7 days agodocs: Document supported URIs for CH driver
Michal Privoznik [Fri, 31 Oct 2025 09:39:05 +0000 (10:39 +0100)] 
docs: Document supported URIs for CH driver

Our docs suggest that only session mode is supported for CH
drvier. Well, that's clearly not case. Document the system URI
and refer to other (remote) supported transport modes (yeah, that
works too).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agoUpdate translation files
Weblate [Wed, 29 Oct 2025 12:04:57 +0000 (12:04 +0000)] 
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
9 days agopo: Refresh potfile for v11.9.0 v11.9.0-rc1
Jiri Denemark [Wed, 29 Oct 2025 11:59:52 +0000 (12:59 +0100)] 
po: Refresh potfile for v11.9.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9 days agodomain_conf: Avoid memory leak in virDomainMemoryDefFree()
Michal Privoznik [Wed, 29 Oct 2025 11:43:39 +0000 (12:43 +0100)] 
domain_conf: Avoid memory leak in virDomainMemoryDefFree()

In my one of my recent commits I've introduced new member to
virDomainMemoryDef struct. While allocated in
virDomainMemoryDefParseXML() its counterpart for freeing is
missing in virDomainMemoryDefFree(). Add it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
9 days agoNEWS: Document virtio options for memory models
Michal Privoznik [Mon, 27 Oct 2025 14:55:21 +0000 (15:55 +0100)] 
NEWS: Document virtio options for memory models

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agoqemu_command: Generate virtio options for memory device
Michal Privoznik [Mon, 27 Oct 2025 13:28:08 +0000 (14:28 +0100)] 
qemu_command: Generate virtio options for memory device

Thanks to previous refactors (namely v11.1.0-rc1~142) this is
trivial. There's all the infrastructure needed to generate virtio
options onto cmd line, all that's left to do is set a pointer to
appropriate struct member.

Resolves: https://issues.redhat.com/browse/RHEL-7493
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agoconf: Introduce virtio options for virtio memory models
Michal Privoznik [Mon, 27 Oct 2025 10:38:57 +0000 (11:38 +0100)] 
conf: Introduce virtio options for virtio memory models

Both virtio-mem and virtio-pmem memory models are virtio devices
and as such support setting various virtio knobs (iommu, ats,
packed, page_per_vq) common to other virtio devices.

Introduce <driver/> element as a child to <memory/> element, just
like we do for other virtio devices, where aforementioned knobs
live.

NB, this is without docs changes, since we do not document which
virtio devices support these knobs and each one is already
documented.

Also, the virtio-options.xml test needed some additional
adjustment (apart from adding virtio-mem device) to enable memory
hotplug.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agoqemu: Use virDomainMemoryIsVirtioModel()
Michal Privoznik [Mon, 27 Oct 2025 14:05:47 +0000 (15:05 +0100)] 
qemu: Use virDomainMemoryIsVirtioModel()

Instead of having these big switch()-es that enumerate all memory
models (but act only on virtio models), let's use
virDomainMemoryIsVirtioModel() helper instead.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agoconf: Introduce virDomainMemoryIsVirtioModel()
Michal Privoznik [Mon, 27 Oct 2025 13:54:15 +0000 (14:54 +0100)] 
conf: Introduce virDomainMemoryIsVirtioModel()

The aim is to return true for memory models that are virtio
devices (virtio-mem and virtio-pmem) and false for everything
else.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agodomain_conf: Switch to virXMLFormatElement() in virDomainMemoryDefFormat()
Michal Privoznik [Mon, 27 Oct 2025 10:42:30 +0000 (11:42 +0100)] 
domain_conf: Switch to virXMLFormatElement() in virDomainMemoryDefFormat()

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agodomain_conf: Make virDomainMemoryDefFormat() return void
Michal Privoznik [Mon, 27 Oct 2025 10:55:46 +0000 (11:55 +0100)] 
domain_conf: Make virDomainMemoryDefFormat() return void

The only thing that's possibly making virDomainMemoryDefFormat()
fail is call to virDomainMemorySourceDefFormat() but that always
returns zero. Make both functions return void so callers are not
confused.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9 days agobhyve: support specifying disk rotation rate
Roman Bogorodskiy [Sat, 25 Oct 2025 11:47:15 +0000 (13:47 +0200)] 
bhyve: support specifying disk rotation rate

Bhyve supports specifying disk rotation rate using the nmrr attribute,
e.g.:

 -s 3:0,ahci,hd:/data/img/freebsd.img,nmrr=1

Where 1 means the SSD, 0 (default) means do not report, and other values
specify the actual RPM.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
9 days agobhyve: nvme: check if NVMe is supported by bhyve
Roman Bogorodskiy [Sat, 25 Oct 2025 08:15:58 +0000 (10:15 +0200)] 
bhyve: nvme: check if NVMe is supported by bhyve

For domains using NVMe disks make sure that the bhyve binary supports
that by checking capabilities.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
9 days agobhyve: do not allow more than one NVMe device per controller
Roman Bogorodskiy [Sat, 25 Oct 2025 08:15:57 +0000 (10:15 +0200)] 
bhyve: do not allow more than one NVMe device per controller

As bhyve does not have explicit notion of controllers, and for NVMe
devices it allows to specify one a single source for for a given PCI
address, it effectively means that there could be only one device per
controller.

Update validation code to check this case.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
9 days agobhyve: tests: cover 2 NVMe devices on 2 controllers case
Roman Bogorodskiy [Sat, 25 Oct 2025 08:15:56 +0000 (10:15 +0200)] 
bhyve: tests: cover 2 NVMe devices on 2 controllers case

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
9 days agobhyve: implement NVMe device support
Roman Bogorodskiy [Sat, 25 Oct 2025 08:15:55 +0000 (10:15 +0200)] 
bhyve: implement NVMe device support

NVMe devices in bhyve are modeled this way:

 -s $pciaddr,nvme,devpath[,opts]

devpath can be a path to the image or the block device. It also can be
"ram=size_in_MiB", but this is not covered by this series.

There could be only a single device per PCI address.

Optional configuration options (such as max number of queues, concurrent
I/O requests, etc) are also not covered by this series.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
9 days agoTranslated using Weblate (Italian)
Salvatore Cocuzza [Wed, 29 Oct 2025 09:07:00 +0000 (09:07 +0000)] 
Translated using Weblate (Italian)

Currently translated at 33.6% (3694 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/it/

Signed-off-by: Salvatore Cocuzza <info@salvatorecocuzza.it>
9 days agoTranslated using Weblate (Spanish)
Fco. Javier F. Serrador [Wed, 29 Oct 2025 09:06:59 +0000 (09:06 +0000)] 
Translated using Weblate (Spanish)

Currently translated at 79.1% (8677 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/es/

Signed-off-by: "Fco. Javier F. Serrador" <fserrador@gmail.com>
9 days agoTranslated using Weblate (Finnish)
Ricky Tigg [Wed, 29 Oct 2025 09:06:59 +0000 (09:06 +0000)] 
Translated using Weblate (Finnish)

Currently translated at 22.2% (2437 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/fi/

Signed-off-by: Ricky Tigg <ricky.tigg@gmail.com>
9 days agoTranslated using Weblate (Russian)
Sergey A [Wed, 29 Oct 2025 09:06:58 +0000 (09:06 +0000)] 
Translated using Weblate (Russian)

Currently translated at 82.3% (9029 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/ru/

Signed-off-by: "Sergey A." <Ser82-png@yandex.ru>
9 days agoTranslated using Weblate (Portuguese)
Américo Monteiro [Wed, 29 Oct 2025 09:06:58 +0000 (09:06 +0000)] 
Translated using Weblate (Portuguese)

Currently translated at 97.5% (10692 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 97.4% (10687 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 97.0% (10642 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 96.3% (10562 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 96.1% (10545 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 95.4% (10462 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 95.2% (10445 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 94.5% (10362 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 94.0% (10307 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 93.3% (10230 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 93.0% (10199 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 92.2% (10117 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 92.0% (10090 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 91.3% (10013 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 91.0% (9979 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 90.5% (9926 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 90.3% (9902 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
Translated using Weblate (Portuguese)

Currently translated at 89.3% (9797 of 10962 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/pt/

Signed-off-by: Américo Monteiro <a_monteiro@gmx.com>
9 days agoqemuDomainBlocksStatsGather: Fix blockstats gathering after refactor
Peter Krempa [Tue, 28 Oct 2025 16:13:17 +0000 (17:13 +0100)] 
qemuDomainBlocksStatsGather: Fix blockstats gathering after refactor

Commit 58aa005f3e95114 which refactored how block stats are stored
intended to change the code path where stats for all devices are totaled
together by allocating new stats object and using that but the commit
forgot to actually change the pointers inside the loop.

Unfortunately this was not caught by the compiler as there were
pre-existing pointers of the same type with the same name, which
resulted into a NULL dereference.

Fixes: 58aa005f3e95114b4f2dab76ee4ade06182a3f20
Closes: https://gitlab.com/libvirt/libvirt/-/issues/827
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
13 days agoconf: never reject <disk> <seclabel relabel='no'> overrides
Cole Robinson [Tue, 14 Oct 2025 17:41:45 +0000 (13:41 -0400)] 
conf: never reject <disk> <seclabel relabel='no'> overrides

Trying to disable <seclabel> for the whole <domain> and _also_
disable <seclabel> at the <disk> level will fail with:

  error: unsupported configuration: label overrides require relabeling to be enabled at the domain level

which seems wrong. Instead skip the validation when disk seclabel
has relabel='no', that config should always be valid.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2 weeks agoNEWS: ch: announce network hotplug feature
Stefan Kober [Mon, 6 Oct 2025 15:18:11 +0000 (17:18 +0200)] 
NEWS: ch: announce network hotplug feature

On-behalf-of: SAP stefan.kober@sap.com
Signed-off-by: Stefan Kober <stefan.kober@cyberus-technology.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 weeks agoch: implement network device hot detach
Stefan Kober [Mon, 6 Oct 2025 15:18:10 +0000 (17:18 +0200)] 
ch: implement network device hot detach

On-behalf-of: SAP stefan.kober@sap.com
Signed-off-by: Stefan Kober <stefan.kober@cyberus-technology.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 weeks agoch: implement network device hot attach
Stefan Kober [Mon, 6 Oct 2025 15:18:09 +0000 (17:18 +0200)] 
ch: implement network device hot attach

On-behalf-of: SAP stefan.kober@sap.com
Signed-off-by: Stefan Kober <stefan.kober@cyberus-technology.de>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 weeks agoch: add net device alias assignment
Stefan Kober [Mon, 6 Oct 2025 15:18:08 +0000 (17:18 +0200)] 
ch: add net device alias assignment

On-behalf-of: SAP stefan.kober@sap.com
Signed-off-by: Stefan Kober <stefan.kober@cyberus-technology.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 weeks agoapparmor: Allow AMD-SEV device access for AMD-SEV VM
Hector Cao [Tue, 14 Oct 2025 15:28:34 +0000 (17:28 +0200)] 
apparmor: Allow AMD-SEV device access for AMD-SEV VM

AMD-SEV virtual machines interact with the underlying
AMD-SEV technology through the character device /dev/sev.
Currently, the AppArmor profile does not include the rule
required to allow this access.

There are two main approaches to address this limitation:

1) Add the required rule to the libvirt-qemu abstraction.
2) Dynamically add the rule only when the VM is an AMD-SEV
   guest.

Since AMD-SEV guests represent a niche use case, it is more
appropriate to apply the rule dynamically rather than granting
access to all VMs through a global abstraction change.

This commit implements option (2) by modifying the virt-aa-helper
binary to insert the necessary rule into the AppArmor dynamic
profile when the VM is identified as an AMD-SEV guest.

The added entry in the generated libvirt-<uuid>.files file
will look like:

  ...
  "/dev/sev" rw,
  ...

Signed-off-by: Hector Cao <hector.cao@canonical.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 weeks agoqemu: Drop /dev/kvm from default device ACL
Praveen K Paladugu [Wed, 22 Oct 2025 15:54:37 +0000 (10:54 -0500)] 
qemu: Drop /dev/kvm from default device ACL

A domain that runs with TCG emulation does not need kvm device, so drop
it from default device ACL.

Dynamically grant access to /dev/kvm based on domain type.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>