]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
20 months agoqemuxml2argvtest: Modernize rest of the test cases
Peter Krempa [Mon, 4 Sep 2023 12:15:35 +0000 (14:15 +0200)]
qemuxml2argvtest: Modernize rest of the test cases

The rest of the test cases has no change in the output now that we've
assumed some flags.

Remove the fake-caps test macros after conversion.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize 'cpu-exact' cases
Peter Krempa [Fri, 1 Sep 2023 13:28:18 +0000 (15:28 +0200)]
qemuxml2argvtest: Modernize 'cpu-exact' cases

Use real capabilities, but select the fake 'Haswell' host CPU for test
stability.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize 'cpu-(no)fallback' test
Peter Krempa [Tue, 5 Sep 2023 11:04:31 +0000 (13:04 +0200)]
qemuxml2argvtest: Modernize 'cpu-(no)fallback' test

Previously without modern capabilities the test was relying on a CPU
model which was not entered into a fake list of supported cpus.

With real capabilities we have to pick a CPU model which is supported by
libvirt but in some version is not supported by qemu. I've picked
EPYC-Milan, which was introduced into qemu-6.0.

This test configures a CPU which is equivalent to EPYC-Rome by disabling
features from EPYC-Milan and uses a versioned real caps test to check it
against a qemu which doesn't support EPYC-Milan.

With real capabilities though, we can also do a positive test case by
using a version whic doesh support it. I've specifically not used the
LATEST caps so that it doesn't change once capabilities are bumped.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize 'cpu-strict' case
Peter Krempa [Fri, 1 Sep 2023 14:18:12 +0000 (16:18 +0200)]
qemuxml2argvtest: Modernize 'cpu-strict' case

Use the fake Haswell processor definition and augment the list of
features to make the test pass.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize 'cpu-minimum' cases
Peter Krempa [Fri, 1 Sep 2023 13:28:18 +0000 (15:28 +0200)]
qemuxml2argvtest: Modernize 'cpu-minimum' cases

Use real capabilities, but select the fake 'Haswell' host CPU for test
stability.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize 'cpu-Haswell' test cases
Peter Krempa [Fri, 1 Sep 2023 11:57:23 +0000 (13:57 +0200)]
qemuxml2argvtest: Modernize 'cpu-Haswell' test cases

Modernize all test cases which set 'Haswell' as the host cpu model.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize test cases using 'host-model' CPU
Peter Krempa [Mon, 4 Sep 2023 11:47:42 +0000 (13:47 +0200)]
qemuxml2argvtest: Modernize test cases using 'host-model' CPU

Modernize test cases using 'host-mode' cpu type, where the actual CPU
doesn't isn't important.

As using the host cpu from the 'latest' capabilities data would cause
test churn in case the host cpu changes in the future, convert them
using the overriden Haswell cpu.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Consolidate and modernize CPU topology testing
Peter Krempa [Fri, 1 Sep 2023 12:41:42 +0000 (14:41 +0200)]
qemuxml2argvtest: Consolidate and modernize CPU topology testing

Move the 'smp-dies' test case into 'cpu-topology4' and remove
unnecessary cruft.

Remove cpu definition from 'cpu-topology2' as it's not relevant to the
test case.

Remove 'smp' case as it's covered by the rest.

Use real capabilities for all of them.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize migration/restore tests
Peter Krempa [Fri, 1 Sep 2023 12:17:45 +0000 (14:17 +0200)]
qemuxml2argvtest: Modernize migration/restore tests

As these were using DO_TEST_FULL the churn-reducing patches didn't
influence these.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Properly modernize 'clock-hpet-off' test case
Peter Krempa [Mon, 4 Sep 2023 13:49:50 +0000 (15:49 +0200)]
qemuxml2argvtest: Properly modernize 'clock-hpet-off' test case

Since qemu-8.0 a new way to disable 'hpet' via -machine was added.
Properly test both branches with real capabilities.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Assume QEMU_CAPS_QXL_VRAM64, QEMU_CAPS_(QXL|VGA)_VGAMEM for fake...
Peter Krempa [Tue, 5 Sep 2023 12:42:04 +0000 (14:42 +0200)]
qemuxml2argvtest: Assume QEMU_CAPS_QXL_VRAM64, QEMU_CAPS_(QXL|VGA)_VGAMEM for fake-caps tests

Assume the features modern qemus have to bring the test data closer
to the 'latest' real-caps versions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Assume QEMU_CAPS_USB_HOST_HOSTDEVICE and QEMU_CAPS_DEVICE_QEMU_XHCI...
Peter Krempa [Tue, 5 Sep 2023 12:42:04 +0000 (14:42 +0200)]
qemuxml2argvtest: Assume QEMU_CAPS_USB_HOST_HOSTDEVICE and QEMU_CAPS_DEVICE_QEMU_XHCI for fake-caps tests

