]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
6 years agocpu: Rename cpuBaseline as virCPUBaseline
Jiri Denemark [Tue, 15 May 2018 08:50:32 +0000 (10:50 +0200)]
cpu: Rename cpuBaseline as virCPUBaseline

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agovirsh: Introduce new hypervisor-cpu-baseline command
Jiri Denemark [Mon, 7 May 2018 13:10:52 +0000 (15:10 +0200)]
virsh: Introduce new hypervisor-cpu-baseline command

This command is a virsh wrapper for virConnectBaselineHypervisorCPU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoremote: Implement virConnectBaselineHypervisorCPU
Jiri Denemark [Wed, 25 Apr 2018 11:43:24 +0000 (13:43 +0200)]
remote: Implement virConnectBaselineHypervisorCPU

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoIntroduce virConnectBaselineHypervisorCPU public API
Jiri Denemark [Tue, 24 Apr 2018 21:33:28 +0000 (23:33 +0200)]
Introduce virConnectBaselineHypervisorCPU public API

The new API computes the most feature-rich CPU which is compatible with
all given CPUs and can be provided by the specified hypervisor. It is a
more useful version of virConnectBaselineCPU, which doesn't consider any
hypervisor capabilities when computing the best CPU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
6 years agoqemu: Implement virConnectCompareHypervisorCPU
Jiri Denemark [Wed, 9 May 2018 12:06:46 +0000 (14:06 +0200)]
qemu: Implement virConnectCompareHypervisorCPU

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agovirsh: Introduce new hypervisor-cpu-compare command
Jiri Denemark [Mon, 30 Apr 2018 12:48:03 +0000 (14:48 +0200)]
virsh: Introduce new hypervisor-cpu-compare command

This command is a virsh wrapper for virConnectCompareHypervisorCPU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
6 years agoremote: Implement virConnectCompareHypervisorCPU
Jiri Denemark [Tue, 24 Apr 2018 20:19:03 +0000 (22:19 +0200)]
remote: Implement virConnectCompareHypervisorCPU

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoIntroduce virConnectCompareHypervisorCPU public API
Jiri Denemark [Tue, 24 Apr 2018 19:31:33 +0000 (21:31 +0200)]
Introduce virConnectCompareHypervisorCPU public API

This new API compares the given CPU description with the CPU the
specified hypervisor is able to provide on the host. It is a more useful
version of virConnectCompareCPU, which compares the CPU definition with
the host CPU without considering any specific hypervisor and its
abilities.

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

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
6 years agoqemu_capabilities: Introduce virQEMUCapsCacheLookupDefault
Jiri Denemark [Mon, 7 May 2018 20:51:57 +0000 (22:51 +0200)]
qemu_capabilities: Introduce virQEMUCapsCacheLookupDefault

virConnectGetDomainCapabilities needs to lookup QEMU capabilities
matching a specified binary, architecture, virt type, and machine type
while using default values when any of the parameters are not provided
by the user. Let's extract the lookup code into
virQEMUCapsCacheLookupDefault to make it reusable.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agovshExtractCPUDefXML: Accept domain capabilities XML
Jiri Denemark [Fri, 4 May 2018 21:46:55 +0000 (23:46 +0200)]
vshExtractCPUDefXML: Accept domain capabilities XML

The domain capabilities XML contains host CPU model tailored to a
specific hypervisor and since it's enclosed in <mode name='host-model'>
element rather then the required <cpu> it's impossible to directly use
the host CPU model as an input to, e.g., cpu-compare command. To make
this more convenient, vshExtractCPUDefXML now accepts full domain
capabilities XML and automatically transforms the host CPU models into
the form accepted by libvirt APIs.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoImprove documentation of virConnectGetCPUModelNames
Jiri Denemark [Fri, 11 May 2018 14:24:44 +0000 (16:24 +0200)]
Improve documentation of virConnectGetCPUModelNames

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agovirsh: Enhance documentation of cpu-models command
Jiri Denemark [Mon, 14 May 2018 12:10:48 +0000 (14:10 +0200)]
virsh: Enhance documentation of cpu-models command

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
6 years agovirsh: Enhance documentation of cpu-compare command
Jiri Denemark [Mon, 14 May 2018 11:58:28 +0000 (13:58 +0200)]
virsh: Enhance documentation of cpu-compare command

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agovirsh: Extract common code from cmdCPU{Compare,Baseline}
Jiri Denemark [Mon, 30 Apr 2018 12:47:54 +0000 (14:47 +0200)]
virsh: Extract common code from cmdCPU{Compare,Baseline}

