]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
5 years agoUse g_mkstemp_full instead of mkostemp(s)
Ján Tomko [Wed, 13 Nov 2019 21:30:26 +0000 (22:30 +0100)]
Use g_mkstemp_full instead of mkostemp(s)

With g_mkstemp_full, there is no need to distinguish between
mkostemp and mkostemps (no suffix vs. a suffix of a fixed length),
because the GLib function looks for the XXXXXX pattern everywhere
in the string.

Use S_IRUSR | S_IWUSR for the permissions and do not pass O_RDWR
in flags since it's implied.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agotests: use GRegex in vboxsnapshotxmltest
Ján Tomko [Wed, 13 Nov 2019 15:06:45 +0000 (16:06 +0100)]
tests: use GRegex in vboxsnapshotxmltest

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoutil: use GRegex in virStringMatch
Ján Tomko [Wed, 13 Nov 2019 15:01:19 +0000 (16:01 +0100)]
util: use GRegex in virStringMatch

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoutil: use GRegex in virStringSearch
Ján Tomko [Wed, 13 Nov 2019 14:54:43 +0000 (15:54 +0100)]
util: use GRegex in virStringSearch

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoutil: use GRegex for virLogRegex
Ján Tomko [Wed, 13 Nov 2019 14:38:58 +0000 (15:38 +0100)]
util: use GRegex for virLogRegex

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoutil: use GRegex in virCommandRunRegex
Ján Tomko [Wed, 13 Nov 2019 14:09:28 +0000 (15:09 +0100)]
util: use GRegex in virCommandRunRegex

This saves us from allocating vars upfront, since GLib deals with
that for us.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agostorage: use GRegex virStorageBackendLogicalParseVolExtents
Ján Tomko [Wed, 13 Nov 2019 13:32:19 +0000 (14:32 +0100)]
storage: use GRegex virStorageBackendLogicalParseVolExtents

Using GRegex simplifies the code since g_match_info_fetch will
copy the matched substring for us.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agolibxl: remove 'ret' from xenParseSxprVifRate
Ján Tomko [Wed, 13 Nov 2019 12:09:11 +0000 (13:09 +0100)]
libxl: remove 'ret' from xenParseSxprVifRate

Now that the cleanup section is empty, the ret variable is no longer
necessary.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agolibxl: use GRegex in xenParseSxprVifRate
Ján Tomko [Wed, 13 Nov 2019 12:08:14 +0000 (13:08 +0100)]
libxl: use GRegex in xenParseSxprVifRate

Use GRegex from GLib instead of regcomp.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agolibxl: use g_autofree in xenParseSxprVifRate
Ján Tomko [Wed, 13 Nov 2019 11:59:29 +0000 (12:59 +0100)]
libxl: use g_autofree in xenParseSxprVifRate

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agolibxl: use GRegex in libxlGetAutoballoonConf
Ján Tomko [Wed, 13 Nov 2019 11:59:55 +0000 (12:59 +0100)]
libxl: use GRegex in libxlGetAutoballoonConf

Replace the use of regcomp with GRegex.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoremove unused regex.h includes
Ján Tomko [Wed, 13 Nov 2019 15:10:50 +0000 (16:10 +0100)]
remove unused regex.h includes

The code using regexes got moved, but the include stayed.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agolibxl: do not use G_REGEX_EXTENDED
Ján Tomko [Wed, 13 Nov 2019 15:44:12 +0000 (16:44 +0100)]
libxl: do not use G_REGEX_EXTENDED

This flag is not needed to use extended regular expression syntax
with GRegex and it makes GRegex ignore whitespace in the regex.

Remove the unintended usage, even though it should not matter in this
case.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoqemu: add 'ramfb' attribute for mediated devices
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:17 +0000 (10:30 -0500)]
qemu: add 'ramfb' attribute for mediated devices

The 'ramfb' attribute provides a framebuffer to the guest that can be
used as a boot display for the vgpu

For example, the following configuration can be used to provide a vgpu
with a boot display:

    <hostdev mode='subsystem' type='mdev' model='vfio-pci' display='on' ramfb='on'>
        <source>
            <address uuid='$UUID'/>
        </source>
    </hostdev>

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: use domain caps to validate video device model
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:16 +0000 (10:30 -0500)]
qemu: use domain caps to validate video device model