Assume the two features modern qemus have to bring the test data closer
to the 'latest' real-caps versions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Assume QEMU_CAPS_CPU_MIGRATABLE and QEMU_CAPS_SMP_DIES for fake...
Peter Krempa [Tue, 5 Sep 2023 12:42:04 +0000 (14:42 +0200)]
qemuxml2argvtest: Assume QEMU_CAPS_CPU_MIGRATABLE and QEMU_CAPS_SMP_DIES for fake-caps tests

Assume the two features modern qemus have to bring the test data closer
to the 'latest' real-caps versions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Assume QEMU_CAPS_DEVICE_PCIE_ROOT_PORT for fake-caps tests
Peter Krempa [Tue, 5 Sep 2023 12:42:04 +0000 (14:42 +0200)]
qemuxml2argvtest: Assume QEMU_CAPS_DEVICE_PCIE_ROOT_PORT for fake-caps tests

Assume the support for the 'pcie-root-port' all modern qemus have to
bring the test data closer to the 'latest' real-caps versions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Assume QEMU_CAPS_PIIX3_USB_UHCI for all fake-caps tests
Peter Krempa [Thu, 31 Aug 2023 12:20:39 +0000 (14:20 +0200)]
qemuxml2argvtest: Assume QEMU_CAPS_PIIX3_USB_UHCI for all fake-caps tests

To minimize further churn when coverting to real capabilities, assume
that all fake-caps machines support the piix3 USB controller.

Since we already have solid testing of USB controllers, this will have
effect only in cases when it's not relevant to the test itself.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Consolidate testing of 'xhci' controllers
Peter Krempa [Thu, 31 Aug 2023 15:07:38 +0000 (17:07 +0200)]
qemuxml2argvtest: Consolidate testing of 'xhci' controllers

Rename the 'usb-controller-explicit-(unavailable-)q35' test case to
'usb-controller-nec-xhci'. Since this also covers what
'usb-controller-xhci' was testing the latter is removed.

Other 'usb-xhci' test cases which were using the NEC controller are also
renamed to contain the name.

In case of 'usb-controller-qemu-xhci' the negative test case is deleted
as we don't need two cases for missing explicitly specified controller
and the positive case is modernized to use real capabilities.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Improve default usb controller testing
Peter Krempa [Thu, 31 Aug 2023 14:00:48 +0000 (16:00 +0200)]
qemuxml2argvtest: Improve default usb controller testing

Improve testing of an explicitly requested USB controller without a
model being provided.

For this purpose the 'usb-controller' case is renamed to
'usb-controller-default-i440fx'; 'usb-controller-default-q35' is moved
up to form a group. In both cases tests are covnerted to use
DO_TEST_CAPS_LATEST.

A new 'usb-controller-default-isapc' negative test case is added for
symmetry.

The negative test case 'usb-controller-default-unavailable-q35' is
converted to use latest caps, but stripping the default controller
instead of using fake caps. Additionally for symmetry
'usb-controller-default-unavailable-i440fx' is added although that
doesn't cause failure, but rather a graceful downgrade to use '-usb'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Add tests for auto-added USB controllers
Peter Krempa [Thu, 31 Aug 2023 13:47:00 +0000 (15:47 +0200)]
qemuxml2argvtest: Add tests for auto-added USB controllers

There are per-machine type variations on which usb controller will be
picked on an x86_64 machine. Add test cases where a USB controller is
completely missing to cover all 3 cases ('isapc', 'pc', 'q35') when an
USB controller is not explicitly requested by the user.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Consolidate tests for usb controllers
Peter Krempa [Thu, 31 Aug 2023 12:45:13 +0000 (14:45 +0200)]
qemuxml2argvtest: Consolidate tests for usb controllers

Move all controller related tests together and consolidate naming of the
test cases.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Enable 'seccomp' sandbox in all fake caps tests
Peter Krempa [Thu, 31 Aug 2023 09:43:43 +0000 (11:43 +0200)]
qemuxml2argvtest: Enable 'seccomp' sandbox in all fake caps tests

In order to minimize further churn, make all fake-caps test assume that
the seccomp sandbox is supported.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agotestutilsqemu: Always populate default ram id, default cpu, ACPI support for fake...
Peter Krempa [Thu, 31 Aug 2023 09:36:01 +0000 (11:36 +0200)]
testutilsqemu: Always populate default ram id, default cpu, ACPI support for fake machines

Enable a few defaults that will decrease churn when converting tests to
real capabilities.

Since the fake machines are added only for x86_64 at this point we can
assume that ACPI is present via -machine.

In case of the default ram id assume the same. Additionally the logic
was broken as fake capabilities don't have a version so the default RAM
was never actually populated into fake caps tests.

For CPU we add 'qemu64' as that is the default picked by qemu.