Both cpu-compare and cpu-baseline commands accept more that just CPU
definition XML(s). For users' convenience they are able to extract the
CPU definition(s) even from domain XML or capabilities XML. The main
differences between the two commands is in the number of CPU definitions
they expect: cpu-compare wants only one CPU definition while
cpu-baseline expects one or more CPUs.

The extracted code forms a new vshExtractCPUDefXML function.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agovirsh: Move cpu-{baseline,compare} commands
Jiri Denemark [Thu, 26 Apr 2018 08:35:51 +0000 (10:35 +0200)]
virsh: Move cpu-{baseline,compare} commands

Similarly to cpu-models these two commands do not operate on a domain
and should be listed in the "Host and Hypervisor" commands section.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agonews: Document new API introduction
Michal Privoznik [Thu, 24 May 2018 06:55:14 +0000 (08:55 +0200)]
news: Document new API introduction

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: Implement virDomainDetachDeviceAlias
Michal Privoznik [Wed, 23 May 2018 13:09:23 +0000 (15:09 +0200)]
qemu: Implement virDomainDetachDeviceAlias

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu_hotplug: Allow asynchronous detach
Michal Privoznik [Wed, 23 May 2018 16:01:16 +0000 (18:01 +0200)]
qemu_hotplug: Allow asynchronous detach

The virDomainDetachDeviceAlias API is designed so that it only
sends detach request to qemu. It's user's responsibility to wait
for DEVICE_DELETED event, not libvirt's. Add @async flag to
qemuDomainDetach*Device() functions so that caller can chose if
detach is semi-synchronous (old virDomainDetachDeviceFlags()) or
fully asynchronous (new virDomainDetachDeviceFlags()).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemuDomainDetachDeviceLiveAndConfig: Avoid overwriting @ret
Michal Privoznik [Wed, 23 May 2018 13:59:55 +0000 (15:59 +0200)]
qemuDomainDetachDeviceLiveAndConfig: Avoid overwriting @ret

The fact that we are overwriting @ret multiple times makes it
difficult to see what is actually happening here. Follow our
traditional pattern where @ret is initialized to -1, and set to 0
only in case we know we succeeded.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemuDomainDetachDeviceLiveAndConfig: Don't use driver->caps directly
Michal Privoznik [Wed, 23 May 2018 13:06:11 +0000 (15:06 +0200)]
qemuDomainDetachDeviceLiveAndConfig: Don't use driver->caps directly

Funny, we obtain driver caps at the beginning of the function,
but then for unknown reason access driver->caps directly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu_hotplug: Use more gotos in qemuDomainDetach*Device
Michal Privoznik [Wed, 23 May 2018 16:36:57 +0000 (18:36 +0200)]
qemu_hotplug: Use more gotos in qemuDomainDetach*Device

We are overwriting @ret a lot. It makes hard to see what is
actually going on. Use more gotos. Two functions are fixed here:
qemuDomainDetachShmemDevice() and qemuDomainDetachWatchdog().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemuDomainDetachWatchdog: Don't release watchdog address twice
Michal Privoznik [Wed, 23 May 2018 16:35:52 +0000 (18:35 +0200)]
qemuDomainDetachWatchdog: Don't release watchdog address twice

On watchdog unplug, when qemu doesn't support DEVICE_DELETED event
(or couple of other reasons) we do two things:

1) release watchdog device address,
2) call qemuDomainRemoveWatchdog() which does 1) again.

This is potentially dangerous.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemuDomainDetachShmemDevice: Don't release shmem address twice
Michal Privoznik [Wed, 23 May 2018 16:19:16 +0000 (18:19 +0200)]
qemuDomainDetachShmemDevice: Don't release shmem address twice

On shmem unplug, when qemu doesn't support DEVICE_DELETED event
(or couple of other reasons) we do two things:

1) release shmem device address,
2) call qemuDomainRemoveShmemDevice() which does 1) again.

This is potentially dangerous.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemuDomainRemoveChrDevice: Release device address
Michal Privoznik [Wed, 23 May 2018 16:32:26 +0000 (18:32 +0200)]
qemuDomainRemoveChrDevice: Release device address

Instead of releasing address only sometimes in
qemuDomainDetachChrDevice() let's release it whenever the device
is actually removed from the domain definition.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agovirsh: Expose virDomainDetachDeviceAlias
Michal Privoznik [Mon, 21 May 2018 14:25:13 +0000 (16:25 +0200)]
virsh: Expose virDomainDetachDeviceAlias

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoremote: Implement virDomainDetachDeviceAlias
Michal Privoznik [Mon, 21 May 2018 11:24:23 +0000 (13:24 +0200)]
remote: Implement virDomainDetachDeviceAlias

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoIntroduce virDomainDetachDeviceAlias API
Michal Privoznik [Mon, 21 May 2018 11:15:21 +0000 (13:15 +0200)]
Introduce virDomainDetachDeviceAlias API

