]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
2 years agoconf: Move setting type for NVRAM source
Andrea Bolognani [Thu, 16 Jun 2022 15:53:11 +0000 (17:53 +0200)]
conf: Move setting type for NVRAM source

When the 'type' attribute is present we'd end up overwriting
this value via virDomainStorageSourceParse(). Moving this
assignment makes the current code clearer and will also help
with upcoming changes.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoconf: Rename virDomainLoaderDefParseXMLNvram()
Andrea Bolognani [Thu, 16 Jun 2022 15:49:08 +0000 (17:49 +0200)]
conf: Rename virDomainLoaderDefParseXMLNvram()

The previous name was identical, modulo the case, to the
completely unrelated virDomainNVRAMDefParseXML().

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoconf: Move virDomainLoaderDefParseXML()
Andrea Bolognani [Thu, 16 Jun 2022 16:01:46 +0000 (18:01 +0200)]
conf: Move virDomainLoaderDefParseXML()

Pure code movement, needed to prepare for upcoming changes.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Add more firmware tests
Andrea Bolognani [Thu, 9 Jun 2022 13:56:32 +0000 (15:56 +0200)]
tests: Add more firmware tests

Note that some of these new tests are displaying incorrect or
suboptimal behavior. When we address those in upcoming patches,
this will be highlighted by changes in the test data.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Don't use loader.secure=no with firmware autoselection
Andrea Bolognani [Thu, 9 Jun 2022 16:05:33 +0000 (18:05 +0200)]
tests: Don't use loader.secure=no with firmware autoselection

This currently has not effect whatsoever, so it's just cluttering
the input files.

We're going to add specific handling for this scenario, as well
as a test case covering it, in an upcoming commit.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Don't set NVRAM path manually
Andrea Bolognani [Thu, 9 Jun 2022 13:51:56 +0000 (15:51 +0200)]
tests: Don't set NVRAM path manually

This does the opposite of

  commit 392292cd99ee275f986e9e21f325a9fee8e8bbfe
  Author: Daniel P. Berrangé <berrange@redhat.com>
  Date:   Wed Feb 23 12:45:51 2022 +0000

    tests: don't use auto-generated NVRAM path in tests

in order to minimize input files.

We're going to add a test case specifically covering the use of
custom NVRAM paths with firmware autoselection in an upcoming
commit.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Use minimal hardware for firmware tests
Andrea Bolognani [Thu, 9 Jun 2022 13:02:19 +0000 (15:02 +0200)]
tests: Use minimal hardware for firmware tests

When testing firmware selection, we don't really care about any
of the hardware assigned to the VM, and in fact it's better to
keep it as minimal as possible to make sure that the focus
remains on the firmware bits.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Rename and reorganize firmware tests
Andrea Bolognani [Thu, 9 Jun 2022 13:54:36 +0000 (15:54 +0200)]
tests: Rename and reorganize firmware tests

Group all tests related to firmware selection together and give
them consistent names that leave room for further tests to be
added in an upcoming commit.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Drop bios-nvram-os-interleave test
Andrea Bolognani [Fri, 17 Jun 2022 13:23:46 +0000 (15:23 +0200)]
tests: Drop bios-nvram-os-interleave test

This was introduced in

  commit 5882064084a733a661759f8f3461f7cbc259175e
  Author: Martin Kletzander <mkletzan@redhat.com>
  Date:   Wed Feb 25 15:45:26 2015 +0100

    tests: Add test for os interleaving

to ensure a recent change in the schema was behaving correctly.

Seven years later, it no longer seems very useful to keep it
around.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Use firmware autoselection on aarch64
Andrea Bolognani [Fri, 17 Jun 2022 14:20:16 +0000 (16:20 +0200)]
tests: Use firmware autoselection on aarch64

This simplifies the test data without negatively impacting test
coverage.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agotests: Remove firmware bits from unrelated tests
Andrea Bolognani [Fri, 17 Jun 2022 12:59:56 +0000 (14:59 +0200)]
tests: Remove firmware bits from unrelated tests