We also assume that qemu requires an explicit backend for -numa, which
is the case for modern machines.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize 'numatune' tests
Peter Krempa [Thu, 31 Aug 2023 13:18:11 +0000 (15:18 +0200)]
qemuxml2argvtest: Modernize 'numatune' tests

The 'numatune-memory' case is completely dropped as it's sufficiently
covered by 'numatune-memnode'.

The positive fake-caps version of 'numatune-memnode' is dropped as it's
covered by the two existing real caps invocations.

'numatune-memory-invalid-nodeset', 'numatune-memnode-invalid-mode',
'numatune-memnode-nocpu', 'numatune-memnodes-problematic' parsing error
negative cases are converted to use latest capabilities.

'numatune-static-nodeset-exceed-hostnode' commandline generation failure
negative case is converted to use latest capabilities.

'numatune-memnode-no-memory', 'numatune-distances',
'numatune-auto-nodeset-invalid', 'numatune-auto-prefer' positive cases
are converted to use latest capabilities.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Modernize negative testing for hugepages
Peter Krempa [Thu, 31 Aug 2023 12:58:30 +0000 (14:58 +0200)]
qemuxml2argvtest: Modernize negative testing for hugepages

Use proper version for negative case of 'hugepages-memaccess3'

QEMU allowed to configure a memory backend for default ram since
qemu-5.2. Fix the test to use real capability data.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agovirQEMUCapsAddCPUDefinitions: Fill in cpu type in data and node it's used only in...
Peter Krempa [Thu, 31 Aug 2023 12:07:05 +0000 (14:07 +0200)]
virQEMUCapsAddCPUDefinitions: Fill in cpu type in data and node it's used only in tests

'virQEMUCapsAddCPUDefinitions' is used solely to populate fake cpu
models for the fake-caps tests. Note that and also populate the 'type'
field so that default cpu type can be propagated properly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Enable JSON syntax for -device, -object, and -netdev for all fake...
Peter Krempa [Thu, 31 Aug 2023 08:56:28 +0000 (10:56 +0200)]
qemuxml2argvtest: Enable JSON syntax for -device, -object, and -netdev for all fake-caps tests

To minimize upcoming churn in test data when they will be converted to
latest capabilities enable JSON syntax for -device, -object, and -netdev
for all fake caps test files. Doing this should also help git track
renames of the files better as there will be more of consistent context
present.

We can do this safely as internally we generate JSON first and then
back-convert it into the old-style commandline if given qemu doesn't
support it. This means that all generated content will be the same.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Remove FLAG_SKIP_LEGACY_CPUS
Peter Krempa [Thu, 31 Aug 2023 11:49:51 +0000 (13:49 +0200)]
qemuxml2argvtest: Remove FLAG_SKIP_LEGACY_CPUS

Remove the notion of legacy cpus as there are no test cases using it any
more.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Use real caps for 'cpu-host-model-nofallback' test case
Peter Krempa [Thu, 31 Aug 2023 11:33:55 +0000 (13:33 +0200)]
qemuxml2argvtest: Use real caps for 'cpu-host-model-nofallback' test case

Similarly to 'cpu-host-model' add a real capability invocation for each
version we support and remove the old fake caps invocation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Use real caps for 'cpu-host-model-fallback' test case
Peter Krempa [Thu, 31 Aug 2023 11:33:55 +0000 (13:33 +0200)]
qemuxml2argvtest: Use real caps for 'cpu-host-model-fallback' test case

Similarly to 'cpu-host-model' add a real capability invocation for each
version we support and remove the old fake caps invocation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Use proper version in negative 'virtio-options-memballoon-freepage...
Peter Krempa [Fri, 1 Sep 2023 11:47:30 +0000 (13:47 +0200)]
qemuxml2argvtest: Use proper version in negative 'virtio-options-memballoon-freepage-reporting' case

The feature is supported since qemu-5.1. Use real qemu-5.0 caps for the
test.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Remove fake-caps invocations of tests which also real caps version
Peter Krempa [Fri, 1 Sep 2023 11:07:38 +0000 (13:07 +0200)]
qemuxml2argvtest: Remove fake-caps invocations of tests which also real caps version

Drop tests which already are tested with real caps, thus the fake caps
version doesn't bring much value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Remove duplicated test invocations
Peter Krempa [Fri, 1 Sep 2023 11:03:01 +0000 (13:03 +0200)]
qemuxml2argvtest: Remove duplicated test invocations

Few tests were invoked multiple times either with identical or
equivalent config. Remove those invocations.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Simplify invocation of GIC tests
Peter Krempa [Fri, 1 Sep 2023 08:04:18 +0000 (10:04 +0200)]
qemuxml2argvtest: Simplify invocation of GIC tests

