]> git.ipfire.org Git - thirdparty/libvirt.git/log
thirdparty/libvirt.git
5 years agoqemu: forbid migration with vhost-user-fs device
Ján Tomko [Thu, 30 Jan 2020 16:28:27 +0000 (17:28 +0100)] 
qemu: forbid migration with vhost-user-fs device

This is not yet supported.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoqemu: validate virtiofs filesystems
Ján Tomko [Wed, 18 Dec 2019 16:46:54 +0000 (17:46 +0100)] 
qemu: validate virtiofs filesystems

Reject unsupported configurations.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
5 years agoqemu: add virtiofsd_debug to qemu.conf
Ján Tomko [Wed, 11 Dec 2019 21:30:06 +0000 (22:30 +0100)] 
qemu: add virtiofsd_debug to qemu.conf

Add a 'virtiofsd_debug' option for tuning whether to run virtiofsd
in debug mode.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoconf: add virtiofs-related elements and attributes
Ján Tomko [Tue, 21 Jan 2020 07:14:46 +0000 (08:14 +0100)] 
conf: add virtiofs-related elements and attributes

Add more elements for tuning the virtiofsd daemon
and the vhost-user-fs device:

  <driver type='virtiofs' queue='1024' xattr='on'>
    <binary path='/usr/libexec/virtiofsd'>
      <cache mode='always'/>
      <lock posix='off' flock='off'/>
    </binary>
  </driver>

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoconf: qemu: add virtiofs fsdriver type
Ján Tomko [Tue, 16 Jul 2019 05:01:30 +0000 (07:01 +0200)] 
conf: qemu: add virtiofs fsdriver type

Introduce a new 'virtiofs' driver type for filesystem.

<filesystem type='mount' accessmode='passthrough'>
  <driver type='virtiofs'/>
  <source dir='/path'/>
  <target dir='mount_tag'>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</filesystem>

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agodocs: add virtiofs kbase
Ján Tomko [Wed, 11 Dec 2019 12:10:07 +0000 (13:10 +0100)] 
docs: add virtiofs kbase

Add a document describing the usage of virtiofs.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoqemu: add QEMU_CAPS_DEVICE_VHOST_USER_FS
Ján Tomko [Wed, 6 Feb 2019 12:29:00 +0000 (13:29 +0100)] 
qemu: add QEMU_CAPS_DEVICE_VHOST_USER_FS

Introduced by QEMU commit 98fc1ada4cf70af0f1df1a2d7183cf786fc7da05
    virtio: add vhost-user-fs base device

Released in QEMU v4.2.0.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoqemuxml2xmltest: set driver as privileged
Ján Tomko [Wed, 26 Feb 2020 11:51:44 +0000 (12:51 +0100)] 
qemuxml2xmltest: set driver as privileged

Some validation check might reject unprivileged drivers in the future.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoqemu: pass virDomainObjPtr to qemuExtDevicesSetupCgroup
Ján Tomko [Wed, 26 Feb 2020 11:45:02 +0000 (12:45 +0100)] 
qemu: pass virDomainObjPtr to qemuExtDevicesSetupCgroup

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoqemuExtDevicesStart: pass logManager
Ján Tomko [Sat, 25 Jan 2020 17:35:13 +0000 (18:35 +0100)] 
qemuExtDevicesStart: pass logManager

Pass logManager to qemuExtDevicesStart for future usage.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agoschema: wrap fsDriver in a choice group
Ján Tomko [Tue, 21 Jan 2020 08:02:58 +0000 (09:02 +0100)] 
schema: wrap fsDriver in a choice group

Allow adding new groups without changing indentation.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
5 years agogitdm: Add missing entries
Andrea Bolognani [Fri, 28 Feb 2020 18:25:39 +0000 (19:25 +0100)] 
gitdm: Add missing entries

A few new companies have contributed to libvirt since the last
time the gitdm configuration was updated.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agogitdm: Fix sorting
Andrea Bolognani [Fri, 28 Feb 2020 18:25:32 +0000 (19:25 +0100)] 
gitdm: Fix sorting

Fixes: 3a3a85c529e92ad767fb2222e01587186854c175
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agogitdm: Add entry for example.com
Andrea Bolognani [Fri, 28 Feb 2020 18:29:02 +0000 (19:29 +0100)] 
gitdm: Add entry for example.com

We already have one instance of it being used in our git history,
and more are probably bound to show up eventually.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoci: Drop handling of $PKG_CONFIG_LIBDIR
Andrea Bolognani [Tue, 25 Feb 2020 14:41:23 +0000 (15:41 +0100)] 
ci: Drop handling of $PKG_CONFIG_LIBDIR