The pci-bridge-many-disks test case is not related to firmware
handling at all, so we can trim it without losing any coverage.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agosecurity_selinux.c: Relabel existing mode="bind" UNIX sockets
David Michael [Tue, 28 Jun 2022 12:33:41 +0000 (08:33 -0400)]
security_selinux.c: Relabel existing mode="bind" UNIX sockets

This supports sockets created by libvirt and passed by FD using the
same method as in security_dac.c.

Signed-off-by: David Michael <david@bigbadwolfsecurity.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agovirnettlscontext: Don't set DH parameters ourselves
Michal Privoznik [Wed, 29 Jun 2022 09:16:06 +0000 (11:16 +0200)]
virnettlscontext: Don't set DH parameters ourselves

According to [1]:

  Prior to GnuTLS 3.6.0 for the ephemeral or anonymous
  Diffie-Hellman (DH) TLS ciphersuites the application was
  required to generate or provide DH parameters. That is no
  longer necessary as GnuTLS utilizes DH parameters and
  negotiation from [RFC7919].

This allows us to:

  a) drop the code that's setting DH params,
  b) drop @dhParams member from _virNetTLSContext struct. and
  c) drop gnutls_dh_params_generate2() mock.

1: https://www.gnutls.org/manual/html_node/Parameter-generation.html

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agomeson: Require gnutls-3.6.0 or newer
Michal Privoznik [Wed, 29 Jun 2022 14:01:59 +0000 (16:01 +0200)]
meson: Require gnutls-3.6.0 or newer

Released almost 5 years ago, gnutls-3.6.0 brings some important
features (which are utilized in next commit). Hence, require that
version at least.

Per repology, currently shipped versions are:

                 RHEL-8: 3.6.16
                 RHEL-9: 3.7.3
              Debian 11: 3.7.1
              Debian 12: 3.7.6
     openSUSE Leap 15.3: 3.6.7
       Ubuntu LTS 20.04: 3.6.13
       Ubuntu LTS 22.04: 3.7.3
             FreeBSD 12: 3.7.6
              Fedora 34: 3.7.4
              Fedora 35: 3.7.6

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agovirnetdevbandwidthtest: Test QoS for OVS
Michal Privoznik [Tue, 28 Jun 2022 08:02:01 +0000 (10:02 +0200)]
virnetdevbandwidthtest: Test QoS for OVS

Ever since v7.6.0-rc1~235 we can use ovs-vsctl to set QoS instead
of tc. However, we don't have a test that's verifying generated
cmd line for ovs-vsctl.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2 years agovirnetdevbandwidthtest: Reformat TC cmd line
Michal Privoznik [Tue, 28 Jun 2022 08:01:54 +0000 (10:01 +0200)]
virnetdevbandwidthtest: Reformat TC cmd line

Our coding style expects a long line to be broken into shorter
lines which are then aligned on the first character, for
instance:

  "some string that's broken "
  "into multiple lines"

However, one can argue that there are few cases where shifting
the alignment makes the code more readable. And this is the case
of expected cmd line for DO_TEST_SET() where a long cmd line can
be aligned on the arguments rather than the binary:

  TC " filter ..."
     " police ..."

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2 years agovirnetdevbandwidthtest: Drop unused testMinimalStruct
Michal Privoznik [Tue, 28 Jun 2022 08:00:08 +0000 (10:00 +0200)]
virnetdevbandwidthtest: Drop unused testMinimalStruct

The last usage of the testMinimalStruct struct was removed in
v1.2.2-rc1~206 which forgot to remove the struct as well. Remove
it now.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2 years agovirnetdevbandwidthtest: Drop unnecessary brackets
Michal Privoznik [Tue, 28 Jun 2022 06:41:43 +0000 (08:41 +0200)]
virnetdevbandwidthtest: Drop unnecessary brackets

Some cases that call DO_TEST_SET() macro wrap each argument in
curved brackets. This is unnecessary, drop the brackets.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2 years agoqemu_migration: Apply max-postcopy-bandwidth on post-copy resume
Jiri Denemark [Thu, 30 Jun 2022 10:52:38 +0000 (12:52 +0200)]
qemu_migration: Apply max-postcopy-bandwidth on post-copy resume