Change DO_TEST_GIC so that it accepts the version and switch it to use
DO_TEST_CAPS_ARCH_VER_FULL internally which will ensure that the output
filenames conform to the format we use for real capabilities.

This also allows us to convert a few of versioned tests to use this
improved macro.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Remove old chardev tests
Peter Krempa [Fri, 19 Nov 2021 15:18:37 +0000 (16:18 +0100)]
qemuxml2argvtest: Remove old chardev tests

All tests have already a real capability variant.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Add missing versioned test cases for 'cpu-host-model'
Peter Krempa [Thu, 31 Aug 2023 11:15:46 +0000 (13:15 +0200)]
qemuxml2argvtest: Add missing versioned test cases for 'cpu-host-model'

We've forgot to add test invocations with real caps for qemu versions
starting with 6.2.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemu_capabilities: Retire QEMU_CAPS_DEVICE_VFIO_PCI
Peter Krempa [Tue, 5 Sep 2023 13:37:50 +0000 (15:37 +0200)]
qemu_capabilities: Retire QEMU_CAPS_DEVICE_VFIO_PCI

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemu: Always assume support for QEMU_CAPS_DEVICE_VFIO_PCI
Peter Krempa [Tue, 5 Sep 2023 13:34:44 +0000 (15:34 +0200)]
qemu: Always assume support for QEMU_CAPS_DEVICE_VFIO_PCI

The 'display' option for the 'vfio-pci' device was added in qemu-2.12
and can't be compiled out. Assume support for the flag.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemu: capabilities: Retire QEMU_CAPS_CPU_CACHE
Peter Krempa [Mon, 4 Sep 2023 14:30:44 +0000 (16:30 +0200)]
qemu: capabilities: Retire QEMU_CAPS_CPU_CACHE

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemu: Always assume support for QEMU_CAPS_CPU_CACHE
Peter Krempa [Mon, 4 Sep 2023 14:24:52 +0000 (16:24 +0200)]
qemu: Always assume support for QEMU_CAPS_CPU_CACHE

All supported qemu versions have this feature and it can't be compiled
out. The logic is a bit more complex in this instance as the flag is
asserted if:

    if (ARCH_IS_X86(qemuCaps->arch) &&
        virQEMUCapsGet(qemuCaps, QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION)) {
        virQEMUCapsSet(qemuCaps, QEMU_CAPS_CPU_CACHE);
    }

Now QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION is available since qemu-2.8 but
only on certain architectures, thus we need to keep the flag itself, but
x86_64 is one of them.

The flag can be also assumed as qemuValidateDomainDefCpu rejects any
cache config on non-x86 arches.

Remove any use of the capability and drop the impossible test cases.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Drop 'monitor-json' case
Peter Krempa [Thu, 31 Aug 2023 08:25:15 +0000 (10:25 +0200)]
qemuxml2argvtest: Drop 'monitor-json' case

QMP monitor is the only thing we support at this point, thus all other
tests test the same thing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: testAddCPUModels: Remove non-x86_64 fake cpu models
Peter Krempa [Thu, 31 Aug 2023 11:47:39 +0000 (13:47 +0200)]
qemuxml2argvtest: testAddCPUModels: Remove non-x86_64 fake cpu models

At this point only x86_64 is using fake machines, and for real machines
we don't populate the fake cpu models. Thus we can remove everything
non-x86_64.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemuxml2argvtest: Clean up host CPU if overriden
Peter Krempa [Fri, 1 Sep 2023 13:41:10 +0000 (15:41 +0200)]
qemuxml2argvtest: Clean up host CPU if overriden

If a test uses ARG_CAPS_HOST_CPU_MODEL feature we override the global
host cpu model to the selected CPU but don't clear it afterwards. This
can trip up fake caps tests following a test which uses this feature.

This does not happen with real caps, because unless overriden, the host
cpu from capabilities is always populated as the host cpu.

Clear the CPU on cleanup.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemu: capabilities: Preserve location of the default machine type when stripping...
Peter Krempa [Fri, 1 Sep 2023 19:43:22 +0000 (21:43 +0200)]
qemu: capabilities: Preserve location of the default machine type when stripping aliases for tests

Internally the preferred machine which is 'pc' for x86_64 must be kept
in the first place in the array of machines. This was not the case when
stripping the machine aliases for use in tests (so that test output
stays stable) where we've created a new entry for the alias. This means
that the original name (e.g. pc-i440fx-8.1) stayed in the first place.

To fix this we now swap the names around and create a new entry at the
end for the specific type. Additionally the default flag is not
propagated to the copy.

