]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
4 years agovirXMLPropEnum: Always initialize '@result'
Peter Krempa [Thu, 6 May 2021 12:35:22 +0000 (14:35 +0200)]
virXMLPropEnum: Always initialize '@result'

Compilers aren't able to see whether @result is set or not and thus
don't warn of a potential use of uninitialized value. Always set @result
to prevent uninitialized use.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: domain: Convert virXMLPropEnum to virXMLPropEnumDefault where we set defaults
Peter Krempa [Thu, 6 May 2021 15:10:24 +0000 (17:10 +0200)]
conf: domain: Convert virXMLPropEnum to virXMLPropEnumDefault where we set defaults

There are few cases where we set a default value when using
virXMLPropEnum which can be converted to virXMLPropEnumDefault.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoutil: xml: Introduce virXMLPropEnumDefault
Peter Krempa [Thu, 6 May 2021 15:09:45 +0000 (17:09 +0200)]
util: xml: Introduce virXMLPropEnumDefault

The helper is almost identical to virXMLPropEnum but it allows to pass a
default value to initialize the result to.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainVideoDefParseXML: Fix parsing of 'backend'
Peter Krempa [Thu, 6 May 2021 15:02:50 +0000 (17:02 +0200)]
virDomainVideoDefParseXML: Fix parsing of 'backend'

Commit 8391cfbc2dbc converted the code to use virXMLPropEnum unfaithfully
ommitting the check where 'backend' must be non-zero when parsed from the
user.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainAudioCommonParse: Fix parsing of 'format'
Peter Krempa [Thu, 6 May 2021 15:02:50 +0000 (17:02 +0200)]
virDomainAudioCommonParse: Fix parsing of 'format'

Commit 38180f87f5b converted the code to use virXMLPropEnum unfaithfully
ommitting the check where 'format' must be non-zero when parsed from the
user.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirXMLPropTristateSwitch: Always initialize '@result'
Peter Krempa [Thu, 6 May 2021 12:35:22 +0000 (14:35 +0200)]
virXMLPropTristateSwitch: Always initialize '@result'

Compilers aren't able to see whether @result is set or not and thus
don't warn of a potential use of uninitialized value. Always set @result
to prevent uninitialized use.

In two cases the code needed to be adjusted to preserve functionality.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: domain: Don't initialize virTristateBool local variables used for virXMLPropTri...
Peter Krempa [Thu, 6 May 2021 14:22:41 +0000 (16:22 +0200)]
conf: domain: Don't initialize virTristateBool local variables used for virXMLPropTristateBool

virXMLPropTristateBool already initializes the value to
VIR_TRISTATE_BOOL_ABSENT so we no longer need to do that for certain
local variables.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirXMLPropTristateBool: Always initialize '@result'
Peter Krempa [Thu, 6 May 2021 12:35:22 +0000 (14:35 +0200)]
virXMLPropTristateBool: Always initialize '@result'

Compilers aren't able to see whether @result is set or not and thus
don't warn of a potential use of uninitialized value. Always set @result
to prevent uninitialized use.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainBackupDiskDefParseXML: Fill default backup state after parsing it
Peter Krempa [Thu, 6 May 2021 14:01:32 +0000 (16:01 +0200)]
virDomainBackupDiskDefParseXML: Fill default backup state after parsing it

Set the backup mode to VIR_TRISTATE_BOOL_YES after virXMLPropTristateBool
left it set to VIR_TRISTATE_BOOL_ABSENT. This will allow fixing
virXMLPropTristateBool to always initialize @result.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirXMLPropInt: Always initialize '@result'
Peter Krempa [Thu, 6 May 2021 12:35:22 +0000 (14:35 +0200)]
virXMLPropInt: Always initialize '@result'

Compilers aren't able to see whether @result is set or not and thus
don't warn of a potential use of uninitialized value. Always set @result
to prevent uninitialized use.

This is done by adding a @defaultResult argument to virXMLPropInt since
many places have a non-0 default.

In certain cases such as in virDomainControllerDefParseXML we pass the
value from the original value, which will still trigger compiler checks
if unused while preserving the existing functionality of keeping the
previous value.