As suggested by Cole, this patch uses the domain capabilities to
validate the supported video model types. This allows us to remove the
model type validation from qemu_process.c and qemu_domain.c and
consolidates it all in a single place that will automatically adjust
when new domain capabilities are added.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: move validation of video accel to qemu_domain.c
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:15 +0000 (10:30 -0500)]
qemu: move validation of video accel to qemu_domain.c

Continue consolidation of video device validation started in previous
patch.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: validate vhost-user video backend in qemu_domain.c
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:14 +0000 (10:30 -0500)]
qemu: validate vhost-user video backend in qemu_domain.c

The goal is to move all of the video device validation to a single place
and use domain caps to validate the supported video device models. Since
qemuDomainDeviceDefValidateVideo() is called from
qemuProcessStartValidate(), these changes should not change anny
behavior.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: set domain capability for video type "none"
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:13 +0000 (10:30 -0500)]
qemu: set domain capability for video type "none"

In a follow-up commit, we will use the domain capabilities to validate
video device configurations, which means that we also need to make sure
that the domain capabilities include the "none" video device.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: set domain capability for ramfb device
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:12 +0000 (10:30 -0500)]
qemu: set domain capability for ramfb device

commit 9bfcf0f62d9cf16db526a948242a7409ae883209 added the
QEMU_CAPS_DEVICE_RAMFB capability but did not set the domain capability.
This patch sets the domain capability for the ramfb device and updates
the tests.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: Set capabilities properly for tests
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:11 +0000 (10:30 -0500)]
qemu: Set capabilities properly for tests

Several tests were not specifying the necessary qemu capabilities for
what they were testing. Due to the way that the video devices are
currently validated, this is not causing any problems. But a change to
video device validation in a following patch would have exposed this
issue and resulted in multiple test failures about the domain
configuration not supporting particular video models.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: use g_autoptr in qemuDomainDeviceDefValidate()
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:10 +0000 (10:30 -0500)]
qemu: use g_autoptr in qemuDomainDeviceDefValidate()

This allows us to simplify the function and avoid jumping to 'cleanup'.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: fix domain device validation
Jonathon Jongsma [Fri, 18 Oct 2019 15:30:09 +0000 (10:30 -0500)]
qemu: fix domain device validation

When the virDomainCapsDeviceDefValidate() function returned an error
status (-1), we were aborting the function early, but returning the
default return value (0). This patch properly returns an error in that
case.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agolibxl: Fix lock manager lock ordering
Jim Fehlig [Mon, 14 Oct 2019 20:01:00 +0000 (14:01 -0600)]
libxl: Fix lock manager lock ordering

The ordering of lock manager locks in the libxl driver has a flaw that was
uncovered by a migration error path. In the perform phase of migration, the
source host calls virDomainLockProcessPause to release the lock before
sending the VM to the destination host. If the send fails an attempt is made
to reacquire the lock with virDomainLockProcessResume, but that too can fail
if the destination host has not finished cleaning up the failed VM and
releasing the lock it acquired when starting to receive the VM.

This change delays calling virDomainLockProcessResume in libxlDomainStart
until the VM is successfully created, but before it is unpaused. A similar
approach is used by the qemu driver, avoiding the need to release the lock
if VM creation fails. In the migration perform phase, releasing the lock
with virDomainLockProcessPause is delayed until the VM is successfully
sent to the destination, which avoids reacquiring the lock if the send
fails.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
5 years agoqemu: hotplug: remove unused cleanup labels
Daniel Henrique Barboza [Thu, 17 Oct 2019 15:44:02 +0000 (12:44 -0300)]
qemu: hotplug: remove unused cleanup labels

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoqemu: hotplug: use g_autoptr() with virConnectPtr
Daniel Henrique Barboza [Thu, 17 Oct 2019 15:44:01 +0000 (12:44 -0300)]
qemu: hotplug: use g_autoptr() with virConnectPtr

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agovirhostuptime: Wrap virHostGetBootTimeProcfs() call in an ifdef
Michal Privoznik [Thu, 14 Nov 2019 15:42:51 +0000 (16:42 +0100)]
virhostuptime: Wrap virHostGetBootTimeProcfs() call in an ifdef