When resuming post-copy migration users may want to limit the bandwidth
used by the migration and use a value that is different from the one
specified when the migration was originally started.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/333

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu_migration: Pass migParams to qemuMigrationSrcResume
Jiri Denemark [Thu, 30 Jun 2022 10:51:55 +0000 (12:51 +0200)]
qemu_migration: Pass migParams to qemuMigrationSrcResume

So the we can apply selected migration parameters even when resuming
post-copy migration.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu_migration_params: Replace qemuMigrationParamTypes array
Jiri Denemark [Wed, 29 Jun 2022 13:12:20 +0000 (15:12 +0200)]
qemu_migration_params: Replace qemuMigrationParamTypes array

We will need to annotate individual parameters a bit more than just
noting their type. Let's introduce qemuMigrationParamInfo replacing
simple qemuMigrationParamTypes with an array of structs.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu: Pass migration flags to qemuMigrationParamsApply
Jiri Denemark [Wed, 29 Jun 2022 10:00:03 +0000 (12:00 +0200)]
qemu: Pass migration flags to qemuMigrationParamsApply

The flags will later be used to determine which parameters should
actually be applied.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu_migration: Avoid mem.hard_limit > 0 check
Jiri Denemark [Fri, 24 Jun 2022 14:26:06 +0000 (16:26 +0200)]
qemu_migration: Avoid mem.hard_limit > 0 check

My original commit v8.4.0-288-gf01fc4d119 accidentally forgot to fix
both instances of the same problem. While it fixed the destination side
of migration, the source one remained broken.

However, that commit was also wrong in saying the issue could have
caused unlimited memory locking to be allowed for QEMU when RDMA
migration was used. It could not, because the code would refuse to even
think about starting RDMA migration if hard_limit was not set. But
avoiding the "mem.hard_limit > 0" check is useful anyway.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoPost-release version bump to 8.6.0
Jiri Denemark [Fri, 1 Jul 2022 09:27:31 +0000 (11:27 +0200)]
Post-release version bump to 8.6.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2 years agoRelease of libvirt-8.5.0
Jiri Denemark [Fri, 1 Jul 2022 09:19:54 +0000 (11:19 +0200)]
Release of libvirt-8.5.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2 years agoqemu_hotplug: Don't skip cleanup in qemuDomainAttachNetDevice()
Michal Privoznik [Fri, 1 Jul 2022 07:03:28 +0000 (09:03 +0200)]
qemu_hotplug: Don't skip cleanup in qemuDomainAttachNetDevice()

Introduced in v8.4.0-rc1~183 but the first real problem
introduced in v8.4.0-rc1~170, there's a
qemuBuildInterfaceConnect() call inside of
qemuDomainAttachNetDevice(). If the former fails, then the
function is immediately returned from instead of jumping onto the
cleanup label. This is crucial, because at this point the domain
definition contains 'borrowed' net definition, which is then
freed, since an error was met. The domain definition is then left
with a dangling pointer which leads to all sorts of different
crashes.

Fixes: 29d022b1eb7b2330ed224a08509e6d3a5eeecc53
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2102009
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2 years agoAPI: Remove internal impl detail from VIR_DOMAIN_IOTHREAD_THREAD_POOL_{MIN,MAX} descr...
Michal Privoznik [Thu, 30 Jun 2022 06:32:49 +0000 (08:32 +0200)]
API: Remove internal impl detail from VIR_DOMAIN_IOTHREAD_THREAD_POOL_{MIN,MAX} description

When introducing VIR_DOMAIN_IOTHREAD_THREAD_POOL_MIN and
VIR_DOMAIN_IOTHREAD_THREAD_POOL_MAX typed parameters, I've made a
shortcut. Since at the monitor level these two are set in two
separate calls and minimum has to be always smaller than maximum
(or equal to it), it may happen that one of the values we want to
set violates this restriction. So I've put a little note in the
public API description warning users about this.

However, the proper solution is to have a logic that checks the
current values and based on that set either minimum or maximum
value first. But until we get there, remove that note from the
public API before it gets released.