This commit fixes 3 uses of uninitialized value parsed by this function:
 in virDomainDiskSourceNetworkParse introduced by 38dc25989c5
 in virDomainChrSourceDefParseTCP introduced by fa48004af5b
 in virDomainGraphicsListenDefParseXML introduced by 0b20fd3754c

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainIOThreadIDDefParseXML: Refactor cleanup
Peter Krempa [Thu, 6 May 2021 12:15:31 +0000 (14:15 +0200)]
virDomainIOThreadIDDefParseXML: Refactor cleanup

Automatically free 'iothrid' and remove all the cleanup cruft.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: Define autoptr func for virDomainIOThreadIDDef
Peter Krempa [Thu, 6 May 2021 12:14:10 +0000 (14:14 +0200)]
conf: Define autoptr func for virDomainIOThreadIDDef

Register virDomainIOThreadIDDefFree to do the cleanup.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirXMLPropUInt: Always initialize @result
Peter Krempa [Thu, 6 May 2021 12:00:16 +0000 (14:00 +0200)]
virXMLPropUInt: Always initialize @result

Compilers aren't able to see whether @result is set or not and thus
don't warn of a potential use of uninitialized value. Always set @result
to prevent uninitialized use.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainDiskDefDriverParseXML: Fix usage of virXMLPropUInt
Peter Krempa [Thu, 6 May 2021 13:08:44 +0000 (15:08 +0200)]
virDomainDiskDefDriverParseXML: Fix usage of virXMLPropUInt

VIR_XML_PROP_NONE has value of 0 so it's pointless to include it in an
binary-or expression.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainVcpuParse: Assign default vcpus count based on return value of virXMLPropUInt
Peter Krempa [Thu, 6 May 2021 13:07:04 +0000 (15:07 +0200)]
virDomainVcpuParse: Assign default vcpus count based on return value of virXMLPropUInt

Assign the vcpu count when virXMLPropUInt returns '0' meaning that the
cpu count was not present in the XML. This will allow to always
initialize the value of @result in virXMLPropUInt to prevent use of
uninitialized values.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirXMLPropULongLong: Always initialize @result
Peter Krempa [Thu, 6 May 2021 12:00:16 +0000 (14:00 +0200)]
virXMLPropULongLong: Always initialize @result

Compilers aren't able to see whether @result is set or not and thus
don't warn of a potential use of uninitialized value. Always set @result
to prevent uninitialized use.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoutil: xml: Extract implementation of xml property -> enum parsing to a common helper
Peter Krempa [Thu, 6 May 2021 11:53:18 +0000 (13:53 +0200)]
util: xml: Extract implementation of xml property -> enum parsing to a common helper

virXMLPropTristateBool/virXMLPropTristateSwitch/virXMLPropEnum can be
implemented using the same internal code. Extract it into a new function
called virXMLPropEnumInternal, which will also simplify adding versions
of these functions with a custom default value.

