]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
2 years agoconf: skip resource cache init if sysfs files are missing
Daniel P. Berrangé [Mon, 10 Oct 2022 16:45:02 +0000 (17:45 +0100)]
conf: skip resource cache init if sysfs files are missing

On aarch64 the 'id' file is not present for CPU cache information in
sysfs. This causes the local stateful hypervisor drivers to fail to
initialize capabilities:

virStateInitialize:657 : Initialisation of cloud-hypervisor state driver failed: no error

The 'no error' is because the 'virFileReadValueNNN' methods return
ret==-2, with no error raised, when the requeted file does not exist.
None of the callers were checking for this scenario when populating
capabilities. The most graceful way to handle this is to skip the
cache bank in question.  This fixes failure to launch libvirt drivers
on certain aarch64 hardware.

Fixes: https://gitlab.com/libvirt/libvirt/-/issues/389
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agoconf: define autoptr func for virCapsHostCacheBankFree
Daniel P. Berrangé [Tue, 11 Oct 2022 09:02:47 +0000 (10:02 +0100)]
conf: define autoptr func for virCapsHostCacheBankFree

This lets us simplify the cleanup paths when populating the host cache
bank information in capabilities XML.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agovirGetConnectGeneric: Only delegate existing identities
Martin Kletzander [Fri, 11 Nov 2022 13:19:50 +0000 (14:19 +0100)]
virGetConnectGeneric: Only delegate existing identities

Inside virt-qemu-run, just like in virsh for example, there is no
identity set in the current thread, so we should not try to set it,
otherwise things like connecting to other drivers might fail and on
top of that there is no error set so the user can't even see what's
wrong.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2000075
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoutil: Remove return value from virTypedParamsCopy
Martin Kletzander [Fri, 11 Nov 2022 13:15:43 +0000 (14:15 +0100)]
util: Remove return value from virTypedParamsCopy

It is already nonfallible, so just change the return type to void.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoci: regenerate with lcitool manifest
Daniel P. Berrangé [Mon, 14 Nov 2022 10:47:29 +0000 (10:47 +0000)]
ci: regenerate with lcitool manifest

Two notable changes:

 * the macOS platform has switched from x86_64 to aarch64
 * if a new pipeline starts before a previous one finishes,
   jobs marked 'interruptible: true' will be auto-cancelled

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agoqemu_validate: Use proper printf directive for ssize_t
Michal Privoznik [Fri, 11 Nov 2022 13:55:14 +0000 (14:55 +0100)]
qemu_validate: Use proper printf directive for ssize_t

In one of recent commits an error message was introduced. In this
message a variable of type ssize_t is being printed out, but the
corresponding format directive is %ld instead of %zd which breaks
on 32bits systems. Switch to proper format.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoFix spelling
Tim Wiederhake [Fri, 11 Nov 2022 15:48:48 +0000 (16:48 +0100)]
Fix spelling

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
2 years agotests: Fix libxlxml2domconfigtest
Jim Fehlig [Fri, 11 Nov 2022 00:55:38 +0000 (17:55 -0700)]
tests: Fix libxlxml2domconfigtest

Downstream CI recently encountered failures of libxlxml2domconfigtest when
building libvirt packages against Xen 4.17 rc3 packages. The test fails on
vnuma_hvm config, where suddently the actual json produced by
libxl_domain_config_to_json() contains a 'pnode' entry in the 'vnuma_nodes'
list, which is absent in the expected json. It appears the test has thus far
passed by luck. E.g. I was able to make the test pass in the failing
environment by changing the meson buildtype from debugoptimized to debug.

When a VM config contains vnuma settings, libxlMakeVnumaList() checks if the
number of requested vnuma nodes exceeds the number of physical nodes. The
number of physical nodes is retrieved with libxl_get_physinfo(), which can
return wildly different results in the context of unit tests. This change
mocks libxl_get_physinfo() to return consistent results. All fields of the
libxl_physinfo struct are set to 0 except nr_nodes, which is set to 6 to
ensure the vnuma_hvm configuration is properly tested.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: Add command-line to generate SGX EPC memory backend
Lin Yang [Fri, 11 Nov 2022 01:21:27 +0000 (17:21 -0800)]
qemu: Add command-line to generate SGX EPC memory backend