Related: https://gitlab.com/libvirt/libvirt/-/issues/339
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agoNEWS: Mention 3 user-visible regressions fixed in this release
Peter Krempa [Wed, 29 Jun 2022 15:02:45 +0000 (17:02 +0200)]
NEWS: Mention 3 user-visible regressions fixed in this release

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoTranslated using Weblate (Korean)
김인수 [Thu, 30 Jun 2022 00:21:26 +0000 (02:21 +0200)]
Translated using Weblate (Korean)

Currently translated at 99.5% (10424 of 10472 strings)

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

Translated using Weblate (Korean)

Currently translated at 99.5% (10424 of 10472 strings)

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

Co-authored-by: 김인수 <simmon@nplob.com>
Signed-off-by: 김인수 <simmon@nplob.com>
2 years agoUpdate translation files
Weblate [Thu, 30 Jun 2022 00:21:24 +0000 (02:21 +0200)]
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Thu, 30 Jun 2022 00:21:21 +0000 (02:21 +0200)]
Translated using Weblate (Swedish)

Currently translated at 37.5% (3942 of 10491 strings)

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

Translated using Weblate (Swedish)

Currently translated at 37.4% (3920 of 10472 strings)

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

Translated using Weblate (Swedish)

Currently translated at 37.3% (3901 of 10431 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 agoqemucapabilitiestest: Update capabilities for the 7.1 release cycle on x86_64
Peter Krempa [Fri, 24 Jun 2022 09:03:07 +0000 (11:03 +0200)]
qemucapabilitiestest: Update capabilities for the 7.1 release cycle on x86_64

Update to v7.0.0-2187-g2a8835cb45

Notable changes:
    - VFU_CLIENT_HANGUP event added
    - query-stats and query-stats-schemas commands added
    - 'vduse-blk' block export export
    - 'loongarch64' arch added
    - added new qom types:
        - cxl-downstream
        - cxl-upstream
        - qio-channel-block
        - qio-channel-null
    - added smi-irq[0], smm-enabled, unnamed-gpio-out[0] properties for PIIX4_PM

    - removed:
        - piix3-ide-xen

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoconf: virDomainMemoryDefValidate: Improve error message
Liu Yiding [Tue, 28 Jun 2022 03:53:35 +0000 (11:53 +0800)]
conf: virDomainMemoryDefValidate: Improve error message

An explicit limit would be more user friendly. Add the limit to error message.

Before this commit:
```
error: requested size must be smaller than or equal to @size
```

Now:
```
error: requested size must be smaller than or equal to @size (8388608KiB)
```

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoNEWS: Document my contributions for the upcoming release
Michal Privoznik [Mon, 27 Jun 2022 07:52:15 +0000 (09:52 +0200)]
NEWS: Document my contributions for the upcoming release

There are couple of features/improvements/bugfixes I contributed
into the upcoming release. Include those worth mentioning in the
NEWS.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agopo: Refresh potfile for v8.5.0
Jiri Denemark [Mon, 27 Jun 2022 06:56:55 +0000 (08:56 +0200)]
po: Refresh potfile for v8.5.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Sat, 25 Jun 2022 08:18:52 +0000 (10:18 +0200)]
Translated using Weblate (Swedish)