When detaching a device it can be uniquely identified by its
alias. Instead of misusing virDomainDetachDeviceFlags which has
the same signature introduce new function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoschema: Add missing block data for nodedev
John Ferlan [Sat, 19 May 2018 12:00:58 +0000 (08:00 -0400)]
schema: Add missing block data for nodedev

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

Commit id 'fe2af45b' added output for logical_block_size and
num_blocks for both removeable and fixed storage, but did not
update the nodedev capability causing virt-xml-validate to fail.
It's listed as optional only because it only prints if the
sizes are > 0. For a CDROM drive the values won't be formatted.

Update the nodedevxml2xmltest in order to output the values
for storage based on the logic from udevProcessRemoveableMedia
and udevProcessSD with respect to the logical_blocksize and
num_blocks calculations.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agoschema: Fix capability grammar for pagesElem
John Ferlan [Sat, 19 May 2018 11:02:47 +0000 (07:02 -0400)]
schema: Fix capability grammar for pagesElem

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

Commit id '02129b7c0' added a single pagesElem for slightly
different purposes. One usage was an output for host page size
listing and the other for NUMA supported page sizes. For the
former, only the pages unit and size are formatted, while for
the latter the pages unit, size, and availability data is formatted.

The virt-xml-validate would fail because it expected something
extra in the host page size output. So split up pagesElem a bit
and create pagesHost and pagesNuma for the differences.

Modify some capabilityschemadata output to have the output - even
though the results may not be realistic with respect to the
original incarnation of the data.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agoschema: Add microcode element to capability grammar
John Ferlan [Sat, 19 May 2018 10:47:27 +0000 (06:47 -0400)]
schema: Add microcode element to capability grammar

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

Commit id 'd2440f3b5' added printing the <microcode> for the
capabilities, but didn't update the capabilities schema.

While at it, update capabilityschemadata for caps-test2
and caps-test3 to output some value for validation.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agoschema: Add vzmigr for host migrate transport capability
John Ferlan [Fri, 18 May 2018 22:25:54 +0000 (18:25 -0400)]
schema: Add vzmigr for host migrate transport capability

Commit id '0eced74f3' added vzmigr as a valid option for
virCapabilitiesAddHostMigrateTransport, but didn't update
the capabilities schema resulting in possible virt-xml-validate
failure.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agoschema: Add rdma for host migrate transport capability
John Ferlan [Fri, 18 May 2018 22:00:23 +0000 (18:00 -0400)]
schema: Add rdma for host migrate transport capability

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

Commit id 'b3fd95e36' added rdma as a valid option for
virCapabilitiesAddHostMigrateTransport, but didn't update
the capabilities schema resulting in possible virt-xml-validate
failure.

While at it, update the capabilityschemadata for caps-qemu-kvm

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agoschema,tests: Use vpxmigr for host migrate transport capability
John Ferlan [Fri, 18 May 2018 21:47:08 +0000 (17:47 -0400)]
schema,tests: Use vpxmigr for host migrate transport capability

Commit id 'e4938ce2f' changed the esx_driver to use 'vpxmigr'
instead of esx for virCapabilitiesAddHostMigrateTransport, so
update the capabilities to allow virt-xml-validate to pass and
update the test to use the newer name.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agoschema: Remove xenmigr from host migrate transport capability
John Ferlan [Fri, 18 May 2018 22:05:07 +0000 (18:05 -0400)]
schema: Remove xenmigr from host migrate transport capability

Commit id '1dac5fbb' removed xenmigr as a capability option
for virCapabilitiesAddHostMigrateTransport but didn't update
the schema resulting in possible failure for virt-xml-validate.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agoschema: Add physical sizing element for storagevol grammar
John Ferlan [Fri, 18 May 2018 21:25:01 +0000 (17:25 -0400)]
schema: Add physical sizing element for storagevol grammar

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

Commit id '78661cb' added a physical output, but failed to update
the schema resulting in a failure from virt-xml-validate.

While at it - update the storagevolschemadata for the output.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

6 years agodisk: Allow settling to occur after reading partitions
John Ferlan [Thu, 24 May 2018 15:10:57 +0000 (11:10 -0400)]
disk: Allow settling to occur after reading partitions

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