This way we'll be able to always initialize @result so that unused value
bugs can be prevented.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainResctrlMonDefParse: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:35 +0000 (16:02 +0200)]
virDomainResctrlMonDefParse: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainCachetuneDefParseCache: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:34 +0000 (16:02 +0200)]
virDomainCachetuneDefParseCache: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainVcpuParse: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:33 +0000 (16:02 +0200)]
virDomainVcpuParse: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainDef: Change type of placement_mode to virDomainCpuPlacementMode
Tim Wiederhake [Tue, 4 May 2021 14:02:32 +0000 (16:02 +0200)]
virDomainDef: Change type of placement_mode to virDomainCpuPlacementMode

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainSchedulerParseCommonAttrs: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:31 +0000 (16:02 +0200)]
virDomainSchedulerParseCommonAttrs: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainIOThreadPinDefParseXML: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:30 +0000 (16:02 +0200)]
virDomainIOThreadPinDefParseXML: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainVcpuPinDefParseXML: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:29 +0000 (16:02 +0200)]
virDomainVcpuPinDefParseXML: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainMemoryDefParseXML: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:28 +0000 (16:02 +0200)]
virDomainMemoryDefParseXML: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainPerfEventDefParseXML: Use virXMLProp*
Tim Wiederhake [Tue, 4 May 2021 14:02:27 +0000 (16:02 +0200)]
virDomainPerfEventDefParseXML: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainRedirFilterUSBDevDefParseXML: Use g_auto*
Tim Wiederhake [Tue, 4 May 2021 14:02:26 +0000 (16:02 +0200)]
virDomainRedirFilterUSBDevDefParseXML: Use g_auto*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainRedirFilterUSBDevDefParseXML: Use virXMLProp*
Tim Wiederhake [Tue, 27 Apr 2021 15:04:41 +0000 (17:04 +0200)]
virDomainRedirFilterUSBDevDefParseXML: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainShmemDef: Use g_auto*
Tim Wiederhake [Tue, 27 Apr 2021 15:04:40 +0000 (17:04 +0200)]
virDomainShmemDef: Use g_auto*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agoconf: domain: Register autoptr cleanup function for virDomainShmemDef
Tim Wiederhake [Tue, 27 Apr 2021 15:04:39 +0000 (17:04 +0200)]
conf: domain: Register autoptr cleanup function for virDomainShmemDef

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainShmemDefParseXML: Use virXMLProp*
Tim Wiederhake [Tue, 27 Apr 2021 15:04:38 +0000 (17:04 +0200)]
virDomainShmemDefParseXML: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainShmemDef: Change type of role to virDomainShmemRole
Tim Wiederhake [Tue, 27 Apr 2021 15:04:37 +0000 (17:04 +0200)]
virDomainShmemDef: Change type of role to virDomainShmemRole

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainShmemDef: Change type of model to virDomainShmemModel
Tim Wiederhake [Tue, 27 Apr 2021 15:04:36 +0000 (17:04 +0200)]
virDomainShmemDef: Change type of model to virDomainShmemModel

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainMemballoonDefParseXML: Use virXMLProp*
Tim Wiederhake [Tue, 27 Apr 2021 15:04:35 +0000 (17:04 +0200)]
virDomainMemballoonDefParseXML: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainMemballoonDef: Change type of model to virDomainMemballoonModel
Tim Wiederhake [Tue, 27 Apr 2021 15:04:34 +0000 (17:04 +0200)]
virDomainMemballoonDef: Change type of model to virDomainMemballoonModel

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainAudioCommonParse: Use virXMLProp*
Tim Wiederhake [Tue, 27 Apr 2021 15:04:33 +0000 (17:04 +0200)]
virDomainAudioCommonParse: Use virXMLProp*

This strictens the parser to disallow negative values (interpreted as
`UINT_MAX + value + 1`) for attributes `voices` (typically 1),
`bufferLength` (measured in milliseconds), `frequency` (in Hz, typically
44100), and `channels` (typically 2 for stereo).

None of these properties benefit from or have a sensible use-case for
wrap-around behavior.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainAudioIOCommon: Change type of format to virDomainAudioFormat
Tim Wiederhake [Tue, 27 Apr 2021 15:04:32 +0000 (17:04 +0200)]
virDomainAudioIOCommon: Change type of format to virDomainAudioFormat

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4 years agovirDomainGraphicsDefParseXMLSpice: Use virXMLProp*
Tim Wiederhake [Wed, 5 May 2021 10:55:48 +0000 (12:55 +0200)]
virDomainGraphicsDefParseXMLSpice: Use virXMLProp*

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainGraphicsDefParseXMLSpice: Make name and mode mandatory
Tim Wiederhake [Wed, 5 May 2021 10:55:47 +0000 (12:55 +0200)]
virDomainGraphicsDefParseXMLSpice: Make name and mode mandatory

Attributes are mandatory and were incorrectly made optional recently.

Fixes: 2a5e16398eb622f30dabb16770d2e14b7a6d5212
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainGraphicsDefParseXMLSpice: Fix variable type
Tim Wiederhake [Wed, 5 May 2021 10:55:46 +0000 (12:55 +0200)]
virDomainGraphicsDefParseXMLSpice: Fix variable type

Fixes: 2a5e16398eb622f30dabb16770d2e14b7a6d5212
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agospec: Drop supported_platform variable
Andrea Bolognani [Wed, 5 May 2021 17:35:42 +0000 (19:35 +0200)]
spec: Drop supported_platform variable

It's only used in one place, and it's nicer to keep the error
message close to the check that causes it to be emitted.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agospec: Bump min_fedora and min_rhel
Andrea Bolognani [Wed, 5 May 2021 17:30:46 +0000 (19:30 +0200)]
spec: Bump min_fedora and min_rhel

According to our platform support policy

  https://libvirt.org/platforms.html

RHEL 7 and all versions of Fedora older than 33 are going to
be out of scope by the time libvirt 7.4.0 is released.