Currently translated at 37.0% (3861 of 10431 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 agoschema: Be more flexible for diskSourceNetworkProtocolPropsCommon
Jonathon Jongsma [Wed, 15 Jun 2022 16:29:47 +0000 (11:29 -0500)]
schema: Be more flexible for diskSourceNetworkProtocolPropsCommon

Add <interleave> to allow the subproperties to be specified in any
order.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agodocs: clarify 'readahead' and 'timeout' for disks
Jonathon Jongsma [Wed, 15 Jun 2022 16:21:58 +0000 (11:21 -0500)]
docs: clarify 'readahead' and 'timeout' for disks

Document the format of the 'readahead' and 'timeout' XML elements more
accurately.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoqemu_migration: Implement VIR_MIGRATE_ZEROCOPY flag
Jiri Denemark [Wed, 22 Jun 2022 14:37:31 +0000 (16:37 +0200)]
qemu_migration: Implement VIR_MIGRATE_ZEROCOPY flag

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/306

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agovirsh: Add support for VIR_MIGRATE_ZEROCOPY flag
Jiri Denemark [Wed, 22 Jun 2022 14:36:53 +0000 (16:36 +0200)]
virsh: Add support for VIR_MIGRATE_ZEROCOPY flag

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoAdd VIR_MIGRATE_ZEROCOPY flag
Jiri Denemark [Wed, 22 Jun 2022 14:35:50 +0000 (16:35 +0200)]
Add VIR_MIGRATE_ZEROCOPY flag

The flag can be used to enable zero-copy mechanism for migrating memory
pages.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_migration: Don't set unlimited memlock limit for RDMA
Jiri Denemark [Thu, 23 Jun 2022 12:25:30 +0000 (14:25 +0200)]
qemu_migration: Don't set unlimited memlock limit for RDMA

Our documentation says RDMA migration requires hard_limit to be set so
that we know how big memory locking limit should be set for the domain
during migration. But since commit v1.2.13-71-gcf521fc8ba (which changed
the default hard_limit value from 0 to
VIR_DOMAIN_MEMORY_PARAM_UNLIMITED) we were actually setting memlock
limit to unlimited if hard_limit was not set.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_migration: Restore original memory locking limit
Jiri Denemark [Wed, 22 Jun 2022 14:12:02 +0000 (16:12 +0200)]
qemu_migration: Restore original memory locking limit

For RDMA migration we update memory locking limit, but never set it back
once migration finishes (on the destination host) or aborts (on the
source host).

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu_migration: Use qemuDomainSetMaxMemLock
Jiri Denemark [Wed, 22 Jun 2022 07:04:04 +0000 (09:04 +0200)]
qemu_migration: Use qemuDomainSetMaxMemLock

This helper will not try to set the limit if it is already big enough,
which may be useful when libvirt daemon is running in a containerized
environment and is not allowed to change memory locking limit.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Add qemuDomainSetMaxMemLock helper
Jiri Denemark [Wed, 22 Jun 2022 13:21:30 +0000 (15:21 +0200)]
qemu: Add qemuDomainSetMaxMemLock helper

qemuDomainAdjustMaxMemLock combined computing the desired limit with
applying it. This patch separates the code to apply a memory locking
limit to a new qemuDomainSetMaxMemLock helper for better reusability.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agostoragefile: set size field of ploop to 8
Ján Tomko [Wed, 18 May 2022 13:59:36 +0000 (15:59 +0200)]
storagefile: set size field of ploop to 8

For all file formats, the length of the size field is assumed
and hardcoded to be 8 bytes.

Fix the length for the ploop format - since we specify the offset,
we read 8 bytes of the length, not 0.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoconf: virDomainDefParseMemory: remove pointless assignment
Ján Tomko [Wed, 22 Jun 2022 11:44:06 +0000 (13:44 +0200)]
conf: virDomainDefParseMemory: remove pointless assignment

Evaluate the XPath as a boolean, instead of trying to get a node
out of it.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agodocs: update links to listman
Ján Tomko [Wed, 22 Jun 2022 11:37:18 +0000 (13:37 +0200)]
docs: update links to listman

The mailman for mailing lists hosted by Red Hat seems to have moved
to listman.redhat.com. While the old links still seem to work,
point our docs to the new location to avoid the redirect.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agolibxl: remove cleanup label from libxlDomainMigrationSrcPerform
Ján Tomko [Wed, 22 Jun 2022 05:32:42 +0000 (07:32 +0200)]
libxl: remove cleanup label from libxlDomainMigrationSrcPerform

Use VIR_AUTOCLOSE for the remaining file descriptor that uses
manual cleanup and remove the label.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2 years agoqemu: remove cleanup label from qemuMigrationSrcGraphicsRelocate
Ján Tomko [Wed, 22 Jun 2022 05:29:22 +0000 (07:29 +0200)]
qemu: remove cleanup label from qemuMigrationSrcGraphicsRelocate

Remove the label and use 'rc' instead of 'ret'.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2 years agovmx: use g_autofree in virVMXParseSerial
Ján Tomko [Wed, 22 Jun 2022 05:27:39 +0000 (07:27 +0200)]
vmx: use g_autofree in virVMXParseSerial

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2 years agovz: refactor prlsdkGetSerialInfo
Ján Tomko [Wed, 22 Jun 2022 05:24:59 +0000 (07:24 +0200)]
vz: refactor prlsdkGetSerialInfo

Use g_autofree for the two strings still using manual cleanup
and remove the pointless cleanup label.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2 years agotests: remove pointless label in testURIParse
Ján Tomko [Wed, 22 Jun 2022 05:21:54 +0000 (07:21 +0200)]
tests: remove pointless label in testURIParse

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2 years agoUse g_auto for virURI almost everywhere
Ján Tomko [Wed, 22 Jun 2022 05:14:04 +0000 (07:14 +0200)]
Use g_auto for virURI almost everywhere

Convert all the cases where we can unconditionally free
the virURI at the end of scope.

In libxlDomainMigrationDstPrepare, uri is only filled
if uri_in was present, so moving the virURIFree out of
the condition is safe.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Wed, 22 Jun 2022 09:18:51 +0000 (11:18 +0200)]
Translated using Weblate (Swedish)