The virHostGetBootTimeProcfs() function is defined only for Linux
and therefore it's only call should also be done if we're on
Linux.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoqemu: domcaps: Simplify adding new domaincaps based on qemu caps
Peter Krempa [Wed, 30 Oct 2019 15:40:03 +0000 (16:40 +0100)]
qemu: domcaps: Simplify adding new domaincaps based on qemu caps

Add a helper which converts qemu emulator capabilities to the domain
capability XML. This will simplify future additions of new features.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodomaincaps: Store domain capability features in an array
Peter Krempa [Wed, 13 Nov 2019 15:34:11 +0000 (16:34 +0100)]
domaincaps: Store domain capability features in an array

Declare the capabilities as enum values and store them in an array. This
makes adding new features more straightforward and simplifies the
formatter which now doesn't require changing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: domcaps: Initialize all features
Peter Krempa [Wed, 13 Nov 2019 15:32:21 +0000 (16:32 +0100)]
qemu: domcaps: Initialize all features

While the qemu driver currently implements all domain capability
features, we should initialize all features using the helper similarly
to how we do it in drivers which don't support any.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodomcaps: Add function for initializing domain caps as unsupported
Peter Krempa [Wed, 13 Nov 2019 15:10:45 +0000 (16:10 +0100)]
domcaps: Add function for initializing domain caps as unsupported

For future extensions of the domain caps it's useful to have a single
point that initializes all capabilities as unsupported by a driver. The
driver then can enable specific ones.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: domaincaps: Use virXMLFormatElement in virDomainCapsFormatFeatures
Peter Krempa [Wed, 30 Oct 2019 14:01:07 +0000 (15:01 +0100)]
conf: domaincaps: Use virXMLFormatElement in virDomainCapsFormatFeatures

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: domaincaps: Extract formatting of the <features> subelement
Peter Krempa [Wed, 30 Oct 2019 13:58:40 +0000 (14:58 +0100)]
conf: domaincaps: Extract formatting of the <features> subelement

Extract it to virDomainCapsFormatFeatures so that the main function does
not get so bloated over time.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: domaincaps: Replace FORMAT_SINGLE macro by a function
Peter Krempa [Wed, 30 Oct 2019 13:53:31 +0000 (14:53 +0100)]
conf: domaincaps: Replace FORMAT_SINGLE macro by a function

Introduce qemuDomainCapsFeatureFormatSimple which does exactly the same
thing but it's a function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: file: Replace use of 'strsep' with virStringSplit
Peter Krempa [Thu, 14 Nov 2019 09:25:31 +0000 (10:25 +0100)]
util: file: Replace use of 'strsep' with virStringSplit

Use our helper instead of the gnulib one.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: file: Use more obvious logic in virFindFileInPath
Peter Krempa [Thu, 14 Nov 2019 09:16:54 +0000 (10:16 +0100)]
util: file: Use more obvious logic in virFindFileInPath

Make it more obvious that the function will return NULL if the file is
not executable and stop reusing variables.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: file: Use g_autofree in virFindFileInPath
Peter Krempa [Thu, 14 Nov 2019 09:05:06 +0000 (10:05 +0100)]
util: file: Use g_autofree in virFindFileInPath

Simplify the final lookup loop by freeing memory automatically and thus
being able to directly return the result.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agorpc: use virStringSplit instead of strsep
Peter Krempa [Thu, 14 Nov 2019 08:59:52 +0000 (09:59 +0100)]
rpc: use virStringSplit instead of strsep

When parsing allowed authentication methods for the native ssh lib
transports we used strsep. Since we have virStringSplit helper let's use
that one.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agovirhostuptime: Add linux stub for musl
Michal Privoznik [Mon, 14 Oct 2019 14:37:03 +0000 (16:37 +0200)]
virhostuptime: Add linux stub for musl

When we want to know the boot timestamp of the host, we can call
virHostGetBootTime(). Under the hood, it uses getutxid() which is
defined by POSIX and properly check for in configure. However,
musl took a path where it declares the function but instead of
providing any useful implementation it returns NULL meaning "no
record found". If that's the case, use our second best option -
/proc/uptime and a bit of maths.

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

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
5 years agoconf: Drop nameLen parameter from virDomainCapsCPUModelsAdd
Jiri Denemark [Thu, 19 Sep 2019 14:10:14 +0000 (16:10 +0200)]
conf: Drop nameLen parameter from virDomainCapsCPUModelsAdd