Dropping RHEL 7 in particular allows us to greatly simplify
many parts of the spec file.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agospec: Don't disable LTO in Fedora 34
Andrea Bolognani [Wed, 5 May 2021 17:31:32 +0000 (19:31 +0200)]
spec: Don't disable LTO in Fedora 34

The bug that caused this to be added

  https://bugzilla.redhat.com/show_bug.cgi?id=1889763

has since been resolved.

Reverts: a16c0402bae3138c8c6c6da5bbe1bb4ad2c4dc06
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agovirDomainVideoDriverDefParseXML: Allow zero value for @vgaconf
Michal Privoznik [Wed, 5 May 2021 09:18:58 +0000 (11:18 +0200)]
virDomainVideoDriverDefParseXML: Allow zero value for @vgaconf

It was always allowed, but in a very unusual and weird way. Just
look at the original commit that introduced it (78fc843c7b5).
Also, we document that "io" value is accepted (which translates
to VIR_DOMAIN_VIDEO_VGACONF_IO with value of zero).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agovirDomainChrSourceDefParseXML: Fix attribute names for nmdm type
Michal Privoznik [Wed, 5 May 2021 09:14:56 +0000 (11:14 +0200)]
virDomainChrSourceDefParseXML: Fix attribute names for nmdm type

While reworking the patch I've mistakenly mangled the attribute
names for VIR_DOMAIN_CHR_TYPE_NMDM.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agogitlab: enable debug output for test suite
Daniel P. Berrangé [Wed, 5 May 2021 13:44:47 +0000 (14:44 +0100)]
gitlab: enable debug output for test suite

When CI jobs fail on the test suite, we don't see much helpful
information by default:

stderr:
TEST: bhyvexml2argvtest
      ......!!.............!......!........... 40
      ........................!......          71  FAIL
Some tests failed. Run them using:
VIR_TEST_DEBUG=1 VIR_TEST_RANGE=7-8,22,29,65
/tmp/cirrus-ci-build/build/meson-private/dist-build/tests/bhyvexml2argvtest

Following the instructions to re-run the test with VIR_TEST_DEBUG=1 is
quite unfriendly when we could have had that set for CI already.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agovirDomainVideoDriverDefParseXML: Fix use of uninitialized variable
Peter Krempa [Wed, 5 May 2021 12:08:29 +0000 (14:08 +0200)]
virDomainVideoDriverDefParseXML: Fix use of uninitialized variable

Commit fc7e1b2f03cfe2a5f3fce737390548505382d8ed which refactored the
video driver parse helper introduced a use of uninitialized variable,
which caused test failure at least when compiled with clang.

Pass 'def->vgaconf' directly to virXMLPropEnum. 'def' needs to be
converted to use g_autofree to handle error scenarios.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
4 years agovirDomainFSDefParseXML: Remove unused variables
Tim Wiederhake [Wed, 5 May 2021 10:55:45 +0000 (12:55 +0200)]
virDomainFSDefParseXML: Remove unused variables

Fixes: 8f05664ed379fdb7f830d900f4fa3584ac7cab49
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
4 years agoci: Drop CentOS 7
Andrea Bolognani [Tue, 4 May 2021 08:45:29 +0000 (10:45 +0200)]
ci: Drop CentOS 7

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoci: Drop Fedora 32
Andrea Bolognani [Tue, 4 May 2021 08:44:59 +0000 (10:44 +0200)]
ci: Drop Fedora 32

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoci: Add Fedora 34
Andrea Bolognani [Tue, 4 May 2021 08:44:03 +0000 (10:44 +0200)]
ci: Add Fedora 34

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoci: Add FreeBSD 13
Andrea Bolognani [Tue, 4 May 2021 08:43:06 +0000 (10:43 +0200)]
ci: Add FreeBSD 13

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoci: Add openSUSE Tumbleweed
Andrea Bolognani [Tue, 4 May 2021 08:41:34 +0000 (10:41 +0200)]
ci: Add openSUSE Tumbleweed

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoci: Refresh contents
Andrea Bolognani [Tue, 4 May 2021 08:39:31 +0000 (10:39 +0200)]
ci: Refresh contents