According to the result parsing from xml, add the argument of
SGX EPC memory backend into QEMU command line.

$ qemu-system-x86_64 \
    ...... \
    -object '{"qom-type":"memory-backend-epc","id":"memepc0","prealloc":true,"size":67108864,"host-nodes":[0,1],"policy":"bind"}' \
    -object '{"qom-type":"memory-backend-epc","id":"memepc1","prealloc":true,"size":16777216,"host-nodes":[2,3],"policy":"bind"}' \
    -machine sgx-epc.0.memdev=memepc0,sgx-epc.0.node=0,sgx-epc.1.memdev=memepc1,sgx-epc.1.node=1

Signed-off-by: Lin Yang <lin.a.yang@intel.com>
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agosecurity_dac: Set DAC label on SGX /dev nodes
Michal Privoznik [Fri, 11 Nov 2022 01:21:26 +0000 (17:21 -0800)]
security_dac: Set DAC label on SGX /dev nodes

As advertised in previous commits, QEMU needs to access
/dev/sgx_vepc and /dev/sgx_provision files when SGX memory
backend is configured. And if it weren't for QEMU's namespaces,
we wouldn't dare to relabel them, because they are system wide
files. But if namespaces are used, then we can set label on
domain's private copies, just like we do for /dev/sev.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu_namespace: Create SGX related nodes in domain's namespace
Michal Privoznik [Fri, 11 Nov 2022 01:21:25 +0000 (17:21 -0800)]
qemu_namespace: Create SGX related nodes in domain's namespace

This is similar to the previous commit. SGX memory backend needs
to access /dev/sgx_vepc and /dev/sgx_provision. Create these
nodes in domain's private /dev when required by domain's config.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu_cgroup: Allow SGX in devices controller
Michal Privoznik [Fri, 11 Nov 2022 01:21:24 +0000 (17:21 -0800)]
qemu_cgroup: Allow SGX in devices controller

SGX memory backend needs to access /dev/sgx_vepc (which allows
userspace to allocate "raw" EPC without an associated enclave)
and /dev/sgx_provision (which allows creating provisioning
enclaves). Allow these two devices in CGroups if a domain is
configured so.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoconf: Introduce SGX EPC element into device memory xml
Lin Yang [Fri, 11 Nov 2022 01:21:23 +0000 (17:21 -0800)]
conf: Introduce SGX EPC element into device memory xml

<devices>
  ...
  <memory model='sgx-epc'>
    <source>
      <nodemask>0-1</nodemask>
    </source>
    <target>
      <size unit='KiB'>512</size>
      <node>0</node>
    </target>
  </memory>
  ...
</devices>

Signed-off-by: Lin Yang <lin.a.yang@intel.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoconf: expose SGX feature in domain capabilities
Haibin Huang [Fri, 11 Nov 2022 01:21:22 +0000 (17:21 -0800)]
conf: expose SGX feature in domain capabilities

Extend hypervisor capabilities to include sgx feature. When available,
the hypervisor supports launching an VM with SGX on Intel platfrom.
The SGX feature tag privides additional details like section size and
sgx1 or sgx2.

Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoConvert QMP capabilities to domain capabilities
Haibin Huang [Fri, 11 Nov 2022 01:21:21 +0000 (17:21 -0800)]
Convert QMP capabilities to domain capabilities

the QMP capabilities:
  {"return":
    {
      "sgx": true,
      "section-size": 1024,
      "flc": true
    }
  }

the domain capabilities:
  <sgx>
    <flc>yes</flc>
    <epc_size>1</epc_size>
  </sgx>

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: Get SGX capabilities form QMP
Haibin Huang [Fri, 11 Nov 2022 01:21:20 +0000 (17:21 -0800)]
qemu: Get SGX capabilities form QMP

Generate the QMP command for query-sgx-capabilities and the command
return SGX capabilities from QMP.

{"execute":"query-sgx-capabilities"}

the right reply:
  {"return":
    {
      "sgx": true,
      "section-size": 197132288,
      "flc": true
    }
  }