All callers use nameLen == -1 anyway.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: Use VIR_AUTO* in virDomainCapsCPUModelsAdd
Jiri Denemark [Thu, 19 Sep 2019 14:04:56 +0000 (16:04 +0200)]
conf: Use VIR_AUTO* in virDomainCapsCPUModelsAdd

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodocs: mention lifted vCPUs restriction for esx
Pino Toscano [Wed, 13 Nov 2019 12:57:34 +0000 (13:57 +0100)]
docs: mention lifted vCPUs restriction for esx

It was lifted with c92b6023e8eb670e01571e299a85e9da9bd4844c.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: cold-plug of sound
Jidong Xia [Tue, 15 Oct 2019 06:41:27 +0000 (14:41 +0800)]
qemu: cold-plug of sound

With this patch users can cold plug some sound devices.
use "virsh attach-device vm sound.xml --config" command.
Consider the following sound.xml for a domain:
    <sound model='ich6'>
         <address type='pci' domain='0x0000' bus='0x00' slot='xxx' function='0'/>
    </sound>

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jidong Xia <xiajidong@cmss.chinamobile.com>
5 years agoqemu/qemu_migration_params: use virStringParseYesNo helper
Mao Zhongyi [Thu, 17 Oct 2019 03:19:33 +0000 (11:19 +0800)]
qemu/qemu_migration_params: use virStringParseYesNo helper

A function virStringParseYesNo was added to convert
string 'yes' to true and 'no' to false, so use this
helper to replace 'STREQ(.*, \"yes\")' and
'STREQ(.*, \"no\")' as it allows us to drop several
repetitive if-then-else string->bool conversion blocks.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
5 years agoconf/network_conf: use virStringParseYesNo helper
Mao Zhongyi [Thu, 17 Oct 2019 03:19:32 +0000 (11:19 +0800)]
conf/network_conf: use virStringParseYesNo helper

A function virStringParseYesNo was added to convert
string 'yes' to true and 'no' to false, so use this
helper to replace 'STREQ(.*, \"yes\")' and
'STREQ(.*, \"no\")' as it allows us to drop several
repetitive if-then-else string->bool conversion blocks.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf/domain_conf: use virStringParseYesNo helper
Mao Zhongyi [Thu, 17 Oct 2019 03:19:31 +0000 (11:19 +0800)]
conf/domain_conf: use virStringParseYesNo helper

This helper performs a conversion from a "yes|no" string
to a corresponding boolean, and several conversions were
already done, but there are still some omissions.

For most of the remaining usages in domain_conf.c only
"yes" is explicitly checked for. This means all other
values are implicitly handled as 'false'. In this case,
use virStringParseYesNo to handle the conversion and
reserve the original logic of not raise an error, so
ignore the return value of helper.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
5 years agoqemu: use GUINT32_SWAP_LE_BE
Ján Tomko [Wed, 13 Nov 2019 09:26:37 +0000 (10:26 +0100)]
qemu: use GUINT32_SWAP_LE_BE

Use this GLib macro instead of bswap_32 from gnulib.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoutil: use g_vsnprintf
Ján Tomko [Wed, 13 Nov 2019 09:21:29 +0000 (10:21 +0100)]
util: use g_vsnprintf

Instead of vsnprintf from gnulib, use g_vsnprintf from GLib.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agoutil: pidfile: Replace 'areadlink' by 'g_file_read_link'
Peter Krempa [Wed, 13 Nov 2019 12:24:47 +0000 (13:24 +0100)]
util: pidfile: Replace 'areadlink' by 'g_file_read_link'

Use the glib function rather than gnulib.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: pidfile: Sanitize return values of virPidFileReadPathIfAlive
Peter Krempa [Wed, 13 Nov 2019 12:08:58 +0000 (13:08 +0100)]
util: pidfile: Sanitize return values of virPidFileReadPathIfAlive

The callers don't actually use the returned errno for reporting errors.

Additionally virFileResolveAllLinks returns -1 rather than -errno on
error thus you'd get a spurious EPERM even on other errors.

Don't try to return errno in this case.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: pidfile: Sanitize return values of virPidFileReadIfAlive
Peter Krempa [Wed, 13 Nov 2019 11:57:01 +0000 (12:57 +0100)]
util: pidfile: Sanitize return values of virPidFileReadIfAlive