Notable changes:

  * the CentOS Stream 8 container is now using a proper base
    image instead of starting from a CentOS 8 image and then
    adding the CentOS Stream 8 repositories on top;

  * distributions that have a perl-base package are now using
    that one instead of the regular perl package, which
    contains a bunch of features we don't need, resulting in
    smaller containers.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoci: Rename CentOS Stream 8 and openSUSE Leap 15.2 containers
Andrea Bolognani [Tue, 4 May 2021 08:31:38 +0000 (10:31 +0200)]
ci: Rename CentOS Stream 8 and openSUSE Leap 15.2 containers

The names have been recently changed in libvirt-ci to be more
accurate, so we should follow along.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoci: Remove Fedora Rawhide dwarf4 hack
Andrea Bolognani [Tue, 4 May 2021 08:47:41 +0000 (10:47 +0200)]
ci: Remove Fedora Rawhide dwarf4 hack

It's no longer needed.

Reverts: e603efb6ec5d1a2295adfda934e79f022bb7bb0e
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
4 years agoRefactoring virDomainVideoDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:13 +0000 (13:40 +0200)]
Refactoring virDomainVideoDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainVideoDriverDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:12 +0000 (13:40 +0200)]
Refactoring virDomainVideoDriverDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: Propagate xmlXPathContextPtr into virDomainVideoDriverDefParseXML()
Kristina Hanicova [Tue, 4 May 2021 11:40:11 +0000 (13:40 +0200)]
conf: Propagate xmlXPathContextPtr into virDomainVideoDriverDefParseXML()

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainGraphicsDefParseXMLSpice() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:10 +0000 (13:40 +0200)]
Refactoring virDomainGraphicsDefParseXMLSpice() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainSmartcardDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:09 +0000 (13:40 +0200)]
Refactoring virDomainSmartcardDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainChrDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:08 +0000 (13:40 +0200)]
Refactoring virDomainChrDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainChrSourceDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:07 +0000 (13:40 +0200)]
Refactoring virDomainChrSourceDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainChrDefParseTargetXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:06 +0000 (13:40 +0200)]
Refactoring virDomainChrDefParseTargetXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: Propagate xmlXPathContextPtr into virDomainChrDefParseTargetXML()
Kristina Hanicova [Tue, 4 May 2021 11:40:05 +0000 (13:40 +0200)]
conf: Propagate xmlXPathContextPtr into virDomainChrDefParseTargetXML()

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainNetDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:04 +0000 (13:40 +0200)]
Refactoring virDomainNetDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainFSDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:03 +0000 (13:40 +0200)]
Refactoring virDomainFSDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainControllerDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:02 +0000 (13:40 +0200)]
Refactoring virDomainControllerDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainLeaseDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 16:13:52 +0000 (18:13 +0200)]
Refactoring virDomainLeaseDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: Propagate xmlXPathContextPtr into virDomainLeaseDefParseXML()
Kristina Hanicova [Tue, 4 May 2021 11:40:01 +0000 (13:40 +0200)]
conf: Propagate xmlXPathContextPtr into virDomainLeaseDefParseXML()

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainHostdevSubsysPCIDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:40:00 +0000 (13:40 +0200)]
Refactoring virDomainHostdevSubsysPCIDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: Propagate xmlXPathContextPtr into virDomainHostdevSubsysPCIDefParseXML()
Kristina Hanicova [Tue, 4 May 2021 11:39:59 +0000 (13:39 +0200)]
conf: Propagate xmlXPathContextPtr into virDomainHostdevSubsysPCIDefParseXML()

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainBlkioDeviceParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:39:58 +0000 (13:39 +0200)]
Refactoring virDomainBlkioDeviceParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: Propagate xmlXPathContextPtr into virDomainBlkioDeviceParseXML()
Kristina Hanicova [Tue, 4 May 2021 11:39:57 +0000 (13:39 +0200)]
conf: Propagate xmlXPathContextPtr into virDomainBlkioDeviceParseXML()

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoRefactoring virDomainHostdevSubsysUSBDefParseXML() to use XPath
Kristina Hanicova [Tue, 4 May 2021 11:39:56 +0000 (13:39 +0200)]
Refactoring virDomainHostdevSubsysUSBDefParseXML() to use XPath

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agoconf: Propagate xmlXPathContextPtr into virDomainHostdevSubsysUSBDefParseXML()
Kristina Hanicova [Tue, 4 May 2021 11:39:55 +0000 (13:39 +0200)]
conf: Propagate xmlXPathContextPtr into virDomainHostdevSubsysUSBDefParseXML()

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4 years agodocs: cputune is also supported by the xen driver
Olaf Hering [Tue, 4 May 2021 20:22:06 +0000 (22:22 +0200)]
docs: cputune is also supported by the xen driver