the error reply:
  {"error":
    {"class": "GenericError", "desc": "SGX is not enabled in KVM"}
  }

Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agodomain_capabilities: Define SGX capabilities structs
Haibin Huang [Fri, 11 Nov 2022 01:21:19 +0000 (17:21 -0800)]
domain_capabilities: Define SGX capabilities structs

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: capabilities: Detect support for JSON args for -netdev
Peter Krempa [Wed, 9 Nov 2022 17:12:12 +0000 (18:12 +0100)]
qemu: capabilities: Detect support for JSON args for -netdev

JSON args for -netdev were added as precursor for adding the 'dgram'
network backend type. Enable the detection and update test cases using
DO_TEST_CAPS_LATEST.

Enabling the capability also ensures that the -netdev argument is
validated against the QAPI schema of 'netdev_add' which was already
implemented but not enabled.

The parser supporting JSON was added by qemu commit f3eedcddba3 and
enabled when adding stream/dgram netdevs in commit 5166fe0ae46.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agonodedev: ignore EINVAL from libudev in udevEventHandleThread
Christian Ehrhardt [Thu, 10 Nov 2022 09:36:28 +0000 (10:36 +0100)]
nodedev: ignore EINVAL from libudev in udevEventHandleThread

Certain udev entries might be of a size that makes libudev emit EINVAL
which right now leads to udevEventHandleThread exiting. Due to no more
handling events other elements of libvirt will start pushing for events
to be consumed which never happens causing a busy loop burning a cpu
without any gain.

After evaluation of the example case discussed in in #245 and a test
run ignoring EINVAL it was considered safe to add EINVAL to the ignored
errnos to not exit udevEventHandleThread giving it more resilience.

The root cause is in systemd and by now was discussed and fixed via
https://github.com/systemd/systemd/issues/24987, but hardening libvirt
to be able to better deal with EINVAL returned still is the right thing
to avoid the reported busy loops on systemd with older systemd versions.

Fixes: https://gitlab.com/libvirt/libvirt/-/issues/245
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agomaint: fix "mixing declarations and code" errors
Roman Bogorodskiy [Tue, 8 Nov 2022 19:12:22 +0000 (20:12 +0100)]
maint: fix "mixing declarations and code" errors

clang 14.0.5 complains:

../src/bhyve/bhyve_device.c:42:29: error: mixing declarations and code
is incompatible with standards before C99
[-Werror,-Wdeclaration-after-statement]
    virDomainPCIAddressSet *addrs = opaque;
                            ^
1 error generated.

And a few similar errors in some other places, mainly bhyve related.
Apply a trivial fix to resolve that.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Wed, 9 Nov 2022 13:20:00 +0000 (14:20 +0100)]
Translated using Weblate (Swedish)

Currently translated at 48.3% (5017 of 10386 strings)

Translation: libvirt/libvirt
Translate-URL: https://translate.fedoraproject.org/projects/libvirt/libvirt/sv/

Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
2 years agoqemuMonitorJSONQueryNamedBlockNodes: Drop 'flat' argument
Peter Krempa [Wed, 9 Nov 2022 10:12:48 +0000 (11:12 +0100)]
qemuMonitorJSONQueryNamedBlockNodes: Drop 'flat' argument

All callers pass the equivalent of looking up whether qemu supports
QEMU_CAPS_QMP_QUERY_NAMED_BLOCK_NODES_FLAT. Use
'mon->queryNamedBlockNodesFlat' directly and refactor all callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemuMonitorJSONBlockStatsUpdateCapacityBlockdev: Use 'flat' mode of query-named-block...
Peter Krempa [Wed, 9 Nov 2022 10:06:25 +0000 (11:06 +0100)]
qemuMonitorJSONBlockStatsUpdateCapacityBlockdev: Use 'flat' mode of query-named-block-nodes

'query-named-block-nodes' in non-flat mode returns redundantly nested
data under the 'backing-image' field. Fortunately we don't need it when
updating the capacity stats.

This function was unfortunately not fixed originally when the support
for flat mode was added. Use the flat cached in the monitor object to
force flat mode if available.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: monitor: Store whether 'query-named-block-nodes' supports 'flat' parameter
Peter Krempa [Wed, 9 Nov 2022 09:53:49 +0000 (10:53 +0100)]
qemu: monitor: Store whether 'query-named-block-nodes' supports 'flat' parameter

Rather than having callers always pass this flag store it in the
qemuMonitor object. Following patches will convert the code to use this
internal flag.