In order to avoid a possible error as a result of kernel interactions
with the partition helper, let's use virWaitForDevices to force things
to settle down before attempting to open and read the partition. This
is related to https://bugzilla.redhat.com/show_bug.cgi?id=1264719.

Although perhaps overkill to have too many places to settle, since
we know that the act of reading the partitions via libvirt_parthelper
will cause udev activity/events - we just need to ensure udev has
been settled before proceding with usage of the device.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
6 years agodocs: Add news article for VM Generation ID
John Ferlan [Wed, 11 Apr 2018 20:01:54 +0000 (16:01 -0400)]
docs: Add news article for VM Generation ID

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
6 years agodomcaps: Add 'genid' to domain capabilities
John Ferlan [Fri, 27 Apr 2018 12:16:40 +0000 (08:16 -0400)]
domcaps: Add 'genid' to domain capabilities

Report domaincaps <features><genid supported='yes'/> if the guest
config accepts <genid/> or <genid>$GUID</genid>.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
6 years agoqemu: Add VM Generation ID to qemu command line
John Ferlan [Tue, 20 Mar 2018 22:29:46 +0000 (18:29 -0400)]
qemu: Add VM Generation ID to qemu command line

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

If the domain requests usage of the genid functionality,
then add the QEMU '-device vmgenid' to the command line
providing either the supplied or generated GUID value.

Add tests for both a generated and supplied GUID value.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
6 years agoqemu: Alter VM Generation ID for specific startup/launch transitions
John Ferlan [Mon, 9 Apr 2018 14:31:17 +0000 (10:31 -0400)]
qemu: Alter VM Generation ID for specific startup/launch transitions

Before we generate the command line for qemu, if the domain about to
be launched desires to utilize the VM Generation ID functionality, then
handle both the regenerating the GUID value for backup recovery (restore
operation) and the startup after snapshot as both require a new GUID to
be generated to allow the guest operating system to recognize the VM
is re-executing something that has already executed before.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
6 years agoqemu: Add VM Generation ID device capability
John Ferlan [Fri, 16 Mar 2018 21:23:05 +0000 (17:23 -0400)]
qemu: Add VM Generation ID device capability

Add the query of the device objects for the vmgenid device

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
6 years agoconf: Add VM Generation ID parse/format support
John Ferlan [Mon, 9 Apr 2018 16:10:02 +0000 (12:10 -0400)]
conf: Add VM Generation ID parse/format support

The VM Generation ID is a mechanism to provide a unique 128-bit,
cryptographically random, and integer value identifier known as
the GUID (Globally Unique Identifier) to the guest OS. The value
is used to help notify the guest operating system when the virtual
machine is executed with a different configuration.

This patch adds support for a new "genid" XML element similar to
the "uuid" element. The "genid" element can have two forms "<genid/>"
or "<genid>$GUID</genid>". If the $GUID is not provided, libvirt
will generate one and save it in the XML.

Since adding support for a generated GUID (or UUID like) value to
be displayed modifying the xml2xml test to include virrandommock.so
is necessary since it will generate a "known" value.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
6 years agotools: virsh: Add virshCellnoCompleter.
Roland Schulz [Fri, 25 May 2018 07:12:37 +0000 (09:12 +0200)]
tools: virsh: Add virshCellnoCompleter.

Signed-off-by: Roland Schulz <schullzroll@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agospec: Enable libssh on future RHEL
Jiri Denemark [Fri, 25 May 2018 07:45:15 +0000 (09:45 +0200)]
spec: Enable libssh on future RHEL

Future RHEL will certainly be modern enough to support libssh.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
6 years agonews: Add the event name completion
Lin Ma [Fri, 25 May 2018 05:41:12 +0000 (13:41 +0800)]
news: Add the event name completion

Signed-off-by: Lin Ma <lma@suse.com>
6 years agoqemu: domain: Use typecasted enum in qemuDomainDeviceDefPostParse
Peter Krempa [Thu, 24 May 2018 15:18:50 +0000 (17:18 +0200)]
qemu: domain: Use typecasted enum in qemuDomainDeviceDefPostParse

Rather than a lot of checks use a switch statement. This optimizes the
code as if one device is matched the rest will certainly not match.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: domain: Extract panic device def post parse code
Peter Krempa [Thu, 24 May 2018 15:01:55 +0000 (17:01 +0200)]
qemu: domain: Extract panic device def post parse code

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: domain: Extract video device def post parse code
Peter Krempa [Thu, 24 May 2018 15:01:55 +0000 (17:01 +0200)]
qemu: domain: Extract video device def post parse code

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: domain: Extract network device def post parse code
Peter Krempa [Thu, 24 May 2018 15:01:55 +0000 (17:01 +0200)]
qemu: domain: Extract network device def post parse code

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: domain: Extract disk post parse code into a function
Peter Krempa [Thu, 24 May 2018 14:55:20 +0000 (16:55 +0200)]
qemu: domain: Extract disk post parse code into a function