This is also visible now in the output of 'qemuxml2xmltest' as the test
cases which use the default machine type return to 'pc' instead of the
more specific name.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemu: capabilities: Retire QEMU_CAPS_ICH9_DISABLE_S* and QEMU_CAPS_ICH9_DISABLE_S...
Peter Krempa [Fri, 1 Sep 2023 15:00:35 +0000 (17:00 +0200)]
qemu: capabilities: Retire QEMU_CAPS_ICH9_DISABLE_S* and QEMU_CAPS_ICH9_DISABLE_S* capabilities

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoqemu: Always assume support for QEMU_CAPS_PIIX_DISABLE_S* and QEMU_CAPS_ICH9_DISABLE_S*
Peter Krempa [Fri, 1 Sep 2023 14:57:34 +0000 (16:57 +0200)]
qemu: Always assume support for QEMU_CAPS_PIIX_DISABLE_S* and QEMU_CAPS_ICH9_DISABLE_S*

The support for PIIX power management was added in qemu commit
v1.0-3094-g459ae5ea5a and the suport for ICH9 power management was added
in qemu commit v2.2.0-542-g6ac0d8d44c and both can't be compiled out.

This means we can always assume support for these features. Remove the
validation and impossible tests. Move relevant bits from
'q35-pm-disable' to 'q35' test case.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agosecurityselinuxlabeltest: Convert to testQemuInsertRealCaps
Peter Krempa [Tue, 5 Sep 2023 15:02:33 +0000 (17:02 +0200)]
securityselinuxlabeltest: Convert to testQemuInsertRealCaps

Use the modern infrastructure to populate capabilities cache with real
capabilities instead of the faked one which will be soon removed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agostorage_util: Drop getDeviceType()
Michal Privoznik [Tue, 5 Sep 2023 07:14:11 +0000 (09:14 +0200)]
storage_util: Drop getDeviceType()

The sole purpose of getDeviceType() is to parse a file that
contains one integer (and a newline character). Well, we already
have a function for that: virFileReadValueInt(). Use the latter
and drop the former.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoch: Use proper format directive for @i in virCHProcessSetupIOThreads()
Michal Privoznik [Tue, 5 Sep 2023 10:19:53 +0000 (12:19 +0200)]
ch: Use proper format directive for @i in virCHProcessSetupIOThreads()

The @i variable inside of virCHProcessSetupIOThreads() is a
typical loop counter - it's declared as size_t. But when passed
to VIR_DEBUG an invalid format directive is used (%ld). Fix that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoch: Use int for @niothreads in virCHMonitorGetIOThreads()
Michal Privoznik [Tue, 5 Sep 2023 10:17:19 +0000 (12:17 +0200)]
ch: Use int for @niothreads in virCHMonitorGetIOThreads()

The @niothreads inside of virCHMonitorGetIOThreads() is declared
as of size_t type. This would work, except the variable is then
passed to VIR_DEBUG with incorrect format directive (%ld) and
returned.  But the function returns an int not size_t. Fix the
variable declaration and format directive.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agoch: Use uint for @maxvcpus in virCHDomainRefreshThreadInfo()
Michal Privoznik [Tue, 5 Sep 2023 10:13:39 +0000 (12:13 +0200)]
ch: Use uint for @maxvcpus in virCHDomainRefreshThreadInfo()

The @maxvcpus variable inside of virCHDomainRefreshThreadInfo()
holds retval of virDomainDefGetVcpusMax() which returns an
unsigned int. Also, the variable is then passed to VIR_WARN()
with incorrect format directive (%ld). Switch variable to uint
and fix the format directive.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agofix virCgroupGetMemoryStat arguments order
Dmitry Frolov [Mon, 4 Sep 2023 11:44:48 +0000 (14:44 +0300)]
fix virCgroupGetMemoryStat arguments order

Reviewing the sources, I noticed that, argumets order in
virCgroupGetMemoryStat() function call does not correspond
to the function declaration:
-instead of   *activeAnon, &meminfo->inactive_anon is passed;
-instead of *inactiveAnon,   &meminfo->active_anon is passed;
-instead of   *activeFile, &meminfo->inactive_file is passed;
-instead of *inactiveFile,   &meminfo->active_file is passed.

Fixes: e634c7cd0d ("lxc: Use virCgroupGetMemoryStat")
Signed-off-by: Dmitry Frolov <frolov@swemel.ru>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
20 months agoconf: Generate MAC address instead of keeping all zeroes
Martin Kletzander [Fri, 1 Sep 2023 14:51:59 +0000 (16:51 +0200)]
conf: Generate MAC address instead of keeping all zeroes

When we parse <mac address="00:00:00:00:00:00"/> we keep that in memory
and pass it down to the hypervisor. However, that MAC address is not
strictly valid as it is not marked as locally administered (bit 0x02)
but it is not even globally unique. It is also used for loopback device
on Linux, for example. And QEMU sees such MAC address just as "not
specified" and generates a new one that libvirt does not even know
about. So to make the overall experience better we now generate it if
the supplied one is all clear.

