Cole Robinson
4d5f6951a2
man: Don't document broken --controller virtio-scsi
...
AFAICT this has never worked.
2019-05-15 18:00:24 -04:00
Cole Robinson
f5c5c815e4
cli: Add --seclabel alias for --security
...
The <domain> XML it alters is called <seclabel>, and security is
really generic sounding. Add the alias and switch the documentation
over to prefer --seclabel
2019-05-15 17:49:58 -04:00
Cole Robinson
656045478d
tests: Verify all cli subopts and aliases are triggered
...
Add some cli infrastructure and testsuite magic to track whether
a cli suboption and cli alias is triggered. This makes it harder
to accidentally add cli option regressions.
We make some exceptions for shared options, requiring them to only
be tested once, otherwise trying to test all address options for
every device will be a giant pain.
2019-05-15 17:45:19 -04:00
Cole Robinson
23f7b4fa7e
tests: clitest: Cover all address.* options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
7eedcac1e7
tests: clitest: Cover all char options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
2b613d2ef5
tests: clitest: Cover all --rng options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
65f3197a02
tests: clitest: Cover all --vcpus and --video options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
cc6ca85ce8
tests: clitest: Cover all --network options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
e2e9c0cadd
tests: clitest: Cover all --sysinfo options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
a8fedab9f2
tests: clitest: Cover all --memdev options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
d5c7771e49
tests: clitest: Cover all --graphics options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
56f47faf49
tests: clitest: Cover all --features options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
4543ef2baa
tests: clitest: Cover all --disk options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
0947045f11
tests: clitest: Cover all --cpu options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
58daf6722e
tests: clitest: Cover all --controller options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
5f5c7daca1
tests: clitest: Cover all --clock options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
f986273e17
tests: cli: Cover all --hostdev options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
fa8cbe5628
tests: clitest: Cover all --memorybacking options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
0da94e25b2
tests: clitest: Cover all --blkiotune and --idmap aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
dbb6f338ab
tests: clitest: Cover all --vsock options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
084122dfbe
tests: clitest: Cover all --tpm options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
0b2206be0e
tests: clitest: Cover all --pm and --numatune options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
300400f26c
tests: clitest: Cover all --boot options and aliases
2019-05-15 17:34:01 -04:00
Cole Robinson
dc0f9632ee
tests: Repurpose spice-gl test as a generic singleton test
...
We need another entrypoint for singleton testing
2019-05-15 17:34:01 -04:00
Cole Robinson
1403815a3f
tests: Add a bunch of example devices to the test drivers
...
Eventually we may want these for virt-xml or UI testing. Fill in
some XML for every top level element libvirt currently supports.
2019-05-15 15:23:59 -04:00
Cole Robinson
61639d9b14
cli: Only use regex matching if the subopt contains [
...
If we use regex matching all the time, we can erroneously match
certain strings. This already let some cli regressions through
with recent patches.
2019-05-15 14:47:53 -04:00
Cole Robinson
384607e502
cli: Strip find_inst regex from completion results
...
It doesn't really work with the argcompleter, so show the non-regex
version of the suboption
2019-05-15 13:18:39 -04:00
Cole Robinson
7c835321be
cli: --blkiotune: Convert device.* to device[0-9]*.
...
Libvirt can represent multiple <device> blocks here, so mirror that
on the command line
2019-05-15 09:59:25 -04:00
Cole Robinson
9d3ad1ed56
cli: --disk: Convert source.host.* to source.host[0-9]*.
...
There can be multiple hosts specified. We already have this wired
up in the XML handling, just need to expose it on the command line
2019-05-15 09:47:53 -04:00
Cole Robinson
83e7c95e1b
cli: Fix comment typo
2019-05-14 15:59:40 -04:00
Cole Robinson
af2182d890
cli: --memorybacking: Add discard= and allocation.mode=
2019-05-14 15:58:36 -04:00
Cole Robinson
90f5b29789
cli: --memorybacking: Convert hugepages.page to a list
...
There can be more than 1 <memoryBacking><hugepages><page> element.
Adjust the cli options to match:
- hugepages.page[0-9]*.size
- hugepages.page[0-9]*.unit
- hugepages.page[0-9]*.nodeset
2019-05-14 15:58:36 -04:00
Cole Robinson
334d18ab93
cli: --vcpus: add vcpus.vcpu[0-9]* config
...
This adds the following suboptions to configure the <domain><vcpus>
list:
- vcpus.vcpu[0-9]*.id
- vcpus.vcpu[0-9]*.enabled
- vcpus.vcpu[0-9]*.hotpluggable
- vcpus.vcpu[0-9]*.order
2019-05-14 15:58:36 -04:00
Cole Robinson
908faaffee
cli: --cpu: add topology.*
...
We already expose these via --vcpus, but that's for back compat. New
options are under --cpu at:
topology.sockets
topology.cores
topology.threads
2019-05-14 14:36:40 -04:00
Cole Robinson
a6b5f11f13
cli: --metadata: add genid= and genid_enable=
...
The latter is for triggering <genid/> bool XML, which tells libvirt
to auto-allocate a UUID. The cli isn't really XML conformant but
I can't think of anything better that is self advertising
2019-05-14 14:36:40 -04:00
Cole Robinson
7083294e2c
cli: --sysinfo: Add oemStrings.entry[0-9]*
2019-05-14 14:36:40 -04:00
Cole Robinson
d16425aa8f
cli: --sysinfo: Add chasis suboptions
...
Add the following --sysinfo suboptions:
- chassis.manufacturer
- chassis.version
- chassis.serial
- chassis.asset
- chassis.sku
2019-05-14 14:36:40 -04:00
Cole Robinson
773625bfab
cli: --boot: add initarg[0-9]*=X
...
We keep the old initargs="string" support as well, but also advertise the
explict XML list support
2019-05-14 14:36:40 -04:00
Cole Robinson
e5480829b6
cli: --boot: Add explicit boot[0-9].dev config
...
We keep the old bootorder support as well, but also advertise the
explict XML list support
2019-05-14 14:36:40 -04:00
Pavel Hrdina
c11d6ba4d7
domcapabilities: detect MDS new vulnerability
...
There is a new security feature 'md-clear' that mitigates recent CPU
Microarchitectural Store Buffer Data vulnerability.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2019-05-14 20:11:39 +02:00
Pavel Hrdina
d8789a124f
man: improve sysinfo description
...
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2019-05-14 19:55:18 +02:00
Pavel Hrdina
897578aee2
cli: fix sysinfo type parsing
...
If the optstr is "host" or "emulate" the optdict['type'] was already set
to the proper value so that condition is useless and we should set the
default optdict['type'] only if there was no type specified by user,
otherwise it is overwrite by our 'smbios' default.
In addition if invalid type is specified let libvirt to do the error
checking.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1707379
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2019-05-14 19:55:18 +02:00
Cole Robinson
c31443a810
cli: Add driver.ats= and driver.iommu for virtio devices
...
This is shared XML schema used by multiple devices that support virtio
2019-05-14 12:45:57 -04:00
Cole Robinson
2344de6f38
cli: device: Add boot.loadparm=
2019-05-14 12:33:07 -04:00
Cole Robinson
13dbc715be
cli: Add common device options for --memdev and chardevices
...
They both can handle explicit address config and alias config, so
wire it up
2019-05-14 12:25:00 -04:00
Cole Robinson
0e8e3c0bbf
cli: device: add alias.name=
2019-05-14 12:23:00 -04:00
Cole Robinson
0eb2b167f9
cli: device: Add address.zpci.uid and address.zpci.fid
2019-05-14 12:20:53 -04:00
Cole Robinson
afce300084
cli: Centralize boot.order and address option registering
...
We will use this as an entry point for future additions.
2019-05-14 12:16:13 -04:00
Cole Robinson
ca0f9e18cc
cli: Add --serial target.model.name=
...
This maps to XML like:
<serial>
<target>
<model name='X'/>
</target>
</serial>
2019-05-14 11:57:50 -04:00
Cole Robinson
bf2fe0790e
cli: Add --serial target.port= option
...
This maps to the XML like:
<serial>
<target port='X'/>
</serial>
2019-05-14 11:57:50 -04:00