Currently translated at 36.4% (3801 of 10431 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 agoNEWS: Add support for network backed NVRAM
Rohit Kumar [Tue, 21 Jun 2022 12:22:26 +0000 (05:22 -0700)]
NEWS: Add support for network backed NVRAM

Signed-off-by: Rohit Kumar <rohit.kumar3@nutanix.com>
Reviewed-by: Ani Sinha <ani@anisinha.ca>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agosrc: QemuMonitorCommandWithFiles: report error when fd passing is unsupported
Ján Tomko [Wed, 18 May 2022 13:56:23 +0000 (15:56 +0200)]
src: QemuMonitorCommandWithFiles: report error when fd passing is unsupported

The result of the <= 0 comparison was assigned to 'rc', rendering the
if (rc == 0) condition dead code.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2 years agolibxl: Fix domain startup failure error reporting
Cole Robinson [Fri, 17 Jun 2022 21:09:32 +0000 (17:09 -0400)]
libxl: Fix domain startup failure error reporting

When domain startup fails, domain cleanup calls
libxlNetworkUnwindDevices, which calls virGetConnectNetwork, which
is a top level API entry point, which resets the initial saved error,
leading to clients seeing:

  error: An error occurred, but the cause is unknown

This preserves the error around the entire teardown process, similar
to what is done in the qemu driver.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2 years agoqemu: validate: use domcaps for tpm validation
Cole Robinson [Sat, 18 Jun 2022 17:22:52 +0000 (13:22 -0400)]
qemu: validate: use domcaps for tpm validation

Replace tpm->type and tpm->model qemuCaps validation with the
similar logic in domcaps.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2 years agotests: mock swtpm initialization for all qemu tests
Cole Robinson [Sat, 18 Jun 2022 17:21:57 +0000 (13:21 -0400)]
tests: mock swtpm initialization for all qemu tests

Don't restrict this to domcaps testing only, we will soon
need it for qemu command line validation

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2 years agoqemu: command: Use correct tpm device for all non-x86
Cole Robinson [Sat, 18 Jun 2022 16:46:03 +0000 (12:46 -0400)]
qemu: command: Use correct tpm device for all non-x86

The qemu `tpm-tis` device is an ISA device, so only really applicable
to x86 archs. For all non-x86 archs we should use `tpm-tis-device`

This fixes tpm-tis usage on armv7l and riscv

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2 years agoqemu: validate: Drop tpm-tis arch validation
Cole Robinson [Sat, 18 Jun 2022 16:52:29 +0000 (12:52 -0400)]
qemu: validate: Drop tpm-tis arch validation

Checking against qemu capabilities should be enough here

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/329

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2 years agoTranslated using Weblate (Russian)
Sergey A [Mon, 20 Jun 2022 09:42:19 +0000 (11:42 +0200)]
Translated using Weblate (Russian)

Currently translated at 91.8% (9582 of 10431 strings)

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

Co-authored-by: Sergey A <sw@atrus.ru>
Signed-off-by: Sergey A. <sw@atrus.ru>
2 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Mon, 20 Jun 2022 09:42:19 +0000 (11:42 +0200)]
Translated using Weblate (Swedish)