Later on, more stuff will be added so prevent the main function growing
out of control.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoFix indentation of virshAllocpagesPagesizeCompleter arguments.
Roland Schulz [Thu, 24 May 2018 09:04:33 +0000 (11:04 +0200)]
Fix indentation of virshAllocpagesPagesizeCompleter arguments.

Signed-off-by: Roland Schulz <schullzroll@gmail.com>
6 years agoAdd virshAllocpagesPagesizeCompleter to opts_freepages.
Roland Schulz [Thu, 24 May 2018 13:11:12 +0000 (15:11 +0200)]
Add virshAllocpagesPagesizeCompleter to opts_freepages.

Signed-off-by: Roland Schulz <schullzroll@gmail.com>
6 years agovirsh: Add event name completion to 'nodedev-event' command
Lin Ma [Wed, 23 May 2018 06:32:46 +0000 (14:32 +0800)]
virsh: Add event name completion to 'nodedev-event' command

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agovirsh-nodedev: Rename and move vshEventCallback to virshNodedevEventCallback
Lin Ma [Wed, 23 May 2018 06:32:45 +0000 (14:32 +0800)]
virsh-nodedev: Rename and move vshEventCallback to virshNodedevEventCallback

The next patch will use it in virsh-completer.c for returning the name
list of nodedev events.

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agovirsh: Add event name completion to 'pool-event' command
Lin Ma [Thu, 24 May 2018 13:16:26 +0000 (15:16 +0200)]
virsh: Add event name completion to 'pool-event' command

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agovirsh-pool: Rename and move vshEventCallback to virshPoolEventCallback
Lin Ma [Thu, 24 May 2018 13:19:29 +0000 (15:19 +0200)]
virsh-pool: Rename and move vshEventCallback to virshPoolEventCallback

The next patch will use it in virsh-completer.c for returning the name
list of pool events.

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agovirsh: Add event name completion to 'event' command
Lin Ma [Wed, 23 May 2018 06:32:42 +0000 (14:32 +0800)]
virsh: Add event name completion to 'event' command

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agovirsh: Move vshEventCallback structure definition to virsh-domain.h
Lin Ma [Wed, 23 May 2018 06:32:41 +0000 (14:32 +0800)]
virsh: Move vshEventCallback structure definition to virsh-domain.h

The next patch will use it in virsh-completer.c for returning the
strings of domain event name. At the same time, rename it to
avoid possible name clashing.

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agovirsh: Add event name completion to 'secret-event' command
Lin Ma [Wed, 23 May 2018 06:32:40 +0000 (14:32 +0800)]
virsh: Add event name completion to 'secret-event' command

The patch code originally authored by Michal Privoznik, Please refer to
https://www.redhat.com/archives/libvir-list/2018-May/msg01022.html

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agovirsh-secret: Rename vshEventCallback to virshSecretEventCallback
Lin Ma [Wed, 23 May 2018 06:32:39 +0000 (14:32 +0800)]
virsh-secret: Rename vshEventCallback to virshSecretEventCallback

The next patch will use it in virsh-completer.c for returning the name
list of secret events.

The patch code originally authored by Michal Privoznik, Please refer to
https://www.redhat.com/archives/libvir-list/2018-May/msg01022.html

I splitted it to 2 patches with tiny change.

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agonews: Add TLS non-shared storage migration
Peter Krempa [Wed, 23 May 2018 14:55:50 +0000 (16:55 +0200)]
news: Add TLS non-shared storage migration

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
6 years agoqemu: monitor: Remove diskSecretLookup monitor event
Peter Krempa [Tue, 22 May 2018 13:43:28 +0000 (15:43 +0200)]
qemu: monitor: Remove diskSecretLookup monitor event

After the text monitor was deleted this event can't be triggered.
Remove it and all the unnecessary code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: monitor: Remove dead code from text monitor
Peter Krempa [Tue, 22 May 2018 12:15:36 +0000 (14:15 +0200)]
qemu: monitor: Remove dead code from text monitor

Remove all unused functions and cleanup headers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: monitor: Drop calls to text monitor impl where possible
Peter Krempa [Tue, 22 May 2018 11:51:36 +0000 (13:51 +0200)]
qemu: monitor: Drop calls to text monitor impl where possible