Since commit 68c5b6fb2b5fdabce775e9f8fc761a400e16a9d3 libxl also handles
a domain/cputune/vcpupin element in domU.xml.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
4 years agolibxl: remove obsolete check for result of xc_get_max_cpus
Olaf Hering [Mon, 3 May 2021 10:56:11 +0000 (12:56 +0200)]
libxl: remove obsolete check for result of xc_get_max_cpus

xc_get_max_cpus from Xen version 4.3 may return 0 in case xc_physinfo
fails. This has been fixed in Xen 4.4. Remove the obsolete result check
from libvirt. Just convert libxl error codes to plain -1.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
4 years agolibxl: remove obsolete VIR_LIBXL_EVENT_CONST
Olaf Hering [Mon, 3 May 2021 10:56:10 +0000 (12:56 +0200)]
libxl: remove obsolete VIR_LIBXL_EVENT_CONST

In Xen 4.2 struct libxl_event_hooks had a member which was erroneously
declared const. Since libvirt requires at least Xen 4.6, remove the dead
code.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
4 years agoqemucapabilitiesdata: Update x86_64 capabilities for qemu-6.0 release
Peter Krempa [Mon, 19 Apr 2021 06:42:38 +0000 (08:42 +0200)]
qemucapabilitiesdata: Update x86_64 capabilities for qemu-6.0 release

Update to the final state now that qemu 6.0 was released.

Notable changes are the addition of 'EPYC-Rome-v2' cpu type and removal
of 'query-netdev' which we didn't use.

The rest is the usual churn caused by random registration of objects at
compile time.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_NUMA_DIST
Peter Krempa [Mon, 19 Apr 2021 11:18:21 +0000 (13:18 +0200)]
qemu: capabilities: Retire QEMU_CAPS_NUMA_DIST

The feature is present in all supported qemu versions (>2.11) and there
isn't a reasonable way to detect it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_EGL_HEADLESS
Peter Krempa [Mon, 19 Apr 2021 11:18:21 +0000 (13:18 +0200)]
qemu: capabilities: Retire QEMU_CAPS_EGL_HEADLESS

The feature is present in all supported qemu versions (>2.11) and there
isn't a reasonable way to detect it.

In addition the capability wasn't even used to gate any functionality
except for reporting the presence in the domain capabilities XML.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT
Peter Krempa [Mon, 19 Apr 2021 11:18:21 +0000 (13:18 +0200)]
qemu: capabilities: Retire QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT

The feature is present in all supported qemu versions (>2.11) and there
isn't a reasonable way to detect it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_SDL_GL
Peter Krempa [Mon, 19 Apr 2021 11:18:21 +0000 (13:18 +0200)]
qemu: capabilities: Retire QEMU_CAPS_SDL_GL

The feature is present in all supported qemu versions (>2.11) and there
isn't a reasonable way to detect it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_MACHINE_SMM_OPT
Peter Krempa [Mon, 19 Apr 2021 11:15:34 +0000 (13:15 +0200)]
qemu: capabilities: Retire QEMU_CAPS_MACHINE_SMM_OPT

The feature is present in all supported QEMU versions and there isn't a
more elegant way to detect it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_VHOSTUSER_MULTIQUEUE
Peter Krempa [Mon, 19 Apr 2021 11:04:42 +0000 (13:04 +0200)]
qemu: capabilities: Retire QEMU_CAPS_VHOSTUSER_MULTIQUEUE

All supported qemus have it, there isn't an elegant way to detect it and
it's unlikely to be ever removed on purpose.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Fix detection of 'vmport'
Peter Krempa [Mon, 19 Apr 2021 10:56:12 +0000 (12:56 +0200)]
qemu: capabilities: Fix detection of 'vmport'

'query-commandline-options' never returned 'vmport' but we can detect it
in the list of supported object types. This removes it from all non-x86
originating test data as it's platform specific.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_MACHINE_IOMMU
Peter Krempa [Mon, 19 Apr 2021 10:12:43 +0000 (12:12 +0200)]
qemu: capabilities: Retire QEMU_CAPS_MACHINE_IOMMU

