From: Marc-André Lureau
By default, libvirt will start a private bus and tell QEMU to connect to
it. Instead, a D-Bus "address" to connect to can be specified, or the
p2p mode enabled.
D-Bus display works best with GL & a rendernode, which can be specified
with child element.
Signed-off-by: Ma
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
src/qemu/qemu_capabilities.c | 2 ++
src/qemu/qemu_capabilities.h | 1 +
tests/qemucapabilitiesdata/caps_6.2.0.x86_64.replies | 10 +-
tests/qemucapabilitiesdata/caps_6.2.0.x86
From: Marc-André Lureau
Start the daemon if necessary (it is already stopped in qemuProcessStop)
Signed-off-by: Marc-André Lureau
---
src/qemu/qemu_extdevice.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c
index 537b130
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
src/qemu/qemu_capabilities.c | 2 ++
src/qemu/qemu_capabilities.h | 1 +
tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml | 1 +
tests/qemucapabilitiesdata/caps_6.2.0.aarch64.xml | 1 +
tests
From: Marc-André Lureau
Hi,
This series implements supports for the upcoming QEMU "-display dbus" support.
Development is still in progress, but I hope to land the QEMU support early in
6.3 (last version posted:
https://patchew.org/QEMU/20211009210838.2219430-1-marcandre.lur...@redhat.com/).
By
On a Wednesday in 2021, Daniel P. Berrangé wrote:
The run script tries to detect when a daemon is being run in order to
shutdown other systemd unit files that clash. As implemented this
only works if the daemon name is the first argument. This won't be the
case if running via GDB or strace eg
.
On a Wednesday in 2021, Daniel P. Berrangé wrote:
The domain capabilities won't report TPM support unless SWTPM can be
initialized. To avoid relying on the swtpm install in the host, mock
the entire initialization method, since all it needs todo is return
a non-error value.
Signed-off-by: Daniel
On a Wednesday in 2021, Daniel P. Berrangé wrote:
This reports what TPM features QEMU supports, provided that swtpm is
installed in the host.
Signed-off-by: Daniel P. Berrangé
---
src/qemu/qemu_capabilities.c | 34 +++
src/qemu/qemu_capabilities.h
On a Wednesday in 2021, Daniel P. Berrangé wrote:
This adds reporting of available TPM models and backends to the domain
capabilities schema
Signed-off-by: Daniel P. Berrangé
---
docs/schemas/domaincaps.rng| 10 ++
src/conf/domain_capabilities.c | 14 ++
src/conf/domain_ca
On a Wednesday in 2021, Daniel P. Berrangé wrote:
The QEMU domain capabilities code wants to quietly know whether swtpm is
available on the host.
Signed-off-by: Daniel P. Berrangé
---
src/libvirt_private.syms | 1 +
src/util/virtpm.c| 45 +---
src/util
On a Wednesday in 2021, Daniel P. Berrangé wrote:
Many methods merely want to know that the swtpm binaries have been
found, and don't care about probing for capabilities. Even when
starting a guest, the QEMU driver may not need the capabilities.
Skipping probing ensures the VM startup path is as
On a Wednesday in 2021, Daniel P. Berrangé wrote:
The virTPMEmulatorInit method updates various global variables
and holds a lock while doing so. Other methods which access
these variables, however, don't reliably hold locks over all
of their accesses.
Since virTPMEmulatorInit is no longer expor
On a Wednesday in 2021, Daniel P. Berrangé wrote:
Every other exportd API from virtpm.h will internally call
*exported
virTPMEmulatorInit, so there is no reason for this initializer
to be exported on its own.
Signed-off-by: Daniel P. Berrangé
---
src/libvirt_private.syms | 1 -
src/qemu/qemu
On a Wednesday in 2021, Daniel P. Berrangé wrote:
The virTPMEmulatorInit function defines a struct that gets filled with
pointers to global variables. It will be simpler to just use the struct
for the global variables directly.
Signed-off-by: Daniel P. Berrangé
---
src/util/virtpm.c | 121 +
On a Wednesday in 2021, Daniel P. Berrangé wrote:
The TPM helper methods for querying the binary path and capabilities
have the same patterns across all swtpm binaries. This code duplication
can be reduced by introducing helper methods.
s/duplicationm/duplication/ in the commit summary
Signe
On a Wednesday in 2021, Daniel P. Berrangé wrote:
Best practice is to have all types use a naming convention based on the
filename.
Signed-off-by: Daniel P. Berrangé
---
src/util/virtpm.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
Reviewed-by: Ján Tomko
Jan
On a Wednesday in 2021, Daniel P. Berrangé wrote:
Use a '_path' suffix on all vars which are paths.
Signed-off-by: Daniel P. Berrangé
---
src/util/virtpm.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
Reviewed-by: Ján Tomko
Jano
signature.asc
Description: PGP sig
The run script tries to detect when a daemon is being run in order to
shutdown other systemd unit files that clash. As implemented this
only works if the daemon name is the first argument. This won't be the
case if running via GDB or strace eg
./run strace -e trace=openat ./build/src/virtqemud
The domain capabilities won't report TPM support unless SWTPM can be
initialized. To avoid relying on the swtpm install in the host, mock
the entire initialization method, since all it needs todo is return
a non-error value.
Signed-off-by: Daniel P. Berrangé
---
tests/domaincapsdata/qemu_2.11.0-
Many methods merely want to know that the swtpm binaries have been
found, and don't care about probing for capabilities. Even when
starting a guest, the QEMU driver may not need the capabilities.
Skipping probing ensures the VM startup path is as fast as possible
when capabilities are not required
This adds reporting of available TPM models and backends to the domain
capabilities schema
Signed-off-by: Daniel P. Berrangé
---
docs/schemas/domaincaps.rng| 10 ++
src/conf/domain_capabilities.c | 14 ++
src/conf/domain_capabilities.h | 10 ++
3 files changed, 34
Every other exportd API from virtpm.h will internally call
virTPMEmulatorInit, so there is no reason for this initializer
to be exported on its own.
Signed-off-by: Daniel P. Berrangé
---
src/libvirt_private.syms | 1 -
src/qemu/qemu_tpm.c | 6 --
src/util/virtpm.c| 4 +++-
src/u
This reports what TPM features QEMU supports, provided that swtpm is
installed in the host.
Signed-off-by: Daniel P. Berrangé
---
src/qemu/qemu_capabilities.c | 34 +++
src/qemu/qemu_capabilities.h | 3 ++
.../domaincapsdata/qemu_2.11.0-q35.x86_
The virTPMEmulatorInit function defines a struct that gets filled with
pointers to global variables. It will be simpler to just use the struct
for the global variables directly.
Signed-off-by: Daniel P. Berrangé
---
src/util/virtpm.c | 121 ++
1 file c
The QEMU domain capabilities code wants to quietly know whether swtpm is
available on the host.
Signed-off-by: Daniel P. Berrangé
---
src/libvirt_private.syms | 1 +
src/util/virtpm.c| 45 +---
src/util/virtpm.h| 2 ++
3 files changed, 36 ins
The TPM helper methods for querying the binary path and capabilities
have the same patterns across all swtpm binaries. This code duplication
can be reduced by introducing helper methods.
Signed-off-by: Daniel P. Berrangé
---
src/util/virtpm.c | 53 ---
The virTPMEmulatorInit method updates various global variables
and holds a lock while doing so. Other methods which access
these variables, however, don't reliably hold locks over all
of their accesses.
Since virTPMEmulatorInit is no longer exported, we can push
the locking up into all the callers
Best practice is to have all types use a naming convention based on the
filename.
Signed-off-by: Daniel P. Berrangé
---
src/util/virtpm.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/util/virtpm.c b/src/util/virtpm.c
index d5d80aa9dc..1a34f8ce56
Use a '_path' suffix on all vars which are paths.
Signed-off-by: Daniel P. Berrangé
---
src/util/virtpm.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/util/virtpm.c b/src/util/virtpm.c
index 2c0dd707b0..d5d80aa9dc 100644
--- a/src/util/virtpm.c
+++ b/s
If we can report whuether TPM is available, then mgmt apps can enable it
by default for new VMs. This is important because OS like Win11 consider
TPM to be mandatory.
In v2:
- Avoid triggering reporting of errors when querying caps
- Only skip reporting of emulator backend when swtpm is
m
SmartNIC DPUs may not expose some privileged eswitch operations
to the hypervisor hosts. For example, this happens with Bluefield
devices running in the ECPF (default) mode [1] for security reasons. While
VF MAC address programming is possible via an RTM_SETLINK operation,
trying to set a VLAN ID i
SmartNIC DPUs may not expose some privileged eswitch operations
to the hypervisor hosts. For example, this happens with Bluefield
devices running in the ECPF (default) mode for security reasons. While
VF MAC address programming is possible via an RTM_SETLINK operation,
trying to set a VLAN ID in th
On Fri, 2021-11-05 at 16:30 +0100, Michal Prívozník wrote:
> On 11/4/21 5:27 PM, Tim Wiederhake wrote:
> > Signed-off-by: Tim Wiederhake
> > ---
> > src/cpu/cpu_x86.c | 69
> > +++
> > 1 file changed, 69 insertions(+)
> >
> > diff --git a/src/cpu/cpu_x
On Fri, 2021-11-05 at 16:30 +0100, Michal Prívozník wrote:
> On 11/4/21 5:27 PM, Tim Wiederhake wrote:
> > ... by using virXMLProp*() helpers. These only require a xmlNodePtr
> > and
> > do not need a xmlXPathContextPtr. Reflect that in the function
> > signature.
> >
> > Signed-off-by: Tim Wieder
On 11/4/21 5:27 PM, Tim Wiederhake wrote:
> Many things can affect the availability of cpu features (e.g. software
> upgrades, kernel versions, kernel command line, etc.) and invalidate the
> cached capabilities without notice. Add CPUID information to the
> capabilities cache.
>
> Fixes https://b
On 11/4/21 5:27 PM, Tim Wiederhake wrote:
> Signed-off-by: Tim Wiederhake
> ---
> src/cpu/cpu_x86.c | 69 +++
> 1 file changed, 69 insertions(+)
>
> diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
> index a08ac225ef..5ce193e693 100644
> --- a/src/cp
On 11/4/21 5:27 PM, Tim Wiederhake wrote:
> ... by using virXMLProp*() helpers. These only require a xmlNodePtr and
> do not need a xmlXPathContextPtr. Reflect that in the function signature.
>
> Signed-off-by: Tim Wiederhake
> ---
> src/cpu/cpu_x86.c | 43 +--
Signed-off-by: Tim Wiederhake
---
src/libvirt_private.syms | 1 +
src/util/virhostcpu.c| 43
src/util/virhostcpu.h| 2 ++
3 files changed, 46 insertions(+)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 665db255a6..e92670
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu.c| 21 +
src/cpu/cpu.h| 7 +++
src/libvirt_private.syms | 1 +
3 files changed, 29 insertions(+)
diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c
index 0c1c7902f0..b5669246b4 100644
--- a/src/cpu/cpu.c
+++
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_arm.c | 27 +++
1 file changed, 27 insertions(+)
diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c
index ac174891b7..c9114d53bf 100644
--- a/src/cpu/cpu_arm.c
+++ b/src/cpu/cpu_arm.c
@@ -124,6 +124,32 @@ virCPUarmDataClear(vi
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_arm.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c
index 09ade1d422..ac174891b7 100644
--- a/src/cpu/cpu_arm.c
+++ b/src/cpu/cpu_arm.c
@@ -39,12 +39,11 @@
#include "virxml.h"
#def
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_x86.c | 69 +++
1 file changed, 69 insertions(+)
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index a08ac225ef..5ce193e693 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -3332,6 +3332,74 @@
This makes it possible to call virCPUDataParse with a xmlNodePtr,
which will be required by a later patch.
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu.c| 29 +
src/cpu/cpu.h| 2 ++
src/libvirt_private.syms | 1 +
3 files changed, 24 inserti
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu.c| 28
src/cpu/cpu.h| 9 +
src/libvirt_private.syms | 1 +
3 files changed, 38 insertions(+)
diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c
index b97d06c7d8..0c1c7902f0 100644
--- a/src/cpu/c
The function does not need a full xmlXPathContextPtr any longer and a
later patch will require a call to this function with only a xmlNodePtr
available.
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu.c | 2 +-
src/cpu/cpu.h | 2 +-
src/cpu/cpu_x86.c | 4 ++--
3 files changed, 4 insertions
... by using virXMLProp*() helpers. These only require a xmlNodePtr and
do not need a xmlXPathContextPtr. Reflect that in the function signature.
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_x86.c | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/s
Many things can affect the availability of cpu features (e.g. software
upgrades, kernel versions, kernel command line, etc.) and invalidate the
cached capabilities without notice. Add CPUID information to the
capabilities cache.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1953389.
V1: https
See https://bugzilla.redhat.com/show_bug.cgi?id=1953389.
Signed-off-by: Tim Wiederhake
---
src/qemu/qemu_capabilities.c | 15 ---
src/qemu/qemu_capspriv.h | 3 ++-
tests/qemucapsprobe.c| 2 +-
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu
Many things can affect the availability of cpu flags (e.g. software
upgrades, kernel versions, kernel command line, etc.) and invalidate the
cached capabilities without notice. Add CPUID information to the
capabilities cache.
Signed-off-by: Tim Wiederhake
---
src/qemu/qemu_capabilities.c | 16 ++
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu.c| 19 +++
src/cpu/cpu.h| 7 +++
src/libvirt_private.syms | 1 +
3 files changed, 27 insertions(+)
diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c
index b5669246b4..285c7eee44 100644
--- a/src/cpu/cpu.c
+++ b/
Signed-off-by: Tim Wiederhake
---
src/qemu/qemu_capabilities.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index b2d5242264..5fa3111201 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -4023,6 +
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_x86.c | 40
1 file changed, 40 insertions(+)
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index 0dc9a7d9fb..a72eae07dd 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -20,6 +20,9 @@
#include
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_x86.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index 5ce193e693..0dc9a7d9fb 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -481,6 +481,23 @@ virCPUx86DataClear(virCPUx86Da
... by using virXMLProp*() helpers. These only require a xmlNodePtr and
do not need a xmlXPathContextPtr. Reflect that in the function signature.
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_x86.c | 43 +--
1 file changed, 17 insertions(+), 26 deletions(-
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_arm.c | 20
1 file changed, 20 insertions(+)
diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c
index c9114d53bf..51a3c1f3ee 100644
--- a/src/cpu/cpu_arm.c
+++ b/src/cpu/cpu_arm.c
@@ -150,6 +150,25 @@ virCPUarmDataIsIdentical(con
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_ppc64.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c
index fcd68c8a7c..c7caaa9608 100644
--- a/src/cpu/cpu_ppc64.c
+++ b/src/cpu/cpu_ppc64.c
@@ -603,6 +603,23 @@ virCPUppc64DataIsIde
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_ppc64.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c
index 4909f61ff1..fcd68c8a7c 100644
--- a/src/cpu/cpu_ppc64.c
+++ b/src/cpu/cpu_ppc64.c
@@ -578,6 +578,31 @@ ppc64DriverD
Factor out duplicated code from x86FeatureParse and virCPUx86DataParse.
This also consolidates error messages.
Signed-off-by: Tim Wiederhake
---
src/cpu/cpu_x86.c | 106 ++
1 file changed, 41 insertions(+), 65 deletions(-)
diff --git a/src/cpu/cpu_x86
On 10/29/21 15:57, Dmitrii Shcherbakov wrote:
This patch set improves edge case testing:
* The parser is now more strict about checking boundary conditions when
parsing fields: an invalid field length is a possibility which is
now being accounted for;
* The parser will now make sur
This patch set improves edge case testing:
* The parser is now more strict about checking boundary conditions when
parsing fields: an invalid field length is a possibility which is
now being accounted for;
* The parser will now make sure that RV and RW fields are the last
in their sect
While invalid values need to be ignored when presenting VPD data to the
user, it would be good to attempt to parse a valid portion of the VPD
instead of marking it invalid as a whole.
Based on a mailing list discussion, the set of accepted characters is
extended to the set of printable ASCII chara
The test case should return -1, not 0 in case a valid resource could
not be parsed successfully but the ret value is initialized to 0.
Signed-off-by: Dmitrii Shcherbakov
---
tests/virpcivpdtest.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/virpcivpdtest.c b/tes
* RV and RW fields must be at the last position in their respective
section (per the conditions in the spec). Therefore, the parser now
stops iterating over fields as soon as it encounters one of those
fields and checks whether the end of the resource has been reached;
* The lack of the RW fi
On Wed, Oct 20, 2021 at 03:44:48PM +0200, Ján Tomko wrote:
> On a Wednesday in 2021, Andrea Bolognani wrote:
> > tests: Add replies for QEMU 6.2.0 on aarch64
> > conf: Make virDomainDeviceInfoFormat() const correct
> > qemu: Make qemuBuildDeviceAddressProps() const correct
> > qemu: Make qemuBu
On a Wednesday in 2021, Andrea Bolognani wrote:
The first patch adds QEMU replies and as such has been aggressively
snipped to deal with mailing list message size limits. Grab the
unabriged version with
$ git fetch https://gitlab.com/abologna/libvirt.git virtio-iommu
As noted in patch 10, the
This is needed so that IOMMU devices can have addresses.
Existing IOMMU devices (intel-iommu and SMMUv3) are system
devices and as such don't have an address associated to them, but
virtio-iommu is a PCI device and needs one.
Signed-off-by: Andrea Bolognani
---
docs/schemas/domaincommon.rng | 6
The device is configured to be an integrated endpoint, as is
necessary for it to function correctly.
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_domain_address.c | 6 +-
.../virtio-iommu-aarch64.aarch64-latest.xml | 4 +++-
.../virtio-iommu-
This new flag can be used to convince the PCI address assignment
algorithm to place a device directly on the root bus. It will be
used to implement support for virtio-iommu, which needs to be an
integrated device in order to work correctly.
Signed-off-by: Andrea Bolognani
---
src/conf/domain_add
virtio-iommu doesn't work without ACPI, so we need to make sure
the latter is enabled.
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_validate.c | 6 ++
.../virtio-iommu-no-acpi.x86_64-latest.err| 1 +
tests/qemuxml2argvdata/virtio-iommu-no-acpi.xml |
The altered code is functionally equivalent to the previous one,
but it's already laid down in a way that will make further
changes easier and less messy.
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_command.c| 18 +-
src/qemu/qemu_domain_address.c | 23 +
Signed-off-by: Andrea Bolognani
---
docs/formatdomain.rst | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index 9bf59936e5..ed9fc735a5 100644
--- a/docs/formatdomain.rst
+++ b/docs/formatdomain.rst
@@ -7986,8 +7986,9 @@ Exampl
Signed-off-by: Andrea Bolognani
---
NEWS.rst | 4
1 file changed, 4 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index f3b9e5f0cb..07971a6c42 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -40,6 +40,10 @@ v7.9.0 (unreleased)
domain definition when the guest was first started).This setting i
https://bugzilla.redhat.com/show_bug.cgi?id=1653327
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_command.c | 12 +++-
.../virtio-iommu-aarch64.aarch64-latest.args | 1 +
.../virtio-iommu-x86_64.x86_64-latest.args | 1 +
3 files change
These represent valid uses of the device.
Signed-off-by: Andrea Bolognani
---
.../virtio-iommu-aarch64.aarch64-latest.args | 34 +++
.../qemuxml2argvdata/virtio-iommu-aarch64.xml | 20 +++
.../virtio-iommu-x86_64.x86_64-latest.args| 30
.../qemuxml2a
virtio-iommu needs to be an integrated device, and our address
assignment code will make sure that is the case. If the user has
provided an explicit address, however, we should make sure any
addresses pointing to a different bus are rejected.
Signed-off-by: Andrea Bolognani
---
...io-iommu-inval
virtio-iommu is a PCI device and attempts to use a different
address type should be rejected.
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_validate.c | 7 +++
...mmu-invalid-address-type.x86_64-latest.err | 1 +
.../virtio-iommu-invalid-address-type.xml | 20 +
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_validate.c | 8
.../qemuxml2argvdata/virtio-iommu-x86_64.x86_64-6.1.0.err | 1 +
tests/qemuxml2argvtest.c | 1 +
3 files changed, 10 insertions(+)
create mode 100644 tests
This will make it possible to limit changes to a single spot
later on, and is also just an overall nicer way to create and
destroy objects.
Signed-off-by: Andrea Bolognani
---
src/conf/domain_conf.c | 29 +
src/conf/domain_conf.h | 3 +++
2 files changed, 28 insertio
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_validate.c | 8
...irtio-iommu-wrong-machine.x86_64-latest.err | 1 +
.../virtio-iommu-wrong-machine.xml | 18 ++
tests/qemuxml2argvtest.c | 1 +
4 files changed,
Signed-off-by: Andrea Bolognani
---
docs/schemas/domaincommon.rng | 1 +
src/conf/domain_conf.c | 1 +
src/conf/domain_conf.h | 1 +
src/qemu/qemu_command.c| 4
src/qemu/qemu_domain_address.c | 6 ++
src/qemu/qemu_validate.c | 3 +++
6 files changed, 16 ins
This capability detects the availability of the boot-bypass
property of the virtio-iommu-pci device.
This property was only introduced in QEMU 6.2 but, since the
device has been around for much longer, we end up querying its
properties for several more releases. As I don't have convenient
access t
This involves a bit of a hack, but is overall preferable to
forcing callers to pass non-const devdata as argument.
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_command.c | 14 +-
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qem
This capability detects the availability of the virtio-iommu-pci
device.
Note that, while this device is present even in somewhat old
versions of QEMU, it's only some recent changes that made it
actually usable for our purposes.
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_capabilities.c
There doesn't seem to be a reason for IOMMUs not to be handled
by this function.
Signed-off-by: Andrea Bolognani
---
src/conf/domain_conf.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index a3f0a27058..0618343b79 100644
Signed-off-by: Andrea Bolognani
---
src/conf/domain_addr.c | 4 ++--
src/conf/domain_addr.h | 4 ++--
src/conf/domain_conf.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c
index 53b39923e8..fe6520cf3a 100644
--- a/src/conf/do
The first patch adds QEMU replies and as such has been aggressively
snipped to deal with mailing list message size limits. Grab the
unabriged version with
$ git fetch https://gitlab.com/abologna/libvirt.git virtio-iommu
As noted in patch 10, the QEMU feature this series enables has not
yet bee
Signed-off-by: Andrea Bolognani
---
src/qemu/qemu_command.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 1084f5acc7..035943fa96 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -359,7 +359,7
These were generated using a QEMU binary built from commit
v6.1.0-1552-g362534a643
Notably, this causes the arguments of -device to be generated
in JSON format.
Signed-off-by: Andrea Bolognani
---
.../qemu_6.2.0-virt.aarch64.xml | 184 +
tests/domaincapsdata/qemu_6.2.0.aarch64.x
On Thu, Oct 07, 2021 at 12:36:14PM +0200, Jiri Denemark wrote:
> On Thu, Oct 07, 2021 at 11:09:19 +0100, Daniel P. Berrangé wrote:
> > On Thu, Oct 07, 2021 at 11:53:00AM +0200, Jiri Denemark wrote:
> > > On Thu, Oct 07, 2021 at 10:05:12 +0100, Daniel P. Berrangé wrote:
> > > > The -cpu arg gained s
On Thu, Oct 07, 2021 at 11:09:19 +0100, Daniel P. Berrangé wrote:
> On Thu, Oct 07, 2021 at 11:53:00AM +0200, Jiri Denemark wrote:
> > On Thu, Oct 07, 2021 at 10:05:12 +0100, Daniel P. Berrangé wrote:
> > > The -cpu arg gained support for feature=on|off syntax for the x86
> > > emulator in 2.4.0
>
On Thu, Oct 07, 2021 at 11:53:00AM +0200, Jiri Denemark wrote:
> On Thu, Oct 07, 2021 at 10:05:12 +0100, Daniel P. Berrangé wrote:
> > The -cpu arg gained support for feature=on|off syntax for the x86
> > emulator in 2.4.0
> >
> > commit 38e5c119c2925812bd441450ab9e5e00fc79e662
> > Author: Edu
On Thu, Oct 07, 2021 at 10:05:12 +0100, Daniel P. Berrangé wrote:
> The -cpu arg gained support for feature=on|off syntax for the x86
> emulator in 2.4.0
>
> commit 38e5c119c2925812bd441450ab9e5e00fc79e662
> Author: Eduardo Habkost
> Date: Mon Mar 23 17:29:32 2015 -0300
>
> target-i3
Some CPU features are still added using implicit syntax "feature"
which is a deprecated shorthand for "feature=on".
Reviewed-by: Peter Krempa
Signed-off-by: Daniel P. Berrangé
---
src/qemu/qemu_command.c | 6 +++---
tests/qemuxml2argvdata/clock-timer-hyperv-r
Given our min QEMU, it doesn't seem like we need to support either
the old "-feature" / "+feature" syntax, nor the bare "feature"
syntax.
v2:
- Now with cpu name compatibility retained
Daniel P. Berrangé (2):
qemu: remove use of (+|-)name syntax for -cpu featres
qemu: remove use of implici
The -cpu arg gained support for feature=on|off syntax for the x86
emulator in 2.4.0
commit 38e5c119c2925812bd441450ab9e5e00fc79e662
Author: Eduardo Habkost
Date: Mon Mar 23 17:29:32 2015 -0300
target-i386: Register QOM properties for feature flags
Most other targets gained this synt
On Wed, Sep 15, 2021 at 08:21:13AM -0500, Jonathon Jongsma wrote:
> Add news item about the new API for node devices.
>
> Signed-off-by: Jonathon Jongsma
> ---
> NEWS.rst | 12
> 1 file changed, 12 insertions(+)
>
> diff --git a/NEWS.rst b/NEWS.rst
> index 4521499db7..fd20e50d18 10
Add news item about the new API for node devices.
Signed-off-by: Jonathon Jongsma
---
NEWS.rst | 12
1 file changed, 12 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index 4521499db7..fd20e50d18 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -17,6 +17,18 @@ v7.8.0 (unreleased)
* **New
On Tue, Sep 14, 2021 at 03:28:12PM +0200, Tim Wiederhake wrote:
>
> Adding G_GNUC_UNUSED at the usage sites (of which there will be a
> couple hundred), will disable unused variable detection irregardless of
> used compiler, just to work around a bug in one single compiler.
AFAIK, there is /no/ u
On Tue, Sep 14, 2021 at 03:28:06PM +0200, Tim Wiederhake wrote:
> On Fri, 2021-09-10 at 14:35 +0200, Ján Tomko wrote:
> > On a Friday in 2021, Tim Wiederhake wrote:
> > > Workaround for a bug in clang. Clang emits an unused-variable warning
> > > if the variable is only accessed on scope exit by a
On Fri, 2021-09-10 at 14:35 +0200, Ján Tomko wrote:
> On a Friday in 2021, Tim Wiederhake wrote:
> > Workaround for a bug in clang. Clang emits an unused-variable warning
> > if the variable is only accessed on scope exit by a destructor
> > function.
> > Note that gcc does not exhibit this behavio
901 - 1000 of 20303 matches
Mail list logo