Return -1 on failure rather than -errno since none of the callers
actually cares about the return value. This specifically fixes returns
of -ENOMEM in cases of bad usage, which would report wrong error
anyways.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: gpu: Sanitize error values in qemuVhostUserGPUGetPid
Peter Krempa [Wed, 13 Nov 2019 12:17:11 +0000 (13:17 +0100)]
qemu: gpu: Sanitize error values in qemuVhostUserGPUGetPid

The caller doesn't care about the actual return value, so return -1
rather than errno.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: tpm: Sanitize error values in qemuTPMEmulatorGetPid
Peter Krempa [Wed, 13 Nov 2019 12:17:11 +0000 (13:17 +0100)]
qemu: tpm: Sanitize error values in qemuTPMEmulatorGetPid

The callers don't care about the actual return value, so return -1
rather than errno.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: tpm: Use g_autofree in qemuTPMEmulatorGetPid
Peter Krempa [Wed, 13 Nov 2019 12:15:50 +0000 (13:15 +0100)]
qemu: tpm: Use g_autofree in qemuTPMEmulatorGetPid

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: file: Remove virFileReadLink
Peter Krempa [Wed, 13 Nov 2019 11:49:24 +0000 (12:49 +0100)]
util: file: Remove virFileReadLink

The function is unused so we can remove it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: domain: Use g_file_read_link instead of virFileReadLink
Peter Krempa [Wed, 13 Nov 2019 11:45:54 +0000 (12:45 +0100)]
qemu: domain: Use g_file_read_link instead of virFileReadLink

In an effort to remove as much gnulib usage as possible let's
reimplement virFileReadLink. Since it's used in two places only I opted
to open-code it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: snapshot: Fix inactive external snapshots when backing chain is present
Peter Krempa [Tue, 12 Nov 2019 16:37:36 +0000 (17:37 +0100)]
qemu: snapshot: Fix inactive external snapshots when backing chain is present

The inactive external snapshot code replaced the file name in the
virStorageSource but did not touch the backing files. This meant that
after an inactive snapshot the backing chain recorded in the inactive
XML (which is used with -blockdev) would be incorrect.

Fix it by adding a new layer if there is an existing chain and replacing
the virStorageSource struct fully when there is no chain.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: blockjob: Transfer 'readonly' state of images after active layer block commit
Peter Krempa [Fri, 8 Nov 2019 15:38:08 +0000 (16:38 +0100)]
qemu: blockjob: Transfer 'readonly' state of images after active layer block commit

When commiting a different image becomes the disk source. Since we store
the readonly flag per-image we must update it to the same state the
original image had.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_hotplug.c: user-friendlier setvcpus timeout error message
Daniel Henrique Barboza [Fri, 18 Oct 2019 18:36:34 +0000 (15:36 -0300)]
qemu_hotplug.c: user-friendlier setvcpus timeout error message

The current 'setvcpus' timeout message requires a deeper
understanding of QEMU/Libvirt internals to proper react to it.
One who knows how setvcpus unplug work (it is an asynchronous
operation between QEMU and guest that Libvirt can't know for
sure if it failed, unless an explicit error happened during the
timeout period) will read the message and not assume a failed
operation. But the regular user, most often than not, will read
it and believe that the unplug operation failed.

This leads to situations where the user isn't exactly relieved
when accessing the guest and seeing that the unplug operation
worked. Instead, the user feel mislead by the timeout message
setvcpus threw.

Changing the timeout message to let the user know that the
unplug status is not known, and manual inspection in the guest
is required, is not a silver bullet. But it gives a more
realistic expectation of what happened, as best as we can tell
from Libvirt side anyways.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoqemu: Remove qemu_hotplugpriv.h and qemuDomainRemoveDeviceWaitTime
Daniel Henrique Barboza [Fri, 18 Oct 2019 18:36:33 +0000 (15:36 -0300)]
qemu: Remove qemu_hotplugpriv.h and qemuDomainRemoveDeviceWaitTime

qemu_hotplugpriv.h is a header file created to share a global variable
called 'qemuDomainRemoveDeviceWaitTime', declared in qemu_hotplug.c,
to other files that would want to change the timeout value
(currently, only tests/qemuhotplugtest.c).