Currently translated at 36.0% (3761 of 10431 strings)

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

Translated using Weblate (Swedish)

Currently translated at 35.6% (3721 of 10431 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 agonwfilter: spawn thread for reloading on firewalld trigger
Daniel P. Berrangé [Fri, 1 Apr 2022 09:24:37 +0000 (10:24 +0100)]
nwfilter: spawn thread for reloading on firewalld trigger

When firewalld is restarted or has its rules reloaded, we trigger a
reload of the nwfilter driver. This is done directly in the main
event loop thread which is a bad idea.

In a previous commit we fixed a actual deadlock problem with the
virStateReload API, when triggered from SIGHUP:

commit 33c6eb9689eb51dfe31dd05b24b3b6b1c948c267
Author: Jim Fehlig <jfehlig@suse.com>
Date:   Thu Mar 8 15:04:48 2018 -0700

    libvirtd: fix potential deadlock when reloading

The same deadlock problem previously existed with the firewalld reload
trigger, however, today it is not quite so series. The QEMU driver uses
a private event thread for each VM, so the particular deadlock would
not occur. None the less during the time the filters are reloading all
use of the event loop is blocked, which prevents APIs being serviced.

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agotools: add '--xpath EXPRESSION --wrap' args to all dumpxml commands
Daniel P. Berrangé [Thu, 16 Jun 2022 15:29:54 +0000 (16:29 +0100)]
tools: add '--xpath EXPRESSION --wrap' args to all dumpxml commands

While you can chain the virsh output up to a later 'xmllint' or 'xpath'
command, integrating it into virsh avoids needs for installing extra
binaries which we've often found to be missing on production installs
of libvirt. It also gives better response if the initial virsh command
hits an error, as you don't get an aborted pipeline.

    $ virsh pool-dumpxml --xpath //permissions default
    <permissions>
      <mode>0711</mode>
      <owner>1000</owner>
      <group>1000</group>
      <label>unconfined_u:object_r:svirt_home_t:s0</label>
    </permissions>

If multiple nodes match, they are emitted individually:

    $ virsh dumpxml --xpath '//devices/*/address[@type="pci"]' --wrap demo
    <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
    <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
    ...snip...
    <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
    <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>

but if intending to post-process the output further, the results
can be wrapped in a parent node

    $ virsh dumpxml --xpath '//devices/*/address[@type="pci"]' --wrap demo
    <nodes>
      <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
      <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
      ...snip...
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
      <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
    </nodes>

Fixes https://gitlab.com/libvirt/libvirt/-/issues/244
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agotools: add helper method for printing an XML document
Daniel P. Berrangé [Thu, 16 Jun 2022 14:59:03 +0000 (15:59 +0100)]
tools: add helper method for printing an XML document

The trivial case of fully printing an XML document is boring, but
this helper does more by allowing an XPath expression to be given.
It will then print just the subset of nodes which match the
expression. It either print each match as a standalone XML doc
or can put them into one new XML doc wrapped woith <nodes>...</nodes>

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agoconf: cpu: Add <signature family=X model=X stepping=X/>
Cole Robinson [Sat, 11 Jun 2022 16:24:37 +0000 (12:24 -0400)]
conf: cpu: Add <signature family=X model=X stepping=X/>

Internally we already collect x86 host family + model + stepping
numeric values. This exposed them in capabilities CPU output.
Example:

$ sudo virsh capabilities | grep -A1 -B1 signature
      <microcode version='240'/>
      <signature family='6' model='94' stepping='3'/>
      <counter name='tsc' frequency='3408010000' scaling='no'/>

Users need to know these values to calculate an expected.
SEV-ES/SEV-SNP launch measurement.

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2 years agoqemu: Fix alignment in qemuFirmwareMappingFlashFormat()
Andrea Bolognani [Mon, 13 Jun 2022 09:53:09 +0000 (11:53 +0200)]
qemu: Fix alignment in qemuFirmwareMappingFlashFormat()

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2 years agoqemu: Simplify handling of virTristateBool values
Andrea Bolognani [Thu, 9 Jun 2022 17:09:31 +0000 (19:09 +0200)]
qemu: Simplify handling of virTristateBool values

We explicitly check whether the value is YES or NO, which makes
it unnecessary to make sure it's not ABSENT beforehand.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoconf: Fix virDomainDefOSValidate()
Andrea Bolognani [Thu, 9 Jun 2022 17:26:16 +0000 (19:26 +0200)]
conf: Fix virDomainDefOSValidate()

Even when the os.loader element is absent, we still have to
validate that the user is not attempting to use firmware
autoselection with a driver that doesn't implement the feature.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agovmx: Declare support for firmware autoselection
Andrea Bolognani [Fri, 10 Jun 2022 08:05:01 +0000 (10:05 +0200)]
vmx: Declare support for firmware autoselection

The feature was implemented in commits b4e34d1083bc and
9bb6e4e739fa but the corresponding feature flag was not set in
the driver, so other parts of of libvirt wouldn't be able to
know about it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: virtiofs: format --thread-pool-size
Ján Tomko [Fri, 10 Jun 2022 13:25:00 +0000 (15:25 +0200)]
qemu: virtiofs: format --thread-pool-size

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

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agoconf: virtiofs: add thread_pool element
Ján Tomko [Fri, 10 Jun 2022 13:10:29 +0000 (15:10 +0200)]
conf: virtiofs: add thread_pool element

Add an element to configure the thread pool size:

...
<binary>
  <thread_pool size='16'/>
</binary>
...

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

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agodocs: formatdomain: update hostdev interface section a bit
Yalan Zhang [Thu, 16 Jun 2022 05:11:42 +0000 (13:11 +0800)]
docs: formatdomain: update hostdev interface section a bit

Update the default "driver" value for hostdev interface since
the default is not "KVM" anymore (refer to "Host device
asssignment" part and by test results). And update the mac
address in one xml example.

Signed-off-by: Yalan Zhang <yalzhang@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agolxc: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:14 +0000 (20:13 +0800)]
lxc: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agotests: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:13 +0000 (20:13 +0800)]
tests: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agotools: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:12 +0000 (20:13 +0800)]
tools: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agotest_driver: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:11 +0000 (20:13 +0800)]
test_driver: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agovmx: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:10 +0000 (20:13 +0800)]
vmx: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agovmware: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:09 +0000 (20:13 +0800)]
vmware: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agovbox: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:08 +0000 (20:13 +0800)]
vbox: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoutil: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:07 +0000 (20:13 +0800)]
util: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agostorage: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:06 +0000 (20:13 +0800)]
storage: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agorpc: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:05 +0000 (20:13 +0800)]
rpc: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoremote: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:04 +0000 (20:13 +0800)]
remote: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemu: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:03 +0000 (20:13 +0800)]
qemu: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoopenvz: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:02 +0000 (20:13 +0800)]
openvz: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agonode_device: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:01 +0000 (20:13 +0800)]
node_device: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agonetwork: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:13:00 +0000 (20:13 +0800)]
network: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agologging: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:59 +0000 (20:12 +0800)]
logging: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agolocking: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:58 +0000 (20:12 +0800)]
locking: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agolibxl: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:57 +0000 (20:12 +0800)]
libxl: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agohypvervisor: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:56 +0000 (20:12 +0800)]
hypvervisor: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agohyperv: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:55 +0000 (20:12 +0800)]
hyperv: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoesx: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:54 +0000 (20:12 +0800)]
esx: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agocpu: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:53 +0000 (20:12 +0800)]
cpu: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoconf: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:52 +0000 (20:12 +0800)]
conf: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoch: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:51 +0000 (20:12 +0800)]
ch: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoadmin: Remove unused includes
Peng Liang [Wed, 8 Jun 2022 12:12:50 +0000 (20:12 +0800)]
admin: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>