As of libvirt-jenkins-ci commit e41e341f0d8f, we no longer bake
this environment variable into our container images.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agomaint: Post-release version bump to 6.2.0
Michal Privoznik [Wed, 4 Mar 2020 09:32:58 +0000 (10:32 +0100)] 
maint: Post-release version bump to 6.2.0

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoRelease of libvirt-6.1.0 v6.1.0
Daniel Veillard [Tue, 3 Mar 2020 13:14:08 +0000 (14:14 +0100)] 
Release of libvirt-6.1.0

* docs/news.xml: updated for the release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
5 years agonews: Update for libvirt 6.1.0
Andrea Bolognani [Fri, 28 Feb 2020 17:50:51 +0000 (18:50 +0100)] 
news: Update for libvirt 6.1.0

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agonews: Document recent storage improvements v6.1.0-rc2
Peter Krempa [Thu, 27 Feb 2020 08:38:06 +0000 (09:38 +0100)] 
news: Document recent storage improvements

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agokbase: backing_chains: Add steps how to securely probe image format
Peter Krempa [Thu, 27 Feb 2020 08:08:26 +0000 (09:08 +0100)] 
kbase: backing_chains: Add steps how to securely probe image format

We document steps how to fix images if they are rejected for missing
the 'backing file format' field. Document also how to securely probe
the image format if it's unknown.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodaemon: set default memlock limit for systemd service
Pavel Hrdina [Wed, 26 Feb 2020 12:23:00 +0000 (13:23 +0100)] 
daemon: set default memlock limit for systemd service

The default memlock limit is 64k which is not enough to start a single
VM. The requirements for one VM are 12k, 8k for eBPF map and 4k for eBPF
program, however, it fails to create eBPF map and program with 64k limit.
By testing I figured out that the minimal limit is 80k to start a single
VM with functional eBPF and if I add 12k I can start another one.

This leads into following calculation:

80k as memlock limit worked to start a VM with eBPF which means there
is 68k of lock memory that I was not able to figure out what was using
it.  So to get a number for 4096 VMs:

        68 + 12 * 4096 = 49220

If we round it up we will get 64M of memory lock limit to support 4096
VMs with default map size which can hold 64 entries for devices.

This should be good enough as a sane default and users can change it if
the need to.

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

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agodocs: document port isolated property in domain/network/networkport
Laine Stump [Wed, 26 Feb 2020 00:47:07 +0000 (19:47 -0500)] 
docs: document port isolated property in domain/network/networkport

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agodocs: fix docs about bandwidth setting with bridge networks
Daniel P. Berrangé [Tue, 25 Feb 2020 15:49:03 +0000 (15:49 +0000)] 
docs: fix docs about bandwidth setting with bridge networks

We now support setting bandwidth on networks with type bridge.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agoqemu: Do not set default CPU for archs without CPU driver
Jiri Denemark [Tue, 25 Feb 2020 15:05:06 +0000 (16:05 +0100)] 
qemu: Do not set default CPU for archs without CPU driver

Whenever there is a guest CPU configured in domain XML, we will call
some CPU driver APIs to validate the CPU definition and check its
compatibility with the hypervisor. Thus domains with guest CPU
specification can only be started if the guest architecture is supported
by the CPU driver. But we would add a default CPU to any domain as long
as QEMU reports it causing failures to start any domain on affected
architectures.

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

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agokbase: backing_chains: Clarify some aspects of image probing v6.1.0-rc1
Peter Krempa [Tue, 25 Feb 2020 12:39:42 +0000 (13:39 +0100)] 
kbase: backing_chains: Clarify some aspects of image probing

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agovirStorageFileGetMetadataRecurse: Allow format probing under special circumstances
Peter Krempa [Mon, 17 Feb 2020 09:08:25 +0000 (10:08 +0100)] 
virStorageFileGetMetadataRecurse: Allow format probing under special circumstances

Allow format probing to work around lazy clients which did not specify
their format in the overlay. Format probing will be allowed only, if we
are able to probe the image, the probing result was successful and the
probed image does not have any backing or data file.

This relaxes the restrictions which were imposed in commit 3615e8b39bad
in cases when we know that the image probing will not result in security
issues or data corruption.