Previous patch deprecated the variable, using qemu_driver->unplugTimeout
to set the timeout instead. This means that the header file is now
unused, and can be safely discarded.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoqemu_hotplug.c: adding qemuDomainGetUnplugTimeout
Daniel Henrique Barboza [Fri, 18 Oct 2019 18:36:32 +0000 (15:36 -0300)]
qemu_hotplug.c: adding qemuDomainGetUnplugTimeout

For some architectures and setups, device removal can take
longer than the default 5 seconds. This results in commands
such as 'virsh setvcpus' to fire timeout messages even if
the operation were successful in the guest, confusing the
user.

This patch sets a new 10 seconds unplug timeout for PPC64
guests. All other archs will keep the default 5 seconds
timeout.

Instead of putting 'if PPC64' conditionals inside qemu_hotplug.c
to set the new timeout value, a new function called
qemuDomainGetUnplugTimeout was added. The timeout value is then
retrieved when needed, by passing the correspondent DomainDef
object. This approach allows for different guest architectures
to have distint unplug timeout intervals, regardless of the
host architecture. This design also makes it easier to
modify/enhance the unplug timeout logic in the future
(allow for special timeouts for TCG domains, for example).

A new mock file was created to work with qemuhotplugtest.c,
given that the test timeout is significantly shorter than
the actual timeout value in qemu_hotplug.c.

The now unused 'qemuDomainRemoveDeviceWaitTime' global can't
be simply erased from qemu_hotplug.c though. Next patch will
remove it properly.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Suggested-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoconf: use glib allocation when parsing video props
Jonathon Jongsma [Wed, 23 Oct 2019 17:46:47 +0000 (12:46 -0500)]
conf: use glib allocation when parsing video props

In preparation for some other improvements, switch to using glib
allocation and g_autofree when parsing the 'acceleration' and
'resolution' properties of the video device.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoconf: remove unnecessary NULL checks
Jonathon Jongsma [Wed, 23 Oct 2019 17:46:46 +0000 (12:46 -0500)]
conf: remove unnecessary NULL checks

Just above in the function, we return from the function if either x or y
are NULL, so there's no need to re-check whether x or y are NULL.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoqemu: fix documentation for video resolution
Jonathon Jongsma [Wed, 23 Oct 2019 17:46:45 +0000 (12:46 -0500)]
qemu: fix documentation for video resolution

The video resolution support that was introduced in
7286279797a34b3083d85bc4556432b5e7ad9fff is specified as a <resolution>
sub-element of <model>, not optional attributes of model.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
5 years agoconf: Fix memory leak caused by missing VIR_FREE for video resolution.
Julio Faracco [Fri, 18 Oct 2019 03:15:45 +0000 (00:15 -0300)]
conf: Fix memory leak caused by missing VIR_FREE for video resolution.

Commit 72862797 introduced resolution settings for QEMU video drivers.
It includes a new structure inside video definition. So, the code needs
to clear pointer allocation for that structure into clear function
virDomainVideoDefClear(). This commit adds this missing VIR_FREE().

Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
5 years agoRemove VIR_STRNDUP usage that subtracts from a non-NULL pointer
Ján Tomko [Thu, 24 Oct 2019 17:32:35 +0000 (19:32 +0200)]
Remove VIR_STRNDUP usage that subtracts from a non-NULL pointer

Use g_strndup in all the cases where we check upfront whether a pointer
is non-NULL and then use it to calculate the copied length.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoRemove VIR_STRNDUP usage that passes -1
Ján Tomko [Thu, 24 Oct 2019 22:05:28 +0000 (00:05 +0200)]
Remove VIR_STRNDUP usage that passes -1

Replace all the usage of
  VIR_STRNDUP(dest, b, p ? p - b : -1)
with separate calls to g_strndup/g_strdup.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoRemove VIR_STRDUP usage that snuck in
Ján Tomko [Thu, 24 Oct 2019 22:34:21 +0000 (00:34 +0200)]
Remove VIR_STRDUP usage that snuck in

Fixes: 224d269f19f0a6c496dd2218f934a54742d51708
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agolocking: fix build with older sanlock
Ján Tomko [Wed, 13 Nov 2019 08:51:45 +0000 (09:51 +0100)]
locking: fix build with older sanlock