Drop all conditional calls which have JSON variants, now that we
guarantee JSON monitor.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: monitor: Drop JSON versions of savevm/delvm/loadvm
Peter Krempa [Tue, 22 May 2018 11:46:05 +0000 (13:46 +0200)]
qemu: monitor: Drop JSON versions of savevm/delvm/loadvm

qemu did not QAPIfy these and the design and name will most probably
change. The replacements will not be compatible. Drop the JSON stubs and
annotate that there won't be a replacement.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: monitor: Drop QEMU_CHECK_MONITOR_JSON... macros
Peter Krempa [Tue, 22 May 2018 11:23:34 +0000 (13:23 +0200)]
qemu: monitor: Drop QEMU_CHECK_MONITOR_JSON... macros

Monitor is now JSON only. Drop the old cruft.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agotests: Drop qemumonitortest
Peter Krempa [Tue, 22 May 2018 12:00:38 +0000 (14:00 +0200)]
tests: Drop qemumonitortest

We don't use the text monitor since we dropped support for pre-JSON
qemus. Drop the test so that we can later delete the text monitor
support.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: monitor: Remove unused qemuMonitor(Add|Remove)HostNetwork
Peter Krempa [Tue, 22 May 2018 11:36:28 +0000 (13:36 +0200)]
qemu: monitor: Remove unused qemuMonitor(Add|Remove)HostNetwork

There are no callers for these. Remove them and the monitor
implementations.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: monitor: Drop fallback to text monitor for 'send-key' command
Peter Krempa [Tue, 22 May 2018 11:13:03 +0000 (13:13 +0200)]
qemu: monitor: Drop fallback to text monitor for 'send-key' command

The QMP version was added in qemu commit e4c8f004c55d9da3eae3e14 which
is included in v1.3.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agoqemu: monitor: Drop fallback to text monitor for 'inject-nmi' command
Peter Krempa [Tue, 22 May 2018 11:13:03 +0000 (13:13 +0200)]
qemu: monitor: Drop fallback to text monitor for 'inject-nmi' command

The QMP version was added in qemu commit ab49ab5c488237f3656689 which
is included in v1.1.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agotest driver: Make test capabilities report more hugepages per each NUMA node
Roland Schulz [Wed, 23 May 2018 12:40:40 +0000 (14:40 +0200)]
test driver: Make test capabilities report more hugepages per each NUMA node

Signed-off-by: Roland Schulz <schullzroll@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agoFix memory leak issues in virshAllocpagesPagesizeCompleter.
Roland Schulz [Wed, 23 May 2018 12:40:41 +0000 (14:40 +0200)]
Fix memory leak issues in virshAllocpagesPagesizeCompleter.

Signed-off-by: Roland Schulz <schullzroll@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agoqemu: migration: Add support for transporting NBD over TLS
Peter Krempa [Wed, 28 Feb 2018 14:20:17 +0000 (15:20 +0100)]
qemu: migration: Add support for transporting NBD over TLS

Implement the secure way to transport non-shared storage data across
migrations. The new approach uses blockdev-add to create the NBD client
so that the TLS secret object can be specified.

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

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: migration: Extract code responsible for calling drive-mirror
Peter Krempa [Fri, 23 Feb 2018 09:29:08 +0000 (10:29 +0100)]
qemu: migration: Extract code responsible for calling drive-mirror

Separate the code relevant for this approach so that we can later add a
second implementation without making the function messy.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: migration: Rename NBD migration functions
Peter Krempa [Thu, 22 Feb 2018 15:11:59 +0000 (16:11 +0100)]
qemu: migration: Rename NBD migration functions

Drop the mention of 'drive mirror' from the function names and mention
NBD. This will help when adding the 'blockdev mirror' migration code
which will allow using TLS.

Additionally fix some of the function comments to make more sense

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agotest: Add status XML test for NBD tls storage migration
Peter Krempa [Mon, 12 Mar 2018 15:36:24 +0000 (16:36 +0100)]
test: Add status XML test for NBD tls storage migration

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: domain: Add private data for NBD migration storage source definition
Peter Krempa [Wed, 28 Feb 2018 14:22:30 +0000 (15:22 +0100)]
qemu: domain: Add private data for NBD migration storage source definition

Allow saving various aspects necessary to do NBD migration via blockdev
by storing a 'virStorageSource' in the disk private data meant to store
the NBD target of migration. Along with this add code to parse and
format it into the status XML.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: domain: Extract parsing of NBD status XML
Peter Krempa [Mon, 12 Mar 2018 14:33:39 +0000 (15:33 +0100)]
qemu: domain: Extract parsing of NBD status XML