The feature is no longer asserted. Remove the checks related to it and
make the code work properly with QEMU_CAPS_DEVICE_INTEL_IOMMU.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Probe QMP schema before probing commands
Peter Krempa [Thu, 8 Apr 2021 15:23:48 +0000 (17:23 +0200)]
qemu: capabilities: Probe QMP schema before probing commands

All supported QEMU versions now support query-qmp-schema. In the future
it will be possible to use the output of query-qmp-schema to also detect
commands reliably.

Since we are at the point where we have the least amount of .replies
files needing changing for a long time, move the 'query-qmp-schema' bits
before 'query-commands' to prepare for the future.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: monitor: Remove qemuMonitorSupportsActiveCommit
Peter Krempa [Wed, 7 Apr 2021 15:14:22 +0000 (17:14 +0200)]
qemu: monitor: Remove qemuMonitorSupportsActiveCommit

Modern code uses QMP schema to query for active commit support.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: monitor: Remove qemuMonitorGetEvents
Peter Krempa [Wed, 7 Apr 2021 15:14:22 +0000 (17:14 +0200)]
qemu: monitor: Remove qemuMonitorGetEvents

Modern code uses QMP schema to query for supported event types.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Always assume QEMU_CAPS_QUERY_QMP_SCHEMA
Peter Krempa [Wed, 7 Apr 2021 14:10:14 +0000 (16:10 +0200)]
qemu: capabilities: Always assume QEMU_CAPS_QUERY_QMP_SCHEMA

All supported qemu versions have 'query-qmp-schema' so we can remove the
check whether it exists and all logic conntected to it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Retire QEMU_CAPS_DEVICE_VIDEO_PRIMARY
Peter Krempa [Fri, 9 Apr 2021 14:18:37 +0000 (16:18 +0200)]
qemu: capabilities: Retire QEMU_CAPS_DEVICE_VIDEO_PRIMARY

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemuDomainValidateDevicePCISlotsChipsets: Remove unused @qemuCaps
Peter Krempa [Fri, 9 Apr 2021 14:17:27 +0000 (16:17 +0200)]
qemuDomainValidateDevicePCISlotsChipsets: Remove unused @qemuCaps

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu_domain_address: Drop compatibility with pre-device vga specification for q35
Peter Krempa [Tue, 30 Mar 2021 17:02:01 +0000 (19:02 +0200)]
qemu_domain_address: Drop compatibility with pre-device vga specification for q35

Remove the slot reservation for the vga card which doesn't make sense
with supported qemus any more for the q35 machine type.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu_domain_address: Drop compatibility with pre-device vga specification for i440fx
Peter Krempa [Tue, 30 Mar 2021 17:02:01 +0000 (19:02 +0200)]
qemu_domain_address: Drop compatibility with pre-device vga specification for i440fx

Remove the slot reservation for the vga card which doesn't make sense
with supported qemus any more for the i440fx machine type.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: command: Remove legacy '-vga' commandline formatter
Peter Krempa [Tue, 30 Mar 2021 16:58:15 +0000 (18:58 +0200)]
qemu: command: Remove legacy '-vga' commandline formatter

All supported qemus now support using '-device' for adding a graphics
device.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemuhotplugtest: Add also always-present capabilities
Peter Krempa [Fri, 9 Apr 2021 13:59:42 +0000 (15:59 +0200)]
qemuhotplugtest: Add also always-present capabilities

Use virQEMUCapsInitQMPBasicArch in qemuHotplugCreateObjects so that we
also add the always-present capabilities to the set of capabilities used
for the hotplug test and fix fallout.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemu: capabilities: Move rest of always present caps to virQEMUCapsInitQMPArch
Peter Krempa [Tue, 30 Mar 2021 15:40:49 +0000 (17:40 +0200)]
qemu: capabilities: Move rest of always present caps to virQEMUCapsInitQMPArch

These conveniently don't have any test fallout.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
4 years agoqemuxml2(argv|xml)test: Retire QEMU_CAPS_DEVICE_VIDEO_PRIMARY from tests
Peter Krempa [Mon, 29 Mar 2021 11:47:15 +0000 (13:47 +0200)]
qemuxml2(argv|xml)test: Retire QEMU_CAPS_DEVICE_VIDEO_PRIMARY from tests

All tests now get that capability via virQEMUCapsInitQMPBasicArch.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>