../../src/locking/lock_driver_sanlock.c:106:17: error: incompatible pointer types
assigning to 'char **' from 'char *' [-Werror,-Wincompatible-pointer-types]
        message = g_strdup_printf(_("sanlock error %d"), err);
                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: b1d58418aa5051c7aafa4519b332007e7c73c261
Signed-off-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: buffer: remove virBufferSetChildIndent
Peter Krempa [Fri, 25 Oct 2019 15:33:21 +0000 (17:33 +0200)]
util: buffer: remove virBufferSetChildIndent

Promote usage of separate buffers for separate formatting passes by
removing the now unused virBufferSetChildIndent.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: domain: Convert child buffers to use VIR_BUFFER_INIT_CHILD
Peter Krempa [Wed, 30 Oct 2019 11:40:06 +0000 (12:40 +0100)]
conf: domain: Convert child buffers to use VIR_BUFFER_INIT_CHILD

Use the new helper to initialize child XML element buffers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: cpu: Convert child buffers to use VIR_BUFFER_INIT_CHILD
Peter Krempa [Wed, 30 Oct 2019 11:40:06 +0000 (12:40 +0100)]
conf: cpu: Convert child buffers to use VIR_BUFFER_INIT_CHILD

Use the new helper to initialize child XML element buffers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: caps: sysinfo: Convert child buffers to use VIR_BUFFER_INIT_CHILD
Peter Krempa [Wed, 30 Oct 2019 11:40:06 +0000 (12:40 +0100)]
conf: caps: sysinfo: Convert child buffers to use VIR_BUFFER_INIT_CHILD

Use the new helper to initialize child XML element buffers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: sysinfo: Convert child buffers to use VIR_BUFFER_INIT_CHILD
Peter Krempa [Wed, 30 Oct 2019 11:40:06 +0000 (12:40 +0100)]
util: sysinfo: Convert child buffers to use VIR_BUFFER_INIT_CHILD

Use the new helper to initialize child XML element buffers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: domain: Convert child buffers to use VIR_BUFFER_INIT_CHILD
Peter Krempa [Wed, 30 Oct 2019 11:40:06 +0000 (12:40 +0100)]
qemu: domain: Convert child buffers to use VIR_BUFFER_INIT_CHILD

Use the new helper to initialize child XML element buffers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: buffer: Add init macro for automatically setting child XML indent
Peter Krempa [Fri, 25 Oct 2019 13:22:12 +0000 (15:22 +0200)]
util: buffer: Add init macro for automatically setting child XML indent

Add a new macro which initializes a virBuffer on the stack and also sets
the indent level to be used for child XML element formatting.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: capabilities: Refactor API for setting guest capability features
Peter Krempa [Tue, 12 Nov 2019 12:57:23 +0000 (13:57 +0100)]
conf: capabilities: Refactor API for setting guest capability features

Remove the need to pass around strings and switch to the enum values
instead.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: Refactor storage of guest capabilities
Peter Krempa [Wed, 23 Oct 2019 15:04:20 +0000 (17:04 +0200)]
conf: Refactor storage of guest capabilities

The capabilities are declared in the XML schema so passing feature names
as strings from hypervisor drivers makes no sense.

Additionally some of the features expose so called 'toggles' while
others not. This knowledge was encoded by a bunch of 'STREQ's in the
formatter.

Change all of this by declaring the features as an enum and use it
instead of a dynamically allocated array.

Presence of 'toggles' is encoded together with the conversion strings
rather than in the formatter directly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoschema: capabilities: Add 'hap' feature flag
Peter Krempa [Tue, 12 Nov 2019 13:00:53 +0000 (14:00 +0100)]
schema: capabilities: Add 'hap' feature flag

The libxl driver exposes a 'hap' feature in the capability XML but our
schema didn't cover it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: driver: Remove unused 'driver' from qemuDomainSnapshotFSFreeze/Thaw
Peter Krempa [Mon, 23 Sep 2019 13:34:50 +0000 (15:34 +0200)]
qemu: driver: Remove unused 'driver' from qemuDomainSnapshotFSFreeze/Thaw

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agocpu_map: Drop pconfig from Icelake-Server CPU model
Jiri Denemark [Fri, 18 Oct 2019 12:33:00 +0000 (14:33 +0200)]
cpu_map: Drop pconfig from Icelake-Server CPU model