Resolves: https://issues.redhat.com/browse/RHEL-974

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agobuild: Fix logic bug determining whether running with optimization
Peter Krempa [Mon, 4 Sep 2023 12:30:48 +0000 (14:30 +0200)]
build: Fix logic bug determining whether running with optimization

The conversion from ternary to a 'if' clause was wrong and thus didn't
properly increase the stack size where needed but only where not
actually needed.

Fixes: b68faa99d9f16c2f504b23737040d25d072ee85d
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
20 months agobuild: Fix assignment into 'stack_frame_size' when sanitizer is enabled
Peter Krempa [Mon, 4 Sep 2023 12:07:31 +0000 (14:07 +0200)]
build: Fix assignment into 'stack_frame_size' when sanitizer is enabled

Instead of an assignment into the 'stack_frame_size' variable when
sanitizers are enabled I've accidentally compared the value against the
requested size.

Fix the typo.

Fixes: b68faa99d9f16c2f504b23737040d25d072ee85d
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
20 months agobuild: Work around clang's stack size calculation without optimization
Peter Krempa [Mon, 4 Sep 2023 10:10:25 +0000 (12:10 +0200)]
build: Work around clang's stack size calculation without optimization

When building without optimization on clang, certain big functions trip
the stack size limit despite not actually reaching it. Relax the stack
limit size for clang without optimization.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
20 months agodocs: compiling: Add a note about use of CFLAGS for optimization
Peter Krempa [Mon, 4 Sep 2023 10:09:11 +0000 (12:09 +0200)]
docs: compiling: Add a note about use of CFLAGS for optimization

Meson doesn't interpret what's set in CFLAGS, but rather simply appeds
it to the command line. Thus any logic which is based on the
optimization level will not work.

Note the caveat in the docs and instruct users to use
``--optimization=N`` instead.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
20 months agosyntax-check: Introduce a rule for one line error messages
Michal Privoznik [Mon, 28 Aug 2023 10:56:36 +0000 (12:56 +0200)]
syntax-check: Introduce a rule for one line error messages

Okay, this is a shortcut. Our coding style says that error
messages are exempt from '80 chars long lines' rule. But in the
very same paragraph it is said that all error messages need to be
marked for translation (as they might be presented to user).

Therefore, the syntax-check rule can check if _("...") is
formatted on one line. With exception of _("...\n" ...) (e.g.
various outputs from helper binaries like leaseshelper,
sshhelper, or daemons like lockd, logd). I believe nobody would
chose a substring that contains '\n' for git grep-ping the error
message.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
20 months agotools: Reformat --help output of virsh and virt-admin
Michal Privoznik [Mon, 28 Aug 2023 11:07:34 +0000 (13:07 +0200)]
tools: Reformat --help output of virsh and virt-admin

The --help output of virsh and virt-admin shows supported options
and commands and as such contains new lines. Both these strings
are marked for translation btw. But the way they are formatted
now ('\n' being at the start of new line instead at the end of
the previous) makes it hard to create a syntax-check rule for
'translation message on one line' (next commit).

Reformat both strings a bit (no user visible change though).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
20 months agobhyve: Feed hook scripts with domain XML
Michal Privoznik [Tue, 29 Aug 2023 14:25:38 +0000 (16:25 +0200)]
bhyve: Feed hook scripts with domain XML

Domain related hook scripts are all fed with domain XML on their
stdin, except for bhyve. Fix this.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/528
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agodocs: Document bhyve hook scripts
Michal Privoznik [Tue, 29 Aug 2023 14:15:56 +0000 (16:15 +0200)]
docs: Document bhyve hook scripts

We have bhyve hook scripts since v6.1.0-rc1~42 but never mention
them in hooks.rst. Fill the blanks.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agodocs: Document that libxl hooks are also given full domain XML
Michal Privoznik [Tue, 29 Aug 2023 14:13:26 +0000 (16:13 +0200)]
docs: Document that libxl hooks are also given full domain XML

Our hooks.rst document existence of libxl hook scripts, but
mentions only qemu and lxc as receivers of full domain XML. But
since their introduction in v2.2.0-rc1~201 they are also given
full domain XML. Fix our wording.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
20 months agodocs, passt: Clarify some niche passt usage
Martin Kletzander [Fri, 1 Sep 2023 22:27:05 +0000 (00:27 +0200)]
docs, passt: Clarify some niche passt usage

Change example logfile path and clarify how complicated all things passt
are.  I chose not to create the non-existing directory because it could
open a whole new can of worms.

Also explain missing `dev` attribute of `<portForward/>`

Resolves: https://issues.redhat.com/browse/RHEL-1833

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agobuild: Decrease maximum stack frame size to 2048
Peter Krempa [Mon, 5 Sep 2022 12:38:09 +0000 (14:38 +0200)]
build: Decrease maximum stack frame size to 2048