In the future this will also simplify removal when all supported qemu
versions will support the new mode.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: qemuBlockGetNamedNodeData: Remove pointless error path
Peter Krempa [Wed, 9 Nov 2022 09:45:27 +0000 (10:45 +0100)]
qemu: qemuBlockGetNamedNodeData: Remove pointless error path

We don't need automatic freeing for 'blockNamedNodeData' and we can
directly return it rather than checking it for NULL-ness first.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoconf: Introduce support for 'hv-avic' Hyper-V enlightenment
Peter Krempa [Tue, 8 Nov 2022 12:29:04 +0000 (13:29 +0100)]
conf: Introduce support for 'hv-avic' Hyper-V enlightenment

qemu-6.2 introduced support for the hv-avic enlightenment which allows
to use Hyper-V SynIC with hardware APICv/AVIC enabled.

Implement the libvirt support for it.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/402
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agocpu: x86: Introduce the 'hv-avic' feature
Peter Krempa [Tue, 8 Nov 2022 12:51:54 +0000 (13:51 +0100)]
cpu: x86: Introduce the 'hv-avic' feature

Based on qemu commit e1f9a8e8c90ae54387922e33e5ac4fd759747d01 introduce
the hv-avic feature in leaf 0x40000004, EAX 0x00000200 (1 << 9).

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agocpu: x86: Group and order hyperv enlightenment features by leaf and register
Peter Krempa [Tue, 8 Nov 2022 12:42:41 +0000 (13:42 +0100)]
cpu: x86: Group and order hyperv enlightenment features by leaf and register

'VIR_CPU_x86_HV_STIMER_DIRECT' is reported under leaf 0x40000003,
but the data is in the EDX register. Create a new group for such
features and move them after the 0x40000003 EAX group.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoconf: virDomainDefFormatFeatures: Realign line
Peter Krempa [Tue, 8 Nov 2022 12:42:51 +0000 (13:42 +0100)]
conf: virDomainDefFormatFeatures: Realign line

Don't break line after opening bracket of a funtion call.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Add missing 'break' statement in couple of switch()-es
Michal Privoznik [Wed, 9 Nov 2022 12:52:40 +0000 (13:52 +0100)]
qemu: Add missing 'break' statement in couple of switch()-es

In recent commits migration of TPM on shared storage was
introduced. However, I've only complied it with gcc and thus did
not notice that clang build fails due to missing break; at the
end of some (empty) cases in switch() statements.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: tpm: Never remove state on outgoing migration and shared storage
Stefan Berger [Mon, 24 Oct 2022 10:28:48 +0000 (06:28 -0400)]
qemu: tpm: Never remove state on outgoing migration and shared storage

Never remove the TPM state on outgoing migration if the storage setup
has shared storage for the TPM state files. Also, do not do the security
cleanup on outgoing migration if shared storage is detected.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: tpm: Avoid security labels on incoming migration with shared storage
Stefan Berger [Mon, 24 Oct 2022 10:28:47 +0000 (06:28 -0400)]
qemu: tpm: Avoid security labels on incoming migration with shared storage

When using shared storage there is no need to apply security labels on the
storage since the files have to have been labeled already on the source
side and we must assume that the source and destination side have been
setup to use the same uid and gid for running swtpm as well as share the
same security labels. Whether the security labels can be used at all
depends on the shared storage and whether and how it supports them.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: tpm: Pass --migration option to swtpm if supported and needed
Stefan Berger [Mon, 24 Oct 2022 10:28:46 +0000 (06:28 -0400)]
qemu: tpm: Pass --migration option to swtpm if supported and needed

Pass the --migration option to swtpm if swptm supports it (starting
with v0.8) and if the TPM's state is written on shared storage. If this
is the case apply the 'release-lock-outgoing' parameter with this
option and apply the 'incoming' parameter for incoming migration so that
swtpm releases the file lock on the source side when the state is migrated
and locks the file on the destination side when the state is received.

If a started swtpm instance is running with the necessary options of
migrating with share storage then remember this with a flag in the
virDomainTPMPrivateDef.

Report an error if swtpm does not support the --migration option and an
incoming migration across shared storage is requested.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: tpm: Add support for storing private TPM-related data
Stefan Berger [Mon, 24 Oct 2022 10:28:45 +0000 (06:28 -0400)]
qemu: tpm: Add support for storing private TPM-related data