The pconfig feature was enabled in QEMU by accident in 3.1.0. All other
newer versions do not support it and it was removed from the
Icelake-Server CPU model in QEMU.

We don't normally change our CPU models even when QEMU does so to avoid
breaking migrations between different versions of libvirt. But we can
safely do so in this specific case. QEMU never supported enabling
pconfig so any domain which was able to start has pconfig disabled.

With a small compatibility hack which explicitly disables pconfig when
CPU model equals Icelake-Server in migratable domain definition, only
one migration scenario stays broken (and there's nothing we can do about
it): from any host to a host with libvirt < 5.10.0 and QEMU > 3.1.0.

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

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agocputest: Add data for Ice Lake Server CPU
Jiri Denemark [Fri, 18 Oct 2019 11:50:19 +0000 (13:50 +0200)]
cputest: Add data for Ice Lake Server CPU

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agocpu_map: Drop comments about ospke
Jiri Denemark [Wed, 16 Oct 2019 11:11:01 +0000 (13:11 +0200)]
cpu_map: Drop comments about ospke

QEMU does not support setting this feature on the command line anymore.
We don't need to explain why it is not included in CPU models then.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agoqemu: Drop disabled CPU features unknown to QEMU
Jiri Denemark [Fri, 18 Oct 2019 12:33:19 +0000 (14:33 +0200)]
qemu: Drop disabled CPU features unknown to QEMU

When a CPU definition wants to explicitly disable some features that are
unknown to QEMU, we can safely drop them from the definition before
starting QEMU. Naturally QEMU won't enable such features implicitly.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agoqemuxml2*test: Add tests for Icelake-Server,-pconfig
Jiri Denemark [Fri, 18 Oct 2019 14:14:23 +0000 (16:14 +0200)]
qemuxml2*test: Add tests for Icelake-Server,-pconfig

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agocpu_conf: Pass policy to CPU feature filtering callbacks
Jiri Denemark [Thu, 7 Nov 2019 15:25:47 +0000 (16:25 +0100)]
cpu_conf: Pass policy to CPU feature filtering callbacks

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agobhyve_device.c: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:11 +0000 (15:19 -0300)]
bhyve_device.c: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agotools: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:09 +0000 (15:19 -0300)]
tools: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agosuspend.c: remove unneeded cleanup label
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:08 +0000 (15:19 -0300)]
suspend.c: remove unneeded cleanup label

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agobridge_driver.c: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:07 +0000 (15:19 -0300)]
bridge_driver.c: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agolibxl_driver.c: remove unneeded cleanup label
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:06 +0000 (15:19 -0300)]
libxl_driver.c: remove unneeded cleanup label

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agolibvirt.c: remove unneeded cleanup label
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:05 +0000 (15:19 -0300)]
libvirt.c: remove unneeded cleanup label

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:04 +0000 (15:19 -0300)]
util: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agovz_sdk.c: remove unneeded cleanup label
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:02 +0000 (15:19 -0300)]
vz_sdk.c: remove unneeded cleanup label

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agorpc: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:19:01 +0000 (15:19 -0300)]
rpc: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_monitor_json.c: remove unneeded cleanup label
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:18:59 +0000 (15:18 -0300)]
qemu_monitor_json.c: remove unneeded cleanup label

qemuMonitorJSONBlockIoThrottleInfo uses a macro called
GET_THROTTLE_STATS that's defined outside of the function,
which references a 'cleanup' label. GET_THROTTLE_STATS is
only used inside qemuMonitorJSONBlockIoThrottleInfo (in fact,
the macro is undef right after it) thus it is safe to erase
the 'cleanup' reference inside the macro, then proceed
with the usual cleanup label removal inside
qemuMonitorJSONBlockIoThrottleInfo.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agosecret_driver.c: remove unneeded cleanup label
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:18:57 +0000 (15:18 -0300)]
secret_driver.c: remove unneeded cleanup label

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agonode_device: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:18:56 +0000 (15:18 -0300)]
node_device: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agolxc: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:18:55 +0000 (15:18 -0300)]
lxc: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoremote: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:18:54 +0000 (15:18 -0300)]
remote: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agonwfilter: remove unneeded cleanup labels
Daniel Henrique Barboza [Mon, 21 Oct 2019 18:18:53 +0000 (15:18 -0300)]
nwfilter: remove unneeded cleanup labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>