After recent cleanups we can now restrict the maximum stack frame size
to 2k.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agonss: aiforaf: Decrease stack size by scoping off large buffers
Peter Krempa [Tue, 20 Sep 2022 11:16:58 +0000 (13:16 +0200)]
nss: aiforaf: Decrease stack size by scoping off large buffers

The 'buf', 'sa' and 'hints' stack allocated helper variables are never
used together. Decrease the stack memory usage by scoping them off into
do-while blocks.

In this instance we do not want to use dynamic allocation as this is the
NSS module.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agonss: aiforaf: Drop unused buffer 'port'
Peter Krempa [Wed, 30 Aug 2023 10:19:23 +0000 (12:19 +0200)]
nss: aiforaf: Drop unused buffer 'port'

The 'port' buffer is passed to 'getnameinfo' which is supposed to fill
it but it's not actually later used. Drop the buffer as 'getnameinfo'
allows NULL arguments if they are not needed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agonss: aiforaf: Remove unused 'ret' variable
Peter Krempa [Wed, 30 Aug 2023 10:45:51 +0000 (12:45 +0200)]
nss: aiforaf: Remove unused 'ret' variable

The variable is set but never actually used.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agonss: aiforaf: Format one argument/variable per line
Peter Krempa [Wed, 30 Aug 2023 10:21:04 +0000 (12:21 +0200)]
nss: aiforaf: Format one argument/variable per line

Break up the argument and variable declarations to the preferred style.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agovirHostValidateBhyve: Heap allocate massive 'struct kld_file_stat'
Peter Krempa [Tue, 20 Sep 2022 10:08:50 +0000 (12:08 +0200)]
virHostValidateBhyve: Heap allocate massive 'struct kld_file_stat'

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agovirHostValidateBhyve: Declare one variable per line
Peter Krempa [Tue, 20 Sep 2022 10:07:12 +0000 (12:07 +0200)]
virHostValidateBhyve: Declare one variable per line

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agobhyve: Don't stack-allocate huge error buffers
Peter Krempa [Tue, 20 Sep 2022 09:16:27 +0000 (11:16 +0200)]
bhyve: Don't stack-allocate huge error buffers

_POSIX2_LINE_MAX is 2048. Allocate the buffers on the heap instead.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
20 months agovirDomainFeaturesXENDefParse: Use virXMLNodeGetSubelementList
Peter Krempa [Wed, 26 Apr 2023 15:50:08 +0000 (17:50 +0200)]
virDomainFeaturesXENDefParse: Use virXMLNodeGetSubelementList

Rewrite the old-style parser to use virXMLNodeGetSubelementList

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agovirDomainFeaturesKVMDefParse: Use virXMLNodeGetSubelementList
Peter Krempa [Wed, 26 Apr 2023 15:47:31 +0000 (17:47 +0200)]
virDomainFeaturesKVMDefParse: Use virXMLNodeGetSubelementList

Rewrite the old-style parser to use virXMLNodeGetSubelementList

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agovirDomainFeaturesCapabilitiesDefParse: Use virXMLNodeGetSubelementList
Peter Krempa [Wed, 26 Apr 2023 15:43:12 +0000 (17:43 +0200)]
virDomainFeaturesCapabilitiesDefParse: Use virXMLNodeGetSubelementList

Rewrite the old-style parser to use virXMLNodeGetSubelementList

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agovirsh: domain: Refactor XML handling for disk changes
Peter Krempa [Wed, 12 Apr 2023 07:38:21 +0000 (09:38 +0200)]
virsh: domain: Refactor XML handling for disk changes

Use virXMLNodeGetSubelement to find needed subelements.

In virshUpdateDiskXML this commit removes the code which keeps XML
formatting tidy, but that is not needed for the code to format proper
XMLs.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agovirNetworkDNSHostDefParseXML: Refactor parsing
Peter Krempa [Tue, 11 Apr 2023 20:34:59 +0000 (22:34 +0200)]
virNetworkDNSHostDefParseXML: Refactor parsing

Use 'virXMLNodeGetSubelementList' instead of looping through XML nodes
and modernize the code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemu: capabilities: Remove unused 'virQEMUCapsFilterByMachineType'
Peter Krempa [Mon, 28 Aug 2023 12:45:53 +0000 (14:45 +0200)]
qemu: capabilities: Remove unused 'virQEMUCapsFilterByMachineType'

The filtering of qemu capabilities by machine type doesn't seem to be
ever used, remove it and adjust callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemu: capabilities: Retire QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS
Peter Krempa [Mon, 28 Aug 2023 12:40:54 +0000 (14:40 +0200)]
qemu: capabilities: Retire QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS

All qemu versions have that command and cpu hotplug code now directly
probes the machine type.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemuDomainSupportsVcpuHotplug: Base return value on virQEMUCapsGetMachineHotplugCpus
Peter Krempa [Mon, 28 Aug 2023 12:14:32 +0000 (14:14 +0200)]
qemuDomainSupportsVcpuHotplug: Base return value on virQEMUCapsGetMachineHotplugCpus

The QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS flag is always asserted as all
qemu versions support the command and selectively cleared when copying
the capabilities for VM use if given machine type does not support cpu
hotplug.

Rework this to directly probe the machine as we now populate the data
also when re-connecting to a qemu instance after daemon restart, so that
the capability can be removed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemuhotplugtest: Remove 'modern' field for cpu hotplug tests
Peter Krempa [Mon, 28 Aug 2023 12:34:36 +0000 (14:34 +0200)]
qemuhotplugtest: Remove 'modern' field for cpu hotplug tests

Nowadays all tests were considered 'modern' so it makes no longer sense
to have that field.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agotests: qemuhotplugtest: Fix arch-specific parts of 'ppc64' test XMLs
Peter Krempa [Mon, 28 Aug 2023 12:24:52 +0000 (14:24 +0200)]
tests: qemuhotplugtest: Fix arch-specific parts of 'ppc64' test XMLs

The tests were using a copy of a x86_64 based XML and thus
'qemuhotplugtest' was selecting wrong capabilities to use for that
specific test.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemuxml2argvtest: Modernize 'cpu-hotplug-startup' case
Peter Krempa [Mon, 28 Aug 2023 12:11:52 +0000 (14:11 +0200)]
qemuxml2argvtest: Modernize 'cpu-hotplug-startup' case

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemu: process: Probe machine type data on reconnect to qemu
Peter Krempa [Mon, 28 Aug 2023 09:35:07 +0000 (11:35 +0200)]
qemu: process: Probe machine type data on reconnect to qemu

When reconnecting we populate only the capability flags from the XML as
we need to know the exact flags that were present when starting the VM.

On the other hand the machine type data is not stored as it wasn't
really used after startup. While storing all of the data into the status
XML would be theoretically possible, with machine-type specific data it
makes no sense to do so, and thus the data can be re-probed from the
current instance.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemu: capabilities: Export functions necessary for probing machine types
Peter Krempa [Mon, 28 Aug 2023 10:56:40 +0000 (12:56 +0200)]
qemu: capabilities: Export functions necessary for probing machine types

Upcoming patch will re-probe machines from the current qemu instance to
populate the private copy of qemuCaps after reconnecting to a running
instance. This is needed to be able to access the machine type data,
while storing them in the status XML seems to be an overkill, for
information which can be easily reprobed.

Export 'virQEMUCapsInitQMPArch' needed to populate the 'arch' field and
'virQEMUCapsProbeQMPMachineTypes'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoqemu: Rename qemuDomainSupportsNewVcpuHotplug to qemuDomainSupportsVcpuHotplug
Peter Krempa [Thu, 20 Jul 2023 15:55:33 +0000 (17:55 +0200)]
qemu: Rename qemuDomainSupportsNewVcpuHotplug to qemuDomainSupportsVcpuHotplug

Support for legacy cpu hotplug was removed a long time ago. At this
point this function only checks whether the current machine type
supports cpu hotplug.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
20 months agoconf, schema: Switch iothread/poll values to unsignedLong
Martin Kletzander [Fri, 1 Sep 2023 21:28:01 +0000 (23:28 +0200)]
conf, schema: Switch iothread/poll values to unsignedLong

They represent nanoseconds, and we accept such values already.  Not that
anyone would use such values in the wild, but even one person testing
QEMU could put in a bigger value and will be bothered with validation
errors after every `virsh edit`.  Also add a test for it.

Resolves: https://issues.redhat.com/browse/RHEL-1717

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
20 months agotools: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:04:34 +0000 (17:04 +0200)]
tools: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agosrc: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:04:13 +0000 (17:04 +0200)]
src: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agovz: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
vz: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agovmx: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
vmx: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agovmware: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
vmware: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agovbox: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
vbox: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agoutil: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
util: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agotest: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
test: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agostorage_file: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
storage_file: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agostorage: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
storage: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agosecurity: Move error messages onto a single line
Michal Privoznik [Fri, 25 Aug 2023 07:18:18 +0000 (09:18 +0200)]
security: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agorpc: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
rpc: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agoremote: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:59 +0000 (17:03 +0200)]
remote: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agoqemu: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:58 +0000 (17:03 +0200)]
qemu: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agoopenvz: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:58 +0000 (17:03 +0200)]
openvz: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
20 months agonwfilter: Move error messages onto a single line
Michal Privoznik [Thu, 24 Aug 2023 15:03:58 +0000 (17:03 +0200)]
nwfilter: Move error messages onto a single line

Error messages are exempt from the 80 columns rule. Move them
onto one line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>