Add support for storing private TPM-related data. The first private data
will be related to the capability of the started swtpm indicating whether
it is capable of migration with a shared storage setup since that requires
support for certain command line flags that were only becoming available
in v0.8.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: tpm: Conditionally create storage on incoming migration
Stefan Berger [Mon, 24 Oct 2022 10:28:44 +0000 (06:28 -0400)]
qemu: tpm: Conditionally create storage on incoming migration

Do not create storage if the TPM state files are on shared storage and
there's an incoming migration since in this case the storage directory
must already exist. Also do not run swtpm_setup in this case.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: tpm: Introduce qemuTPMHasSharedStorage()
Stefan Berger [Mon, 24 Oct 2022 10:28:43 +0000 (06:28 -0400)]
qemu: tpm: Introduce qemuTPMHasSharedStorage()

New qemuTPMHasSharedStorage() function is introduced which
returns whether the swtpm state directory is on a shared
filesystem (e.g. NFS).

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoutil: Add parsing support for swtpm's cmdarg-migration capability
Stefan Berger [Mon, 24 Oct 2022 10:28:42 +0000 (06:28 -0400)]
util: Add parsing support for swtpm's cmdarg-migration capability

Add support for parsing swtpm 'cmdarg-migration' capability (since v0.8).

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agocpu_map: Add missing x86 feature "vgif"
Tim Wiederhake [Wed, 19 Oct 2022 13:43:15 +0000 (15:43 +0200)]
cpu_map: Add missing x86 feature "vgif"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "v-vmsave-vmload"
Tim Wiederhake [Wed, 19 Oct 2022 13:42:49 +0000 (15:42 +0200)]
cpu_map: Add missing x86 feature "v-vmsave-vmload"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "avic"
Tim Wiederhake [Wed, 19 Oct 2022 13:42:29 +0000 (15:42 +0200)]
cpu_map: Add missing x86 feature "avic"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "intel-pt-lip"
Tim Wiederhake [Wed, 19 Oct 2022 13:42:08 +0000 (15:42 +0200)]
cpu_map: Add missing x86 feature "intel-pt-lip"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "xfd"
Tim Wiederhake [Wed, 19 Oct 2022 13:41:46 +0000 (15:41 +0200)]
cpu_map: Add missing x86 feature "xfd"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "arch-lbr"
Tim Wiederhake [Wed, 19 Oct 2022 13:41:35 +0000 (15:41 +0200)]
cpu_map: Add missing x86 feature "arch-lbr"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "tsx-ldtrk"
Tim Wiederhake [Wed, 19 Oct 2022 13:41:14 +0000 (15:41 +0200)]
cpu_map: Add missing x86 feature "tsx-ldtrk"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "serialize"
Tim Wiederhake [Wed, 19 Oct 2022 13:41:00 +0000 (15:41 +0200)]
cpu_map: Add missing x86 feature "serialize"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "avx512-fp16"
Tim Wiederhake [Wed, 19 Oct 2022 13:40:28 +0000 (15:40 +0200)]
cpu_map: Add missing x86 feature "avx512-fp16"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "avx512-vp2intersect"
Tim Wiederhake [Wed, 19 Oct 2022 13:40:11 +0000 (15:40 +0200)]
cpu_map: Add missing x86 feature "avx512-vp2intersect"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "pks"
Tim Wiederhake [Wed, 19 Oct 2022 13:39:37 +0000 (15:39 +0200)]
cpu_map: Add missing x86 feature "pks"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "bus-lock-detect"
Tim Wiederhake [Wed, 19 Oct 2022 13:39:15 +0000 (15:39 +0200)]
cpu_map: Add missing x86 feature "bus-lock-detect"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 features "sgx-..."
Tim Wiederhake [Wed, 19 Oct 2022 13:37:26 +0000 (15:37 +0200)]
cpu_map: Add missing x86 features "sgx-..."

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "sgx2"
Tim Wiederhake [Wed, 19 Oct 2022 13:37:02 +0000 (15:37 +0200)]
cpu_map: Add missing x86 feature "sgx2"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "sgx1"
Tim Wiederhake [Wed, 19 Oct 2022 13:36:37 +0000 (15:36 +0200)]
cpu_map: Add missing x86 feature "sgx1"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "sgx-exinfo"
Tim Wiederhake [Wed, 19 Oct 2022 13:36:16 +0000 (15:36 +0200)]
cpu_map: Add missing x86 feature "sgx-exinfo"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "sgxlc"
Tim Wiederhake [Wed, 19 Oct 2022 13:35:51 +0000 (15:35 +0200)]
cpu_map: Add missing x86 feature "sgxlc"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature "sgx"
Tim Wiederhake [Wed, 19 Oct 2022 13:35:24 +0000 (15:35 +0200)]
cpu_map: Add missing x86 feature "sgx"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add missing x86 feature alias names
Tim Wiederhake [Wed, 19 Oct 2022 12:58:43 +0000 (14:58 +0200)]
cpu_map: Add missing x86 feature alias names

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Rename sync_qemu_i386.py
Tim Wiederhake [Mon, 17 Oct 2022 14:20:45 +0000 (16:20 +0200)]
cpu_map: Rename sync_qemu_i386.py