Extract the NBD portion of the 'job' status XML element parser into a
separate function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: domain: Extract NBD disk migration private data formatting
Peter Krempa [Mon, 5 Mar 2018 16:00:44 +0000 (17:00 +0100)]
qemu: domain: Extract NBD disk migration private data formatting

We will be adding source data to it so extract it to a separate function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: block: Add helpers for hot-adding virStorageSource via blockdev
Peter Krempa [Fri, 23 Feb 2018 11:59:13 +0000 (12:59 +0100)]
qemu: block: Add helpers for hot-adding virStorageSource via blockdev

These helpers add infrastructure which simplifies adding and rolling
back virStorageSources to a running qemu instance. Using of the helper
structure and separate functions allows for a much cleaner code in the
section dealing with the monitor.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: monitor: Introduce support for blockdev-mirror
Peter Krempa [Tue, 1 Mar 2016 13:55:34 +0000 (14:55 +0100)]
qemu: monitor: Introduce support for blockdev-mirror

drive-mirror allows only file targets. Introduce support for
blockdev-mirror that is able to copy to any BDS described by a node name
in qemu.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: monitor: Add implementation for blockdev-add and blockdev-del
Peter Krempa [Tue, 20 Feb 2018 17:04:47 +0000 (18:04 +0100)]
qemu: monitor: Add implementation for blockdev-add and blockdev-del

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: monitor: Factor out and document code to format QMP command
Peter Krempa [Tue, 20 Feb 2018 16:56:46 +0000 (17:56 +0100)]
qemu: monitor: Factor out and document code to format QMP command

Move formatting of the qemu command out of qemuMonitorJSONMakeCommandRaw
to qemuMonitorJSONMakeCommandInternal to allow greater reusability and
document the function better.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: caps: Add capability for blockdev-add/blockdev-del
Peter Krempa [Thu, 29 Mar 2018 11:22:04 +0000 (13:22 +0200)]
qemu: caps: Add capability for blockdev-add/blockdev-del

The capability also represents that 'blockdev-add' is functional. It's
necessary to detect it via presence of 'blockdev-del' since blockdev-add
did not have the unsupported 'x-blockdev-add' version previously and
thus would be marked as present even if we could not use it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: migration: Don't access disk members without lock
Peter Krempa [Fri, 23 Feb 2018 08:03:49 +0000 (09:03 +0100)]
qemu: migration: Don't access disk members without lock

The initiation of a synchronous block job in the NBD storage migration
code was placed after entering the monitor thus after the lock on the VM
object was unlocked. Thankfully nothing bad could happen in this
situation since the migration job prevents any disk detaches or other
modifications of the domain object.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoconf: domain: Export virDomainStorageSourceParse
Peter Krempa [Wed, 9 May 2018 14:21:55 +0000 (16:21 +0200)]
conf: domain: Export virDomainStorageSourceParse

It will be used when parsing the migration private data.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: block: Don't nest storage layer properties into format layer
Peter Krempa [Mon, 14 May 2018 11:54:12 +0000 (13:54 +0200)]
qemu: block: Don't nest storage layer properties into format layer

Reference the storage via node name rather than inlining it. This is
the approach that will be used with -blockdev/blockdev-add since it
allows more control and is more future proof.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agodocs: news: Add entry about the newly supported 'output' audio codec
Filip Alac [Tue, 22 May 2018 11:12:35 +0000 (13:12 +0200)]
docs: news: Add entry about the newly supported 'output' audio codec

Signed-off-by: Filip Alac <filipalac@gmail.com>
Signed-off-by: Erik Skultety <eskultet@redhat.com>
6 years agotests: qemu: Extend the test suite with the 'output' sound codec
Filip Alac [Tue, 22 May 2018 11:12:34 +0000 (13:12 +0200)]
tests: qemu: Extend the test suite with the 'output' sound codec

Affects qemuxml2xmltest and qemuxml2argvtest.

Signed-off-by: Filip Alac <filipalac@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
6 years agoqemu: capabilities: Add 'hda-output' sound codec to capabilities
Filip Alac [Tue, 22 May 2018 11:12:33 +0000 (13:12 +0200)]
qemu: capabilities: Add 'hda-output' sound codec to capabilities

Signed-off-by: Filip Alac <filipalac@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
6 years agoconf: Introduce codec type 'output'
Filip Alac [Tue, 22 May 2018 11:12:32 +0000 (13:12 +0200)]
conf: Introduce codec type 'output'

