Re: Invoke QMP commands using native libvirt API

2025-04-21 Thread Michal Prívozník via Devel
On 4/18/25 14:55, Blade Liu wrote: > Hi all, > > I have a problem to execute qmp commands via qemu guest agent using > libvirt-Python. In libivrt and qemu tutorial, qmp commands are invoked > by terminal. In my project, I want to invoke the commands natively using > libvirt-Python API, not using

[PATCH 4/4] docs: add description for USB port matching

2025-04-21 Thread Maximilian Martin via Devel
From: Maximilian Martin Adds documentation for the new USB bus/port addressing. The new "port" attribute is explained. Signed-off-by: Maximilian Martin --- docs/formatdomain.rst | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/docs/formatdomai

[PATCH 2/4] domain_conf, virhostdev, virusb, virusb test: add bus/port matching

2025-04-21 Thread Maximilian Martin via Devel
From: Maximilian Martin This patch implements USB bus/port matching. In addition to vendor/product and bus/device matching, bus/port matching is implemented. This involves additions and refactorings in the domain configuration, host device handling, and USB helpers. Also, test methods are refacto

[PATCH 0/4] USB hostdev: allow addressing by port

2025-04-21 Thread Maximilian Martin via Devel
This resubmission splits up the previous patch into multiple patches and incorporates review comments from Michal Prívozník. Currently, only vendor/product and bus/device matching are supported for USB host devices. Neither of these provide a stable and persistent way of assigning a guest a spec

[PATCH 1/4] virusb test data: add devpath files for port addressing

2025-04-21 Thread Maximilian Martin via Devel
From: Maximilian Martin This patch adds devpath files to the virusb test data. These files are mockups for the USB sysfs files that contain the port of a USB device in dotted notation. They are used for testing of USB bus/port matching. Signed-off-by: Maximilian Martin --- tests/virusbtestdata

[PATCH 3/4] schema: add USB port attribute

2025-04-21 Thread Maximilian Martin via Devel
From: Maximilian Martin Adds USB bus/port addressing the domain XML file schema. Optionally, the physical USB port can be declared instead of the USB device address. Signed-off-by: Maximilian Martin --- src/conf/schemas/domaincommon.rng | 11 --- 1 file changed, 8 insertions(+), 3 dele

Question about SEV* guests and automatic firmware selection

2025-04-21 Thread Jim Fehlig via Devel
Hi All, While investigating an internal bug report, we noticed that a minimal firmware auto-selection configuration along with SEV* fails to find a match. E.g. the following config hvm 0x07 ... Fails with "Unable to find 'efi' firmware that is compatible with the c