This makes the naming more consistent beween the two scripts
synching the feature list and the model list.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_map: Add script to sync from QEMU i386 cpu features
Tim Wiederhake [Fri, 14 Oct 2022 15:45:40 +0000 (17:45 +0200)]
cpu_map: Add script to sync from QEMU i386 cpu features

This script is intended to help in synchronizing i386 QEMU cpu
feature definitions with libvirt.

QEMU's attribute list for the "max-x86_64-cpu" contains non-cpu-feature
items and needs to be filtered before being useful.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu: make x86 feature alias names machine readable
Tim Wiederhake [Fri, 14 Oct 2022 14:30:47 +0000 (16:30 +0200)]
cpu: make x86 feature alias names machine readable

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu_x86: Ignore alias names
Tim Wiederhake [Mon, 17 Oct 2022 11:20:42 +0000 (13:20 +0200)]
cpu_x86: Ignore alias names

A later patch will add alias names to the feature map. They will be used
in virQEMUCapsCPUFeatureTranslate and for synchronizing the list with QEMU.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agocpu-data.py: Allow for more than child in feature nodes
Tim Wiederhake [Mon, 17 Oct 2022 09:55:08 +0000 (11:55 +0200)]
cpu-data.py: Allow for more than child in feature nodes

cpu-data.py assumes that all "feature" nodes have exactly one child.
This assumption will no longer be true when the cpumap includes alias-
names for features.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_DISK_WRITE_CACHE
Michal Privoznik [Tue, 8 Nov 2022 07:20:59 +0000 (08:20 +0100)]
qemu: Retire QEMU_CAPS_DISK_WRITE_CACHE

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_DISK_WRITE_CACHE
Michal Privoznik [Tue, 8 Nov 2022 07:41:06 +0000 (08:41 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_DISK_WRITE_CACHE

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_DISK_WRITE_CACHE
Michal Privoznik [Tue, 8 Nov 2022 07:40:07 +0000 (08:40 +0100)]
qemu: Assume QEMU_CAPS_DISK_WRITE_CACHE

Introduced in QEMU's commit of v2.7.0-rc0~32^2~5 the .write-cache
attribute of virtio-blk dvice is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

The change in some .args is justified, because the qemuxml2argvdatatest
runs these test caseses with very minimalistic set of capabilities,
that's nowhere near real life scenario.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_DISK_SHARE_RW
Michal Privoznik [Tue, 8 Nov 2022 07:20:56 +0000 (08:20 +0100)]
qemu: Retire QEMU_CAPS_DISK_SHARE_RW

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_DISK_SHARE_RW
Michal Privoznik [Tue, 8 Nov 2022 07:38:06 +0000 (08:38 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_DISK_SHARE_RW

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_DISK_SHARE_RW
Michal Privoznik [Tue, 8 Nov 2022 07:36:08 +0000 (08:36 +0100)]
qemu: Assume QEMU_CAPS_DISK_SHARE_RW

Introduced in QEMU's commit of v2.9.0-rc0~48^2~25 the .share-rw
attribute of virtio-blk device is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

The change in controller-order.args is justified, because the
qemuxml2argvdatatest runs the test case with very minimalistic
set of capabilities, that's nowhere near real life scenario.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES
Michal Privoznik [Tue, 8 Nov 2022 07:20:41 +0000 (08:20 +0100)]
qemu: Retire QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_BLK_QUEUE_SIZE
Michal Privoznik [Tue, 8 Nov 2022 07:24:04 +0000 (08:24 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_BLK_QUEUE_SIZE

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES
Michal Privoznik [Tue, 8 Nov 2022 07:22:16 +0000 (08:22 +0100)]
qemu: Assume QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES

Introduced in QEMU's commit of v2.7.0-rc0~83^2 the .num-queues
attribute of virtio-blk device is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_BLOCKIO
Michal Privoznik [Tue, 8 Nov 2022 07:13:00 +0000 (08:13 +0100)]
qemu: Retire QEMU_CAPS_BLOCKIO

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_BLOCKIO
Michal Privoznik [Tue, 8 Nov 2022 07:12:43 +0000 (08:12 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_BLOCKIO

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_BLOCKIO
Michal Privoznik [Tue, 8 Nov 2022 07:08:16 +0000 (08:08 +0100)]
qemu: Assume QEMU_CAPS_BLOCKIO

Introduced in QEMU's commit of v0.13.0-rc0~1072 the
.logical_block_size attribute of virtio-blk device is always
available for all QEMU versions we support (4.2.0, currently).
Therefore, we can assume the capability is always set and thus
doesn't need to be checked for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_VIRTIO_NET_FAILOVER
Michal Privoznik [Mon, 7 Nov 2022 14:14:16 +0000 (15:14 +0100)]
qemu: Retire QEMU_CAPS_VIRTIO_NET_FAILOVER

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_FAILOVER
Michal Privoznik [Mon, 7 Nov 2022 14:14:06 +0000 (15:14 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_FAILOVER

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_VIRTIO_NET_FAILOVER
Michal Privoznik [Mon, 7 Nov 2022 14:13:44 +0000 (15:13 +0100)]
qemu: Assume QEMU_CAPS_VIRTIO_NET_FAILOVER

Introduced in QEMU's commit of v4.2.0-rc0~23^2~4 the .failover
attribute of virtio-net device is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_VIRTIO_NET_HOST_MTU
Michal Privoznik [Mon, 7 Nov 2022 14:12:37 +0000 (15:12 +0100)]
qemu: Retire QEMU_CAPS_VIRTIO_NET_HOST_MTU

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_HOST_MTU
Michal Privoznik [Mon, 7 Nov 2022 14:12:21 +0000 (15:12 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_HOST_MTU

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_VIRTIO_NET_HOST_MTU
Michal Privoznik [Mon, 7 Nov 2022 14:12:09 +0000 (15:12 +0100)]
qemu: Assume QEMU_CAPS_VIRTIO_NET_HOST_MTU

Introduced in QEMU's commit of v2.9.0-rc0~162^2~10 the .host_mtu
attribute of virtio-net device is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_VIRTIO_NET_TX_QUEUE_SIZE
Michal Privoznik [Mon, 7 Nov 2022 14:09:09 +0000 (15:09 +0100)]
qemu: Retire QEMU_CAPS_VIRTIO_NET_TX_QUEUE_SIZE

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_TX_QUEUE_SIZE
Michal Privoznik [Mon, 7 Nov 2022 14:08:55 +0000 (15:08 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_TX_QUEUE_SIZE

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_VIRTIO_NET_TX_QUEUE_SIZE
Michal Privoznik [Mon, 7 Nov 2022 14:08:25 +0000 (15:08 +0100)]
qemu: Assume QEMU_CAPS_VIRTIO_NET_TX_QUEUE_SIZE

Introduced in QEMU's commit of v2.10.0-rc0~95^2~20 the
.tx_queue_size attribute of virtio-net device is always available
for all QEMU versions we support (4.2.0, currently). Therefore,
we can assume the capability is always set and thus doesn't need
to be checked for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE
Michal Privoznik [Mon, 7 Nov 2022 14:07:18 +0000 (15:07 +0100)]
qemu: Retire QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE
Michal Privoznik [Mon, 7 Nov 2022 14:07:02 +0000 (15:07 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE
Michal Privoznik [Mon, 7 Nov 2022 14:06:49 +0000 (15:06 +0100)]
qemu: Assume QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE

Introduced in QEMU's commit of v2.8.0-rc0~116^2~26 the
.rx_queue_size attribute of virtio-net device is always available
for all QEMU versions we support (4.2.0, currently). Therefore,
we can assume the capability is always set and thus doesn't need
to be checked for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_QUERY_DISPLAY_OPTIONS
Michal Privoznik [Mon, 7 Nov 2022 11:52:18 +0000 (12:52 +0100)]
qemu: Retire QEMU_CAPS_QUERY_DISPLAY_OPTIONS

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_QUERY_DISPLAY_OPTIONS
Michal Privoznik [Mon, 7 Nov 2022 14:02:05 +0000 (15:02 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_QUERY_DISPLAY_OPTIONS

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_QUERY_DISPLAY_OPTIONS
Michal Privoznik [Mon, 7 Nov 2022 14:01:35 +0000 (15:01 +0100)]
qemu: Assume QEMU_CAPS_QUERY_DISPLAY_OPTIONS

Introduced in QEMU's commit of v3.1.0-rc3~8^2 the
query-display-options command is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_BITMAP_MERGE
Michal Privoznik [Mon, 7 Nov 2022 11:52:11 +0000 (12:52 +0100)]
qemu: Retire QEMU_CAPS_BITMAP_MERGE

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_BITMAP_MERGE
Michal Privoznik [Mon, 7 Nov 2022 13:57:54 +0000 (14:57 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_BITMAP_MERGE

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_QUERY_CURRENT_MACHINE
Michal Privoznik [Mon, 7 Nov 2022 11:52:02 +0000 (12:52 +0100)]
qemu: Retire QEMU_CAPS_QUERY_CURRENT_MACHINE

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_QUERY_CURRENT_MACHINE
Michal Privoznik [Mon, 7 Nov 2022 13:55:24 +0000 (14:55 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_QUERY_CURRENT_MACHINE

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_QUERY_CURRENT_MACHINE
Michal Privoznik [Mon, 7 Nov 2022 13:55:04 +0000 (14:55 +0100)]
qemu: Assume QEMU_CAPS_QUERY_CURRENT_MACHINE

Introduced in QEMU's commit of v4.0.0-rc0~202^2~3 the
query-current-machine command is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_QOM_LIST_PROPERTIES
Michal Privoznik [Mon, 7 Nov 2022 11:51:51 +0000 (12:51 +0100)]
qemu: Retire QEMU_CAPS_QOM_LIST_PROPERTIES

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_QOM_LIST_PROPERTIES
Michal Privoznik [Mon, 7 Nov 2022 13:48:12 +0000 (14:48 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_QOM_LIST_PROPERTIES

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_QOM_LIST_PROPERTIES
Michal Privoznik [Mon, 7 Nov 2022 13:47:19 +0000 (14:47 +0100)]
qemu: Assume QEMU_CAPS_QOM_LIST_PROPERTIES

Introduced in QEMU's commit of v2.12.0-rc0~48^2~25 the
qom-list-properties command is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_DUMP_COMPLETED
Michal Privoznik [Mon, 7 Nov 2022 13:46:10 +0000 (14:46 +0100)]
qemu: Retire QEMU_CAPS_DUMP_COMPLETED

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_capabilities: Stop detecting QEMU_CAPS_DUMP_COMPLETED
Michal Privoznik [Mon, 7 Nov 2022 13:45:31 +0000 (14:45 +0100)]
qemu_capabilities: Stop detecting QEMU_CAPS_DUMP_COMPLETED

All supported QEMUs have this capability. Stop detecting it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Assume QEMU_CAPS_DUMP_COMPLETED
Michal Privoznik [Mon, 7 Nov 2022 13:43:02 +0000 (14:43 +0100)]
qemu: Assume QEMU_CAPS_DUMP_COMPLETED

Introduced in QEMU's commit of v2.6.0-rc0~74^2~6 the
DUMP_COMPLETED event is always available for all QEMU versions we
support (4.2.0, currently). Therefore, we can assume the
capability is always set and thus doesn't need to be checked for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Retire QEMU_CAPS_VSERPORT_CHANGE
Michal Privoznik [Mon, 7 Nov 2022 11:51:23 +0000 (12:51 +0100)]
qemu: Retire QEMU_CAPS_VSERPORT_CHANGE

Now that nothing uses this capability, it can be retired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>