We perform the image format detection and in the case that we were able
to probe the format and the format does not specify a backing store (or
doesn't support backing store) we can use this format.

With pre-blockdev configurations this will restore the previous
behaviour for the images mentioned above as qemu would probe the format
anyways. It also improves error reporting compared to the old state as
we now report that the backing chain will be broken in case when there
is a backing file.

In blockdev configurations this ensures that libvirt will not cause data
corruption by ending the chain prematurely without notifying the user,
but still allows the old semantics when the users forgot to specify the
format.

Users thus don't have to re-invent when image format detection is safe
to do.

The price for this is that libvirt will need to keep the image format
detector still current and working or replace it by invocation of
qemu-img.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agoqemu: domain: Convert detected 'iso' image format into 'raw'
Peter Krempa [Tue, 25 Feb 2020 12:28:10 +0000 (13:28 +0100)] 
qemu: domain: Convert detected 'iso' image format into 'raw'

While our code can detect ISO as a separate format, qemu does not use it
as such and just passes it through as raw. Add conversion for detected
parts of the backing chain so that the validation code does not reject
it right away.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agoconf: include virnetworkportdef.h in domain_conf.h
Ján Tomko [Mon, 17 Feb 2020 17:51:55 +0000 (18:51 +0100)] 
conf: include virnetworkportdef.h in domain_conf.h

Now that this file no longer transitively includes
domain_conf.h, it can be included here.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf: reduce includes in virnetworkportdef.h
Ján Tomko [Sat, 22 Feb 2020 16:01:14 +0000 (17:01 +0100)] 
conf: reduce includes in virnetworkportdef.h

All the _conf includes are only needed in the C file.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf: do not pass vm object to virDomainClearNetBandwidth
Ján Tomko [Mon, 17 Feb 2020 17:37:25 +0000 (18:37 +0100)] 
conf: do not pass vm object to virDomainClearNetBandwidth

This function only uses the domain definition.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf: virNetDevSupportsBandwidth: move into the C file
Ján Tomko [Mon, 17 Feb 2020 17:35:37 +0000 (18:35 +0100)] 
conf: virNetDevSupportsBandwidth: move into the C file

Make the header easier to read and let the compiler inline
what it wants.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf: rename virNetDevSupportBandwidth to virNetDevSupportsBandwidth
Ján Tomko [Mon, 17 Feb 2020 17:17:23 +0000 (18:17 +0100)] 
conf: rename virNetDevSupportBandwidth to virNetDevSupportsBandwidth

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Mores <pmores@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf: virnetworkportdef: include virnetdevmacvlan
Ján Tomko [Sat, 22 Feb 2020 16:08:57 +0000 (17:08 +0100)] 
conf: virnetworkportdef: include virnetdevmacvlan

This is pulled in via domain_conf.h somehow, but it is directly used.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agobridge: include netdev_bandwidth_conf.h
Ján Tomko [Sat, 22 Feb 2020 15:57:50 +0000 (16:57 +0100)] 
bridge: include netdev_bandwidth_conf.h

This file uses the virNetDevBandwidth*Floor helpers
without including the correct include,
relying on virnetworkportdef.h to include it.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 17f430eb5cfaaa3388077f2b0856f011f0b2a4c3
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf: virnwfilterbindingdef: include virxml.h
Ján Tomko [Sun, 16 Feb 2020 22:09:05 +0000 (23:09 +0100)] 
conf: virnwfilterbindingdef: include virxml.h

The ParseNode function takes arguments with types
from libxml.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agotests: fix missing test data for network port XML
Daniel P. Berrangé [Tue, 25 Feb 2020 11:08:41 +0000 (11:08 +0000)] 
tests: fix missing test data for network port XML

The network port XML files were not including any usage of vlan
tags or port options, and one of the files was not even processed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agolxc: Replacing default strings definitions by g_autofree statement
Julio Faracco [Mon, 24 Feb 2020 14:24:27 +0000 (11:24 -0300)] 
lxc: Replacing default strings definitions by g_autofree statement

There are a lots of strings being handled inside some LXC functions.
They can be moved to g_autofree to avoid declaring a return value to get
proper code cleanups. This commit is changing functions from
lxc_{controller,cgroup,fuse} only.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
5 years agotests: libxl: do not run the emulator
Ján Tomko [Sat, 22 Feb 2020 12:56:19 +0000 (13:56 +0100)] 
tests: libxl: do not run the emulator

Ever since commit c5a00350 the libxl parser invokes the emulator
to probe which device model to use.

Commit b90c4b5 introduced a workaround that used a stable path
which was very likely to result in the answer matching the default.
However the test is still affected by the host state and the binary
gets invoked if present.

Mock the libxlDomainGetEmulatorType function to stop wasting CPU
cycles every time a 'make check' is run on a system with xen installed.

For example xlconfigtest gets faster by 90 %

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: b90c4b5f505698d600303c5b4f03f5d229b329dd
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
5 years agotests: link the libxl tests with libxltestdriver.la
Ján Tomko [Sat, 22 Feb 2020 13:51:05 +0000 (14:51 +0100)] 
tests: link the libxl tests with libxltestdriver.la

This lets us mock functions from the libxl driver.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
5 years agolibxl: do not mock virFileMakePath
Ján Tomko [Sat, 22 Feb 2020 12:12:17 +0000 (13:12 +0100)] 
libxl: do not mock virFileMakePath

Point the logDir to abs_builddir instead.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
5 years agolibxl: split out DriverConfigInit out of DriverConfigNew
Ján Tomko [Sat, 22 Feb 2020 12:01:38 +0000 (13:01 +0100)] 
libxl: split out DriverConfigInit out of DriverConfigNew

Take the parts affected by the host state out of DriverConfigNew
and put them into a separate function.

Adjust all the callers to call both functions.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
5 years agolibxl: StateInitialize: use g_autofree
Ján Tomko [Sat, 22 Feb 2020 12:02:27 +0000 (13:02 +0100)] 
libxl: StateInitialize: use g_autofree

Use g_autofree to free the driver config file path.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
5 years agolibxl: conf: move default keepalive settings to libxlDriverConfigNew
Ján Tomko [Sat, 22 Feb 2020 12:02:18 +0000 (13:02 +0100)] 
libxl: conf: move default keepalive settings to libxlDriverConfigNew

These hardcoded defaults do not need to be read from
the file. Move them out of libxlDriverConfigLoadFile.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
5 years agotestutilsxen: error out on initialization failure
Ján Tomko [Sat, 22 Feb 2020 11:44:45 +0000 (12:44 +0100)] 
testutilsxen: error out on initialization failure

libxlDriverConfigNew can possibly fail on wrong
firmware values (unlikely) or on failure to create
the log directory (possible if you're debugging
tests with VIR_FILE_ACCESS)

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 4a4132b4625778cf80acb9c92d06351b44468ac3
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
5 years agosecurity: Don't fail if locking a file on NFS mount fails
Michal Privoznik [Thu, 20 Feb 2020 14:38:43 +0000 (15:38 +0100)] 
security: Don't fail if locking a file on NFS mount fails

The way that our file locking works is that we open() the file we
want to lock and then use fcntl(fd, F_SETLKW, ...) to lock it.
The problem is, we are doing all of these as root which doesn't
work if the file lives on root squashed NFS, because if it does
then the open() fails. The way to resolve this is to make this a
non fatal error and leave callers deal with this (i.e. disable
remembering) - implemented in the previous commit.

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

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agosecurity: Don't remember seclabel for paths we haven't locked successfully
Michal Privoznik [Thu, 20 Feb 2020 14:38:10 +0000 (15:38 +0100)] 
security: Don't remember seclabel for paths we haven't locked successfully

There are some cases where we want to remember the original owner
of a file but we fail to lock it for XATTR change (e.g. root
squashed NFS). If that is the case we error out and refuse to
start a domain. Well, we can do better if we disable remembering
for paths we haven't locked successfully.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agovirSecurityManagerMetadataLock: Store locked paths
Michal Privoznik [Thu, 20 Feb 2020 14:37:48 +0000 (15:37 +0100)] 
virSecurityManagerMetadataLock: Store locked paths

So far, in the lock state we are storing only the file
descriptors of the files we've locked. Therefore, when unlocking
them and something does wrong the only thing we can report is FD
number, which is not user friendly at all. But if we store paths
among with FDs we can do better error reporting.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
5 years agosrc: add virutil.h to more source files for geteuid() compat
Daniel P. Berrangé [Tue, 25 Feb 2020 10:01:09 +0000 (10:01 +0000)] 
src: add virutil.h to more source files for geteuid() compat

The virutil.h header defines a geteuid() macro for Windows platforms.
This fixes a few missed cases from:

  commit b11e8cccdd5163727fd4cecda0076ac2b63fe32d
  Author: Ján Tomko <jtomko@redhat.com>
  Date:   Sun Feb 16 23:09:15 2020 +0100

    Remove virutil.h from all header files

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agobuild: stop running aclocal manually
Daniel P. Berrangé [Mon, 24 Feb 2020 16:45:12 +0000 (16:45 +0000)] 
build: stop running aclocal manually

The autoreconf script will already run aclocal for us,
so there's no need to do that ahead of time.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agonode_device: hal: include virutil.h
Ján Tomko [Tue, 25 Feb 2020 00:32:19 +0000 (01:32 +0100)] 
node_device: hal: include virutil.h

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: b11e8cccdd5163727fd4cecda0076ac2b63fe32d
5 years agovirt-aa-helper: Fix build by including virutil.h
Jim Fehlig [Mon, 24 Feb 2020 23:24:14 +0000 (16:24 -0700)] 
virt-aa-helper: Fix build by including virutil.h

Commit fb01e1a44d missed including virutil.h, causing the following
compilation error

../../src/security/virt-aa-helper.c:1055:43: error: implicit declaration of
function 'virHostGetDRMRenderNode' [-Werror=implicit-function-declaration]
1055 |                 char *defaultRenderNode = virHostGetDRMRenderNode();

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
5 years agoRemove virutil.h from all header files
Ján Tomko [Sun, 16 Feb 2020 22:09:15 +0000 (23:09 +0100)] 
Remove virutil.h from all header files

After the split of enum functions into virenum.h,
this function does not contain anything worth including
in another header file.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agovirsh: include virutil.h where used
Ján Tomko [Sun, 16 Feb 2020 21:59:28 +0000 (22:59 +0100)] 
virsh: include virutil.h where used

Include virutil.h in all files that use it,
instead of relying on it being pulled in somehow.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoInclude unistd.h where used
Ján Tomko [Sun, 16 Feb 2020 21:59:28 +0000 (22:59 +0100)] 
Include unistd.h where used

Include unistd.h in all files that use it, instead
of relying on it being pulled in via virutil.h

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agotools: virt-host-validate: move virutil.h include
Ján Tomko [Sun, 16 Feb 2020 21:59:15 +0000 (22:59 +0100)] 
tools: virt-host-validate: move virutil.h include

After the introduction of virenum.h in commit 285c5f28c41,
it is only needed in the C file.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoutil: virportallocator: add includes
Ján Tomko [Sun, 23 Feb 2020 22:11:34 +0000 (23:11 +0100)] 
util: virportallocator: add includes

Include both virutil.h and unistd.h.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoutil: vircgroup: include unistd.h rather than virutil.h
Ján Tomko [Sun, 16 Feb 2020 22:03:51 +0000 (23:03 +0100)] 
util: vircgroup: include unistd.h rather than virutil.h

There is nothing in the vircgroup.h header file
requiring virutil.h.

Remove it and include unistd.h in the C files.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agotests: include unistd.h instead of virutil.h
Ján Tomko [Sun, 23 Feb 2020 21:02:26 +0000 (22:02 +0100)] 
tests: include unistd.h instead of virutil.h

These tests do not use anything from virutil.h
apart from the transitive include.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoRemove virutil.h where possible
Ján Tomko [Sat, 22 Feb 2020 15:22:54 +0000 (16:22 +0100)] 
Remove virutil.h where possible

Historically, this file was a dump for most of our helper
functions and needed almost everywhere.
With the introduction of virfile.h and virstring.h,
and more importantly, virenum.h and the introduction
of GLib, that is no longer true.

Remove its include from C files that don't even use it.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
5 years agoutil: remove virHexToBin
Ján Tomko [Sun, 23 Feb 2020 19:54:46 +0000 (20:54 +0100)] 
util: remove virHexToBin

Now that it is no longer used.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
5 years agoRemove all use of virHexToBin
Ján Tomko [Sun, 23 Feb 2020 19:58:35 +0000 (20:58 +0100)] 
Remove all use of virHexToBin

Replace it by g_ascii_xdigit_value.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
5 years agoutil: uuid: remove use of virHexToBin
Ján Tomko [Sun, 23 Feb 2020 19:58:53 +0000 (20:58 +0100)] 
util: uuid: remove use of virHexToBin

Prefer g_ascii_xdigit_value to virHexToBin.

Check the return value of the function and
remove the g_ascii_isxdigit calls, since
they're done anyway internally.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
5 years agobhyve: utils: use relative path for virclosecallbacks.h
Ján Tomko [Mon, 24 Feb 2020 19:16:24 +0000 (20:16 +0100)] 
bhyve: utils: use relative path for virclosecallbacks.h

When moving virclosecallbacks to src/hypervisor, I did not
adjust all the possible includes in Makefiles.

Use a path relative to src to fix the build.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 25c29ac2f5842a7d48d9f9619317f68acf5d9995
5 years agobhyve: parse_command: slot, bus, func -> bus, slot, func
Ryan Moeller [Mon, 24 Feb 2020 06:46:21 +0000 (01:46 -0500)] 
bhyve: parse_command: slot, bus, func -> bus, slot, func

This *is* a no-op, but there was a period of sickening dread while
auditing to be sure that no actual confusion between bus and slot had
occurred. I hope to avoid that by following the conventional order.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agobhyve: command: refactor virBhyveProcessBuildBhyveCmd
Ryan Moeller [Mon, 24 Feb 2020 06:46:20 +0000 (01:46 -0500)] 
bhyve: command: refactor virBhyveProcessBuildBhyveCmd

Reduce the complexity by isolating loop bodies in separate functions.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agobhyve: add reboot support
Ryan Moeller [Mon, 24 Feb 2020 06:46:19 +0000 (01:46 -0500)] 
bhyve: add reboot support

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agobhyve: add hooks
Ryan Moeller [Mon, 24 Feb 2020 06:46:18 +0000 (01:46 -0500)] 
bhyve: add hooks

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agobhyve: monitor: refactor register/unregister
Ryan Moeller [Mon, 24 Feb 2020 06:46:17 +0000 (01:46 -0500)] 
bhyve: monitor: refactor register/unregister

Pull the code for registering and unregistering a bhyve monitor object
into separate functions to improve code clarity.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agobhyve: monitor: Make bhyveMonitor a virClass
Ryan Moeller [Mon, 24 Feb 2020 06:46:16 +0000 (01:46 -0500)] 
bhyve: monitor: Make bhyveMonitor a virClass

This makes lifecycle management a bit easier thanks to ref counting, and
it is closer to what the qemu driver does.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agobhyve: process: don't bother seeking to end of log
Ryan Moeller [Mon, 24 Feb 2020 06:46:15 +0000 (01:46 -0500)] 
bhyve: process: don't bother seeking to end of log

The file is opened O_APPEND.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agoconf: fix use after free
Ryan Moeller [Mon, 24 Feb 2020 06:46:14 +0000 (01:46 -0500)] 
conf: fix use after free

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agobhyve: process: remove unneeded header
Ryan Moeller [Mon, 24 Feb 2020 06:46:13 +0000 (01:46 -0500)] 
bhyve: process: remove unneeded header

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
5 years agovirclosecallbacks: move to src/hypervisor
Ján Tomko [Sat, 22 Feb 2020 17:16:19 +0000 (18:16 +0100)] 
virclosecallbacks: move to src/hypervisor

Just like virhostdev, this depends on domain_conf and
it's shared by multiple hypervisor drivers.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agovirhostdev: move to src/hypervisor
Ján Tomko [Sat, 22 Feb 2020 16:52:59 +0000 (17:52 +0100)] 
virhostdev: move to src/hypervisor

This module depends on domain_conf and is used directly by various
hypervisor drivers.

Move it to src/hypervisor.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoconf: move virHostdevIs functions
Ján Tomko [Sun, 16 Feb 2020 22:25:26 +0000 (23:25 +0100)] 
conf: move virHostdevIs functions

Currently they live in util/virhostdev.
However the virhostdev module is wrongly placed
in util, which is below conf/ in our hierarchy.

Move the functions that are actually used in conf/
to conf/ and remove the include of virhostdev.h
from domain_conf.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agosyntax-check: inclusion rule for src/hypervisor
Ján Tomko [Sat, 22 Feb 2020 17:02:42 +0000 (18:02 +0100)] 
syntax-check: inclusion rule for src/hypervisor

Allow it to be included by anything above mid_dirs.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoci: Fix handling of $PKG_CONFIG_LIBDIR
Andrea Bolognani [Mon, 24 Feb 2020 13:59:20 +0000 (14:59 +0100)] 
ci: Fix handling of $PKG_CONFIG_LIBDIR

There are two environment variables that are baked into our
cross-compilation container images at build time, $CONFIGURE_OPTS
and $PKG_CONFIG_LIBDIR: the former contain the options necessary
to convince configure to perform a cross build rather than a
native one, and the latter is necessary so that pkg-config will
locate the .pc files for MinGW libraries. Container images that
are not intended for cross-compilation will not have either one
defined.

The problem is that, while an empty $CONFIGURE_OPTS is completely
harmless, setting $PKG_CONFIG_LIBDIR to an emtpy value will
result in pkg-config not looking in its default search path, thus
not finding any library, and subsequently breaking native builds.

To work around this issue, only pass $PKG_CONFIG_LIBDIR to sudo
when the value is set in the calling environment.

Fixes: 71517ae4db35c4dcc6c358d60d3a6d5da0615d39
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
5 years agovirStorageFileGetMetadataFromFD: Remove unused 'backingFormat' argument
Peter Krempa [Fri, 21 Feb 2020 12:39:27 +0000 (13:39 +0100)] 
virStorageFileGetMetadataFromFD: Remove unused 'backingFormat' argument

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agovirStorageFileGetMetadataFromBuf: Remove 'backingFormat' argument
Peter Krempa [Fri, 21 Feb 2020 11:41:11 +0000 (12:41 +0100)] 
virStorageFileGetMetadataFromBuf: Remove 'backingFormat' argument

None of the callers actually use it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agovirStorageBackendGlusterRefreshVol: Refactor handling of backing store
Peter Krempa [Fri, 21 Feb 2020 11:28:14 +0000 (12:28 +0100)] 
virStorageBackendGlusterRefreshVol: Refactor handling of backing store

Take the format of the backing store from the 'meta' object directly and
use g_steal_pointer to steal the path.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agovirStorageSourceNewFromBacking: Also transfer the format
Peter Krempa [Fri, 21 Feb 2020 11:51:35 +0000 (12:51 +0100)] 
virStorageSourceNewFromBacking: Also transfer the format

When we create the new virStorageSource from the definitions stored in
the parent we should also use the 'backingStoreRawFormat' field to
populate the format.

Callers which use virStorageSourceNewFromBacking are also fixed to stop
setting the format manually.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: storage: Store backing store format in virStorageSource
Peter Krempa [Thu, 20 Feb 2020 16:40:35 +0000 (17:40 +0100)] 
util: storage: Store backing store format in virStorageSource

We store the backing file string in the structure so we should also
store the format so that callers can be simplified.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agovirStorageSourceUpdateCapacity: Drop 'probe' argument
Peter Krempa [Fri, 21 Feb 2020 11:21:56 +0000 (12:21 +0100)] 
virStorageSourceUpdateCapacity: Drop 'probe' argument

Both callers pass false. Since we frown upon format probing, remove the
unused possibility to do the probing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agotests: virstorage: Fix backing file format of created image
Peter Krempa [Fri, 21 Feb 2020 11:06:49 +0000 (12:06 +0100)] 
tests: virstorage: Fix backing file format of created image

We create some images for testing our code. We've recorded wrong format
of the backing file for one of the images though.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoapparmor: allow to call vhost-user-gpu
Christian Ehrhardt [Thu, 13 Feb 2020 11:29:00 +0000 (12:29 +0100)] 
apparmor: allow to call vhost-user-gpu

Configuring vhost-user-gpu like:
    <video>
      <driver name='vhostuser'/>
      <model type='virtio' heads='1'/>
    </video>
Triggers an apparmor denial like:
    apparmor="DENIED" operation="exec" profile="libvirtd"
    name="/usr/lib/qemu/vhost-user-gpu" pid=888257 comm="libvirtd"
    requested_mask="x" denied_mask="x" fsuid=0 ouid=0

This helper is provided by qemu for vhost-user-gpu and thereby being
in the same path as qemu_bridge_helper. Due to that adding a rule allowing
to call uses the same path list.

Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
5 years agodocs: add a kbase explaining security protections for QEMU passthrough
Daniel P. Berrangé [Thu, 6 Feb 2020 12:46:10 +0000 (12:46 +0000)] 
docs: add a kbase explaining security protections for QEMU passthrough

When using command line passthrough users will often trip up over the
security protections like SELinux, DAC, namespaces, etc which will
deny access to files they are passing. This document explains the
various protections and how to deal with their policy, and/or how
to disable them.

Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agoqemu: use correct backendType when checking memfd capability
Ján Tomko [Mon, 24 Feb 2020 12:32:30 +0000 (13:32 +0100)] 
qemu: use correct backendType when checking memfd capability

The backend name is memory-backend-memfd but we've been checking
for memory-backend-memory.

Reported by GCC on rawhide:
../../../src/internal.h:75:22: error: 'strcmp' of a string of length 21 and
an array of size 21 evaluates to nonzero [-Werror=string-compare]
../../../src/qemu/qemu_command.c:3525:20: note: in expansion of macro 'STREQ'
 3525 |         } else if (STREQ(backendType, "memory-backend-memory") &&
      |                    ^~~~~

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 24b74d187cab48a9dc9f409ea78900154c709579
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agotravis: Use dedicated images for MinGW builds
Andrea Bolognani [Mon, 10 Feb 2020 17:07:57 +0000 (18:07 +0100)] 
travis: Use dedicated images for MinGW builds

Now that we treat MinGW like any other cross-build target, we
should update our Travis CI configuration.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
5 years agoci: Make container environment available to scripts
Andrea Bolognani [Mon, 10 Feb 2020 17:02:55 +0000 (18:02 +0100)] 
ci: Make container environment available to scripts

For container images targeted at cross-building, we bake a small
amount of architecture-specific information in the environment so
that builds can work as expected without requiring additional work
from the user; unfortunately this information got lost as soon as
we called sudo. Explicitly allow it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
5 years agodocs: add news item about gnulib removal
Daniel P. Berrangé [Fri, 7 Feb 2020 16:20:13 +0000 (16:20 +0000)] 
docs: add news item about gnulib removal

While we have CI testing coverage for many platforms, we don't test any
non-glibc based Linux and there are other non-Linux platforms we don't
officially target, both of which might hit regressions.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agodocs: reduce excessive spacing in ToC for RST files
Daniel P. Berrangé [Thu, 6 Feb 2020 16:24:52 +0000 (16:24 +0000)] 
docs: reduce excessive spacing in ToC for RST files

The table of contents in the RST based files uses <p> tags inside the
<li>, which results in 1em's worth of spacing above & below each
entry. This results in way too much whitespace in the ToC.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
5 years agovz: Fix return value in error path
Rikard Falkeborn [Sat, 22 Feb 2020 23:22:47 +0000 (00:22 +0100)] 
vz: Fix return value in error path

If PrlVmDev_GetType(), PrlVmDev_GetIndex() or PrlVmCfg_GetBootDevCount()
fails, return false to indicate error. Returning -1 would be interpreted
as true when used in an if-statement.

Fixes: 8c9252aa6d95247537da0939b54fdd2f31695e32
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoesx: Same order of arguments in definition and declaration
Rikard Falkeborn [Sat, 22 Feb 2020 23:22:25 +0000 (00:22 +0100)] 
esx: Same order of arguments in definition and declaration

The order of arguments were not the same in the definition and
declaration. All callers use the same order as the definition, so there
is no bug, but change the function declaration to match the
implementation to avoid confusion.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: vireventglibwatch: watch for G_IO_HUP and G_IO_ERR
Ján Tomko [Wed, 19 Feb 2020 00:00:49 +0000 (01:00 +0100)] 
util: vireventglibwatch: watch for G_IO_HUP and G_IO_ERR

To more closely match the previous usage in virEventPollDispatchHandles,
where called the handle callback for any revents returned by poll.

This should fix the virtlogd error on subsequent domain startup:
  error: can't connect to virtlogd: Cannot open log file:
  '/var/log/libvirt/qemu/f28live.log': Device or resource busy
as well as virtlogd spinning caused by virLogHandlerDomainLogFileEvent
never being called on hangup.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: f8ab47cb4491dd72d866c1a96a9d94b8c3341de9
Fixes: 946a25274c46ffff46323c62f567ae7e753aa921
Tested-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
5 years agobhyve: driver: factor out conn
Ryan Moeller [Sat, 22 Feb 2020 06:38:45 +0000 (01:38 -0500)] 
bhyve: driver: factor out conn

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agobhyve: monitor: eliminate rc variable
Ryan Moeller [Sat, 22 Feb 2020 06:38:44 +0000 (01:38 -0500)] 
bhyve: monitor: eliminate rc variable

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agobhyve: fix indentation
Ryan Moeller [Sat, 22 Feb 2020 06:38:43 +0000 (01:38 -0500)] 
bhyve: fix indentation

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agobhyve: remove redundant parameter to virBhyveProcessStart()
Ryan Moeller [Sat, 22 Feb 2020 06:38:42 +0000 (01:38 -0500)] 
bhyve: remove redundant parameter to virBhyveProcessStart()

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agobhyve: simplify driver caps helpers
Ryan Moeller [Sat, 22 Feb 2020 06:38:41 +0000 (01:38 -0500)] 
bhyve: simplify driver caps helpers

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agobhyve: command: remove unused includes
Ján Tomko [Sun, 23 Feb 2020 13:33:30 +0000 (14:33 +0100)] 
bhyve: command: remove unused includes

These were needed for virBhyveTapGetRealDeviceName
but were not deleted after the function was moved
to src/util.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: a1bd8d2546c3e469f6a5ce119fad7da1cd473db5