Introduce support for codec type 'output' ('hda-output' in QEMU) for ich6
and ich9 sound devices, which only advertises a line-out in the guest.
This has been available in QEMU since 0.14.

Signed-off-by: Filip Alac <filipalac@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
6 years agoqemu: only pass -sandbox off if supported
Ján Tomko [Fri, 18 May 2018 12:57:51 +0000 (14:57 +0200)]
qemu: only pass -sandbox off if supported

This way we don't rely on QEMU supplying the -sandbox option
without CONFIG_SECCOMP.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoReintroduce QEMU_CAPS_SECCOMP_SANDBOX
Ján Tomko [Fri, 18 May 2018 12:46:54 +0000 (14:46 +0200)]
Reintroduce QEMU_CAPS_SECCOMP_SANDBOX

Commit 766d5c1b deprecated the capability, because we were assuming
it for every QEMU binary. At the time of the introduction, there
was no way to probe for this via QMP.

However since QEMU 1.5.0 (which is the earliest version we support)
we can rely on the query-command-line-options command to detect this
feature.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoqemu: Deny hugepages for non-existent NUMA nodes
Michal Privoznik [Fri, 18 May 2018 10:54:46 +0000 (12:54 +0200)]
qemu: Deny hugepages for non-existent NUMA nodes

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

Just like ec982f6d929f3c23 denies hugepages for non-existent
guest NUMA nodes in case there are some nodes configured.
Unfortunately, when there are none, qemuBuildNumaArgStr() is not
called and thus we have to have check in qemuBuildMemPathStr()
too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
6 years agoAdd NUMA support to virshAllocpagesPagesizeCompleter.
Roland Schulz [Tue, 22 May 2018 09:54:44 +0000 (11:54 +0200)]
Add NUMA support to virshAllocpagesPagesizeCompleter.

Signed-off-by: Roland Schulz <schullzroll@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
6 years agocpu: define the 'virt-ssbd' CPUID feature bit (CVE-2018-3639)
Daniel P. Berrangé [Mon, 21 May 2018 22:05:08 +0000 (23:05 +0100)]
cpu: define the 'virt-ssbd' CPUID feature bit (CVE-2018-3639)

Some AMD processors only support a non-architectural means of
enabling Speculative Store Bypass Disable. To allow simplified
handling in virtual environments, hypervisors will expose an
architectural definition through CPUID bit 0x80000008_EBX[25].
This needs to be exposed to guest OS running on AMD x86 hosts to
allow them to protect against CVE-2018-3639.

Note that since this CPUID bit won't be present in the host CPUID
results on physical hosts, it will not be enabled automatically
in guests configured with "host-model" CPU unless using QEMU
version >= 2.9.0. Thus for older versions of QEMU, this feature
must be manually enabled using policy=force. Guests using the
"host-passthrough" CPU mode do not need special handling.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
6 years agocpu: define the 'ssbd' CPUID feature bit (CVE-2018-3639)
Daniel P. Berrangé [Mon, 21 May 2018 22:05:07 +0000 (23:05 +0100)]
cpu: define the 'ssbd' CPUID feature bit (CVE-2018-3639)

New microcode introduces the "Speculative Store Bypass Disable"
CPUID feature bit. This needs to be exposed to guest OS to allow
them to protect against CVE-2018-3639.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
6 years agotools: Tiny clean-ups for two functions in virsh-completer.c
Martin Kletzander [Mon, 21 May 2018 09:00:01 +0000 (11:00 +0200)]
tools: Tiny clean-ups for two functions in virsh-completer.c

These two functions were duplicating some cleanup paths, so let's just merge
both cleanup and error paths together.  To distinguish whether we need to
clean-up the return value let's keep it in @tmp until the function is successful
in which case we set @ret to the value of @tmp and set @tmp to NULL.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
6 years agotravis: Print test log file from distcheck as well
Martin Kletzander [Mon, 30 Apr 2018 17:49:07 +0000 (19:49 +0200)]
travis: Print test log file from distcheck as well

Since we started using `make distcheck` in travis, the part that's printing the
tests/test-suite.log file is rather pointless.  Let's check for both known
locations (keeping the previous one there on purpose) so that the output is
usable again.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
6 years agoAdd virshAllocpagesPagesizeCompleter
Roland Schulz [Mon, 21 May 2018 11:53:44 +0000 (13:53 +0200)]
Add virshAllocpagesPagesizeCompleter

Returns list of host page sizes from capabilities XML.

Signed-off-by: Roland Schulz <schullzroll@gmail.com>