]> git.ipfire.org Git - thirdparty/libvirt.git/log
thirdparty/libvirt.git
3 years agoqemu: Implement virtio-blk queue-size option
Hiroki Narukawa [Thu, 9 Sep 2021 03:34:48 +0000 (12:34 +0900)] 
qemu: Implement virtio-blk queue-size option

The option "queue-size" in virtio-blk was added in qemu-2.12.0, and
default value increased from qemu-5.0.0.

However, increasing this value may lead to drop of random access
performance.

Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
3 years agoqemu: add QEMU_CAPS_VIRTIO_BLK_QUEUE_SIZE capability
Hiroki Narukawa [Thu, 9 Sep 2021 03:34:47 +0000 (12:34 +0900)] 
qemu: add QEMU_CAPS_VIRTIO_BLK_QUEUE_SIZE capability

To support virtio-blk queue-size option, this commit adds capability
detection to the option.

Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
3 years agoconf: add queue_size option to disk
Hiroki Narukawa [Thu, 9 Sep 2021 03:34:46 +0000 (12:34 +0900)] 
conf: add queue_size option to disk

The option "queue-size" for virtio-blk was added in qemu-2.12.0, and
default value increased from qemu-5.0.0.

However, increasing this value may lead to drop of random access
performance.

Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
3 years agovirDomainDiskDefCheckABIStability: add disk queue count ABI stability check
Hiroki Narukawa [Thu, 9 Sep 2021 03:34:45 +0000 (12:34 +0900)] 
virDomainDiskDefCheckABIStability: add disk queue count ABI stability check

virtio-blk num-queue is visible to guest OS, so this must be kept while
live migration.

Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
3 years agoqemuxml2*test: Make disk-virtio-queues tests use DO_TEST_CAPS_LATEST
Hiroki Narukawa [Thu, 9 Sep 2021 03:34:44 +0000 (12:34 +0900)] 
qemuxml2*test: Make disk-virtio-queues tests use DO_TEST_CAPS_LATEST

Currently disk-virtio-queues test is now using specifying a fake
capability.

By this commit this test will make use of DO_TEST_CAPS_LATEST.

Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
3 years agovsh: Ensure that bool --options don't have completer
Michal Privoznik [Fri, 17 Sep 2021 07:58:03 +0000 (09:58 +0200)] 
vsh: Ensure that bool --options don't have completer

Let's check whether a boolean --option doesn't have completer or
completer_flags set. These options are just flags and don't
accept any value, thus they can't have any completer.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agovsh: Extend checks for aliased commands
Michal Privoznik [Fri, 17 Sep 2021 07:52:43 +0000 (09:52 +0200)] 
vsh: Extend checks for aliased commands

If a command is an alias, then it can only have .name, .flags and
.alias set and .flags should contain just VSH_CMD_FLAG_ALIAS.
Check if that's the case in self-test.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agovirsh: Provide local path completer for vol-download --file
Michal Privoznik [Fri, 17 Sep 2021 07:58:54 +0000 (09:58 +0200)] 
virsh: Provide local path completer for vol-download --file

The vol-download command takes mandatory --file argument which
points to a local (possibly non-existent) path. If the file
exists then it's overwritten. Set the argument's completer so
that self-test doesn't report it as missing.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agovirsh: Provide local path completer for screenshot --file
Michal Privoznik [Fri, 17 Sep 2021 07:50:09 +0000 (09:50 +0200)] 
virsh: Provide local path completer for screenshot --file

The screenshot command takes optional --file argument which can
point to an existing local path (in which case the file is
overwritten). Set the argument's completer so that self-test
doesn't report it as missing.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Mon, 20 Sep 2021 07:37:17 +0000 (09:37 +0200)] 
Translated using Weblate (Swedish)

Currently translated at 28.3% (2933 of 10353 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>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:16 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 82.9% (8591 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 82.9% (8591 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:37:16 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 82.9% (8591 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 80.9% (8378 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:15 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 80.9% (8378 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 79.3% (8219 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:37:14 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 79.3% (8219 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:13 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 78.5% (8130 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:37:11 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 78.5% (8130 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:10 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 78.1% (8095 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:37:09 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 78.1% (8095 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:08 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 73.2% (7583 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:37:06 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 73.2% (7583 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:05 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 73.2% (7582 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:37:04 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 73.2% (7582 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 73.2% (7581 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:03 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 65.6% (6794 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 65.6% (6792 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 65.6% (6792 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:37:02 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 65.6% (6792 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 63.6% (6585 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agoTranslated using Weblate (Finnish)
Jan Kuparinen [Mon, 20 Sep 2021 07:37:01 +0000 (09:37 +0200)] 
Translated using Weblate (Finnish)

Currently translated at 23.0% (2388 of 10353 strings)

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

Translated using Weblate (Finnish)

Currently translated at 22.9% (2377 of 10353 strings)

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

Translated using Weblate (Finnish)

Currently translated at 22.7% (2351 of 10353 strings)

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

Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com>
Signed-off-by: Jan Kuparinen <copper_fin@hotmail.com>
3 years agoTranslated using Weblate (Korean)
simmon [Mon, 20 Sep 2021 07:37:00 +0000 (09:37 +0200)] 
Translated using Weblate (Korean)

Currently translated at 62.1% (6434 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 62.1% (6431 of 10353 strings)

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

Co-authored-by: simmon <simmon@nplob.com>
Signed-off-by: simmon <simmon@nplob.com>
3 years agoTranslated using Weblate (Korean)
jason lee [Mon, 20 Sep 2021 07:36:59 +0000 (09:36 +0200)] 
Translated using Weblate (Korean)

Currently translated at 62.1% (6431 of 10353 strings)

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

Translated using Weblate (Korean)

Currently translated at 55.9% (5792 of 10353 strings)

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

Co-authored-by: jason lee <ppark5237@gmail.com>
Signed-off-by: jason lee <ppark5237@gmail.com>
3 years agogitlab: remove obsolete job rules for TEMPORARILY_DISABLED variable
Daniel P. Berrangé [Mon, 20 Sep 2021 12:02:22 +0000 (13:02 +0100)] 
gitlab: remove obsolete job rules for TEMPORARILY_DISABLED variable

We previously had a 'rules:' entry that caused a job to be skipped if
the variable "TEMPORARILY_DISABLED" was set. This is no longer needed
since we can set a similar flag in ci/manifest.yml and re-generate
to temporarily skip a job.

Unfortunately the 'rules:' entry had an unexpected side-effect on
the pipelines that was never previously noticed. Instead of only
running pipelines on push, the mere existance of the 'rules:' entry
caused triggering of pipelines on merge requests too.

The newly auto-generated ci/gitlab.yml file does not have a 'rules:'
for the container job template, and thus only runs on git push.

The result is that build jobs try to run on merge requests and the
container jobs they depend on don't exist. This breaks the entire
pipeline with a message that the config is invalid due to broken
job dependencies.

This fixes a regression introduced in

  commit ccc7a44adbea003d6a0dc2f156adb2856c28bd4c
  Author: Daniel P. Berrangé <berrange@redhat.com>
  Date:   Thu Sep 9 14:49:01 2021 +0100

    ci: re-generate containers/gitlab config from manifest

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agotools: virsh-snapshot: refactor small functions
Kristina Hanicova [Fri, 17 Sep 2021 13:23:17 +0000 (15:23 +0200)] 
tools: virsh-snapshot: refactor small functions

This patch includes:
* removal of dead code
* simplifying nested if conditions
* removal of unnecessary variables
* usage of "direct" boolean return

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoFix typos
Tim Wiederhake [Fri, 10 Sep 2021 10:48:47 +0000 (12:48 +0200)] 
Fix typos

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
3 years agovsh: Move 'vshReadlineOptionsGenerator' out of '#if WITH_READLINE'
Peter Krempa [Fri, 17 Sep 2021 08:58:28 +0000 (10:58 +0200)] 
vsh: Move 'vshReadlineOptionsGenerator' out of '#if WITH_READLINE'

It's now also used in vshCompleteHelpCommand which is outside of the
conditionally compiled code.

Fixes: 80f70c74a7
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
3 years agovirsh-completer: Provide completer for '--top' and '--base' for blockjobs
Peter Krempa [Thu, 16 Sep 2021 15:49:50 +0000 (17:49 +0200)] 
virsh-completer: Provide completer for '--top' and '--base' for blockjobs

Complete with the indexed targets (e.g. vda[3]) based on existing
indexes.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: Introduce virshCompleteEmpty and use it for places where we can't suggest...
Peter Krempa [Wed, 15 Sep 2021 15:42:08 +0000 (17:42 +0200)] 
virsh: Introduce virshCompleteEmpty and use it for places where we can't suggest anything

For now this serves just as an annotation because readline and also the
bash completion script insist on completing local paths when an empty
list is returned.

This will serve for future reference once we'll be able to properly
refuse to suggest anything.

The completer is used for fields such as names for new objects,
description strings, password strings etc, URIs and hostnames which we
can't feasibly autocomplete.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: Use 'virshCompletePathLocalExisting' for options reading local files
Peter Krempa [Wed, 15 Sep 2021 15:26:35 +0000 (17:26 +0200)] 
virsh: Use 'virshCompletePathLocalExisting' for options reading local files

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: completer: Introduce dummy completer for local files
Peter Krempa [Wed, 15 Sep 2021 15:08:37 +0000 (17:08 +0200)] 
virsh: completer: Introduce dummy completer for local files

For now the completion does the correct thing of completing a local path
if NULL is returned.

Introduce 'virshCompletePathLocalExisting' and use it in the
'VIRSH_COMMON_OPT_FILE' macro.

This for now serves as an annotation for the function which want to read
a file on the host running virsh. In the future this can be used with a
more sophisticated implementation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: Expand VIRSH_COMMON_OPT_FILE for cases when it's not a local file used by...
Peter Krempa [Thu, 16 Sep 2021 11:03:02 +0000 (13:03 +0200)] 
virsh: Expand VIRSH_COMMON_OPT_FILE for cases when it's not a local file used by virsh

In cases such as the APIs for managed save management, the file path
provided via the '--file' option is passed to the API.

We'll need to make them distinct from cases for when virsh is using the
file so that different completers can be used.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: Provide completers for options taking comma separated list of disk targets
Peter Krempa [Thu, 16 Sep 2021 13:11:03 +0000 (15:11 +0200)] 
virsh: Provide completers for options taking comma separated list of disk targets

'--storage' of the 'undefine' command and '--migrate-disks' of the
'migrate' command take a list of disk targets as an argument.

We can simply combine 'virshDomainDiskTargetCompleter' with
'virshCommaStringListComplete' to provide the completions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovsh: Add completer for '--command' of 'help' command
Peter Krempa [Thu, 16 Sep 2021 14:07:19 +0000 (16:07 +0200)] 
vsh: Add completer for '--command' of 'help' command

Wrap 'vshReadlineCommandGenerator' into a function with proper prototype
to provide a completer for the help command.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: Use 'virshStoragePoolNameCompleter' for two options
Peter Krempa [Thu, 16 Sep 2021 12:52:50 +0000 (14:52 +0200)] 
virsh: Use 'virshStoragePoolNameCompleter' for two options

'--pool' of the 'pool-event' command and '--inputpool' of
'vol-create-from' use the above mentioned completer.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh-snapshot: Use 'virshSnapshotNameCompleter' for '--from' of 'snapshot-list'
Peter Krempa [Thu, 16 Sep 2021 12:31:13 +0000 (14:31 +0200)] 
virsh-snapshot: Use 'virshSnapshotNameCompleter' for '--from' of 'snapshot-list'

When listing a snapshot tree, the '--from' option takes a name of a
snapshot to limit the subset. Use virshSnapshotNameCompleter as
completer for the option.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovsh: Introduce '--completers-missing' for 'self-test' command
Peter Krempa [Thu, 4 Mar 2021 14:47:28 +0000 (15:47 +0100)] 
vsh: Introduce '--completers-missing' for 'self-test' command

Make it simple to spot which options of which commands are missing
autocompletion functions by introducing this hidden option.

In the future when we'll have completers for everything this can be also
used as a hard fail so that completers are always added.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovshCmddefCheckInternals: Sanitize command alias validation
Peter Krempa [Thu, 16 Sep 2021 13:44:25 +0000 (15:44 +0200)] 
vshCmddefCheckInternals: Sanitize command alias validation

We don't need to validate the real command twice, but it's better to
check that the real command name exists and it's not an alias to prevent
loops.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: Remove hack using 'VSH_CMD_FLAG_ALIAS' to hide virsh commands
Peter Krempa [Thu, 16 Sep 2021 13:57:28 +0000 (15:57 +0200)] 
virsh: Remove hack using 'VSH_CMD_FLAG_ALIAS' to hide virsh commands

Introduce a proper flag 'VSH_CMD_FLAG_HIDDEN' for hiding commands from
output so that we can validate that there aren't any loops or
misconfigured commands.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh-completer*.h: Use modern header style
Peter Krempa [Thu, 16 Sep 2021 09:19:01 +0000 (11:19 +0200)] 
virsh-completer*.h: Use modern header style

Prevent the need to edit the function declarations to put them into the
header. There was even inconsistent use.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirshCheckpointNameCompleter: Sanitize forward declaration use
Peter Krempa [Thu, 16 Sep 2021 09:11:42 +0000 (11:11 +0200)] 
virshCheckpointNameCompleter: Sanitize forward declaration use

Include the proper header instead of duplicating the declaration.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agodocs: update nodedev driver docs for new mdev features
Jonathon Jongsma [Wed, 2 Jun 2021 20:03:12 +0000 (15:03 -0500)] 
docs: update nodedev driver docs for new mdev features

Add up-to-date information about creating and defining mediated devices
in libvirt.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agodocs: Expand manpage documentation for nodedev commands
Jonathon Jongsma [Wed, 2 Jun 2021 16:42:33 +0000 (11:42 -0500)] 
docs: Expand manpage documentation for nodedev commands

Bring the documentation for nodedev-list up to date with the latest
code, especially documenting the --active and -all options.

Also add documentation for the nodedev-define, nodedev-undefine, and
nodedev-start commands.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirsh: Make code flow in cmdManagedSaveRemove more straightforward
Jiri Denemark [Wed, 15 Sep 2021 14:15:11 +0000 (16:15 +0200)] 
virsh: Make code flow in cmdManagedSaveRemove more straightforward

By doing so we can get rid of the code which violates our coding style
guidelines.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
3 years agovirsh: add support for '--validate' option in create network
Kristina Hanicova [Wed, 15 Sep 2021 11:07:31 +0000 (13:07 +0200)] 
virsh: add support for '--validate' option in create network

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agonetwork: allow VIR_NETWORK_CREATE_VALIDATE flag
Kristina Hanicova [Wed, 15 Sep 2021 11:07:30 +0000 (13:07 +0200)] 
network: allow VIR_NETWORK_CREATE_VALIDATE flag

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoapi: add virNetworkCreateFlags
Kristina Hanicova [Wed, 15 Sep 2021 11:07:29 +0000 (13:07 +0200)] 
api: add virNetworkCreateFlags

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agosrc: add driver support for networkCreateXMLFlags()
Kristina Hanicova [Wed, 15 Sep 2021 11:07:28 +0000 (13:07 +0200)] 
src: add driver support for networkCreateXMLFlags()

I added new driver functions to handle creating network with
given flags. I also replaced definitions of the functions without
flags with function calls to the new ones.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoapi: add public virNetworkCreateXMLFlags() and remote protocol
Kristina Hanicova [Wed, 15 Sep 2021 11:07:27 +0000 (13:07 +0200)] 
api: add public virNetworkCreateXMLFlags() and remote protocol

This new API creates network with given flags.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoconf: log error on attempts to modify ACPI index of active device
Laine Stump [Thu, 9 Sep 2021 17:02:56 +0000 (13:02 -0400)] 
conf: log error on attempts to modify ACPI index of active device

The ACPI index of a device in a running guest can't be modified, and
libvirt doesn't actually attempt to modify it, but it was possible for
a user to request such a modification, and libvirt wouldn't complain,
thus misleading the user into thinking that it had actually been changed.

Resolves: https://bugzilla.redhat.com/1998920

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoconf: reformat virDomainDefCompatibleDevice for upcoming additional check
Laine Stump [Thu, 9 Sep 2021 16:57:32 +0000 (12:57 -0400)] 
conf: reformat virDomainDefCompatibleDevice for upcoming additional check

The next patch will add another check similar to the existing check
for a change in alias name. This patch reformats the code in
preparation so that the next patch's purpose will be clear.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agotools/virsh-pool: refactor smaller functions
Kristina Hanicova [Wed, 15 Sep 2021 14:27:15 +0000 (16:27 +0200)] 
tools/virsh-pool: refactor smaller functions

I think these functions look much more readable with just simple
if conditions.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoqemu: Fix typo in qemuBuilNumaCellCache
Michal Privoznik [Wed, 15 Sep 2021 13:47:16 +0000 (15:47 +0200)] 
qemu: Fix typo in qemuBuilNumaCellCache

The function should be named qemuBuildNumaCellCache (note the
missing 'd' in Build).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
3 years agonews: mention new nodedev API
Jonathon Jongsma [Tue, 14 Sep 2021 20:17:05 +0000 (15:17 -0500)] 
news: mention new nodedev API

Add news item about the new API for node devices.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat>
3 years agodocs: fix migration_features element name in formatcaps.html.in
Robin Lee [Mon, 13 Sep 2021 07:17:09 +0000 (15:17 +0800)] 
docs: fix migration_features element name in formatcaps.html.in

Signed-off-by: Robin Lee <cheeselee@fedoraproject.org>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
3 years agovirshDomainGetVcpuBitmap: Refactor cleanup
Peter Krempa [Wed, 15 Sep 2021 13:13:24 +0000 (15:13 +0200)] 
virshDomainGetVcpuBitmap: Refactor cleanup

Rename the temp variable that is being returned and use automatic
pointer clearing for it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
3 years agovirshDomainGetVcpuBitmap: Return bitmap when taking the fallback path
Peter Krempa [Wed, 15 Sep 2021 13:09:00 +0000 (15:09 +0200)] 
virshDomainGetVcpuBitmap: Return bitmap when taking the fallback path

In case the specific VCPU states are not present in the XML we were
taking a fallback code path just noting that all cpus of the VM are
enabled.

This was broken by a mistake in a recent refactor where a 'goto cleanup'
was mistakenly replaced by a 'return NULL'. This broke reporting of cpus
and also caused a memory leak.

Return the fallback cpu map.

Fixes: bd1f40fe7d4
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2004429
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
3 years agoqemu: validate: Allow 'preserve' action for on_crash lifecycle action
Peter Krempa [Wed, 15 Sep 2021 11:11:40 +0000 (13:11 +0200)] 
qemu: validate: Allow 'preserve' action for on_crash lifecycle action

In fact keeping the VM around for debugging is a desirable configuration
and actually the implementation has no code as we keep the VM around.

Remove the validation and add a note that it's actually used.

Fixes: b1b85a475fb251b9068b75f629479f5c452f1b43
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
3 years agoqemuxml2argvdata: Remove unused '.err' files
Peter Krempa [Tue, 14 Sep 2021 08:09:45 +0000 (10:09 +0200)] 
qemuxml2argvdata: Remove unused '.err' files

These are no longer referenced by any existing test as of:

os-firmware-invalid-type -> a9b1375d7d2f7d240dce09c5f8b62e568e386051
tseg-explicit-size -> 604990a1758bfdc302f3c576c5766c0763912dfd

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3 years agoqemu_tpm: Start swtpm(8) daemon with --terminate switch
Nick Chevsky [Mon, 13 Sep 2021 06:16:18 +0000 (01:16 -0500)] 
qemu_tpm: Start swtpm(8) daemon with --terminate switch

Launch swtpm(8) with the --terminate switch, which guarantees that
the daemon will shut itself down when QEMU dies (current behavior).
We had so far been getting this "for free" (i.e. without --terminate)
due to a defect in upstream's connection handling logic [1], on which
libvirt should not rely since it will eventually be fixed. Adding
--terminate preserves and guarantees the current behavior.

[1] https://github.com/stefanberger/swtpm/pull/509

Signed-off-by: Nick Chevsky <nchevsky@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agonode_device_conf: Don't prealloc @vfs in virNodeDeviceGetPCISRIOVCaps()
Michal Privoznik [Sun, 12 Sep 2021 06:28:48 +0000 (08:28 +0200)] 
node_device_conf: Don't prealloc @vfs in virNodeDeviceGetPCISRIOVCaps()

The array of virtual functions @vfs in
virNodeDeviceGetPCISRIOVCaps() is allocated twice: the first time
during its declaration and the second time inside
virPCIGetVirtualFunctions() which leads to a memleak:

==16691== 1,128 bytes in 47 blocks are definitely lost in loss record 1,771 of 1,803
==16691==    at 0x4844CC1: calloc (vg_replace_malloc.c:1117)
==16691==    by 0x4E50070: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6800.3)
==16691==    by 0x4A7B034: virNodeDeviceGetPCISRIOVCaps (node_device_conf.c:2649)
==16691==    by 0x4A7B5E2: virNodeDeviceGetPCIDynamicCaps (node_device_conf.c:2762)
==16691==    by 0xA7F6E18: udevProcessPCI (node_device_udev.c:418)

Fixes: c97518d9b833a607f29b9bb02e3fbe74c011c088
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: Format @variable properly
Michal Privoznik [Fri, 10 Sep 2021 12:55:02 +0000 (14:55 +0200)] 
docs: Format @variable properly

When documenting our public API in some places we use '@' to
refer to the variable. For instance:

 * This API tries to set guest time to the given value. The time
 * to set (@seconds and @nseconds) should be in seconds relative
 * to the Epoch of 1970-01-01 00:00:00 in UTC.

However, when generating HTML documentation these tokens are
copied verbatim. What we can do is drop the '@' character and
wrap the variable in <code/> so that it is formatted properly.

Due to the way we 'parse' docs a token might actually be slightly
more than just '@variable'. For instance in the example above we
will have the following tokens: '(@seconds' and '@nseconds)'.
Thus we need to handle possible substring before and after
variable.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agovirsh: add nodedev-info
Jonathon Jongsma [Wed, 2 Jun 2021 20:27:41 +0000 (15:27 -0500)] 
virsh: add nodedev-info

This is currently the only way to view the 'autostart' property for a
node device in virsh.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agonodedev: Implement virNodeDeviceIsPersistent()/IsActive()
Jonathon Jongsma [Thu, 3 Jun 2021 18:28:39 +0000 (13:28 -0500)] 
nodedev: Implement virNodeDeviceIsPersistent()/IsActive()

Implement these new API functions in the nodedev driver.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agoapi: add virNodeDeviceIsPersistent()/IsActive()
Jonathon Jongsma [Thu, 3 Jun 2021 18:21:00 +0000 (13:21 -0500)] 
api: add virNodeDeviceIsPersistent()/IsActive()

These two public APIs are implemented for almost all other objects that
have a concept of persistent definition and activatability. Now that we
have node devices (mdevs) that can be defined and inactive, it will be
useful to query the persistent/active state of node devices as well.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agovirsh: add nodedev-autostart
Jonathon Jongsma [Thu, 27 May 2021 21:20:13 +0000 (16:20 -0500)] 
virsh: add nodedev-autostart

Add ability to set node devices to autostart on boot or parent device
availability.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agonodedev: Add tests for mdevctl autostart command
Jonathon Jongsma [Thu, 27 May 2021 21:06:19 +0000 (16:06 -0500)] 
nodedev: Add tests for mdevctl autostart command

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agonodedev: implement virNodeDevice(Get|Set)Autostart()
Jonathon Jongsma [Wed, 26 May 2021 20:09:29 +0000 (15:09 -0500)] 
nodedev: implement virNodeDevice(Get|Set)Autostart()

Implement autostart functionality for mediated devices.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoapi: add virNodeDevice(Get|Set)Autostart()
Jonathon Jongsma [Wed, 26 May 2021 14:06:12 +0000 (09:06 -0500)] 
api: add virNodeDevice(Get|Set)Autostart()

This will allow persistent mediated devices to be configured to be
restarted automatically when the host reboots.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agolibxl: Don't autostart domains on driver reload
Jim Fehlig [Tue, 14 Sep 2021 17:11:11 +0000 (11:11 -0600)] 
libxl: Don't autostart domains on driver reload

When libxlAutostartDomain was introduced with commit fb92307f0d, one hunk
mistakenly added a call site in libxlStateReload. Domains should not be
autostarted when reloading the driver, so remove the offending hunk.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agolibxl: Fix driver reload
Jim Fehlig [Mon, 13 Sep 2021 22:04:41 +0000 (16:04 -0600)] 
libxl: Fix driver reload

On reload, the libxl driver calls virDomainObjListLoadAllConfigs to load
all configs from /etc/libvirt/libxl/ but incorrectly passes 'true' for
the liveStatus parameter, resulting in error messages such as

libvirtd[21053]: XML error: unexpected root element <domain>, expecting <domstatus>
libvirtd[21053]: Failed to load config for domain 'sles15sp3'

Fix by not requesting live status when re-reading the persistent VM config
files.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agolibxl: Improve reporting of die_id in capabilities
Jim Fehlig [Fri, 10 Sep 2021 20:34:09 +0000 (14:34 -0600)] 
libxl: Improve reporting of die_id in capabilities

On Xen, libvirt runs in a VM (typically dom0) and does not have an accurate
picture of numa and cpu topology of the underlying physical machine using
the "usual" mechanisms. numa info and cpu toplogy are retrieved from libxl
and used to populate the libvirt conterparts. Commit 7b79ee2f78b introduced
support for reporting die_id in capabilities, but did not account for
special handling of numa and cpu topology in libxl.

Currently, Xen does not report die_id in the libxl_cputopology structure.
In the meantime, set die_id to 0, which was suggested by the Xen developers
and is slightly better than random garbage such as

<cpu id='1' socket_id='0' die_id='-1073069552' core_id='0' siblings='0-1'/>

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoci: Regenerate configuration from manifest
Andrea Bolognani [Fri, 10 Sep 2021 14:54:44 +0000 (16:54 +0200)] 
ci: Regenerate configuration from manifest

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agoci: Add Debian 11 builds
Andrea Bolognani [Fri, 10 Sep 2021 14:48:25 +0000 (16:48 +0200)] 
ci: Add Debian 11 builds

The armv7l and ppc64le cross-builds as well as the Clang build
are adopted from Debian 10, while the mips64el build is adopted
from Debian sid. As always, the way jobs are distributed across
Debian versions is fairly arbitrary.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agoci: Avoid use of magic constants
Andrea Bolognani [Fri, 10 Sep 2021 13:35:49 +0000 (15:35 +0200)] 
ci: Avoid use of magic constants

The value 3 is the length of the "ci-" prefix, which is present
in the items returned by get_registry_images() but not in those
returned by get_dockerfiles().

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Beraldo Leal <bleal@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoci: Restore information about Coverity integration
Andrea Bolognani [Fri, 10 Sep 2021 13:27:44 +0000 (15:27 +0200)] 
ci: Restore information about Coverity integration

These were removed along with the outdated information on how
to regenerate the Dockerfiles contained in the repository, but
this part is still relevant.

Reverts: 30856d2865122f82ec25c258c7cd2cceb52aa7a5 (partially)
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agodocs: Fix dimm example
Michal Privoznik [Sun, 12 Sep 2021 07:30:29 +0000 (09:30 +0200)] 
docs: Fix dimm example

In the example for <memory model='dimm'/> we show how to
configure hugepages as backend. In the example we show 4MiB
hugepages which are non-standard and thus at the first glance may
mislead users thinking that a regular sized pages (4K) will be
used. Use 2MiB as the value instead.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3 years agosrc: network_conf: propagate only bool to virNetworkDefParseString()
Kristina Hanicova [Fri, 10 Sep 2021 14:48:22 +0000 (16:48 +0200)] 
src: network_conf: propagate only bool to virNetworkDefParseString()

We don't need to propagate all public flags, only the information
about the presence of the validation one, which can differ from
function to function. This patch makes it easier and more
readable in case of a future additions of validation flags.
This change was suggested by Daniel.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoqemuDomainChangeDiskLive: Modify 'startupPolicy' before changing source
Peter Krempa [Fri, 10 Sep 2021 13:33:17 +0000 (15:33 +0200)] 
qemuDomainChangeDiskLive: Modify 'startupPolicy' before changing source

We don't support all startup policies with all source types so to
correctly allow switching from a 'file' based cdrom with 'optional'
startup policy to a 'block' based one which doesn't support optional we
must update the startup policy field first. Obviously we need to have
fallback if the update fails.

Reported-by: Vojtech Juranek <vjuranek@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoqemuProcessQMPInit: Use long options for '-qmp' when probing qemu.
Peter Krempa [Fri, 10 Sep 2021 12:16:50 +0000 (14:16 +0200)] 
qemuProcessQMPInit: Use long options for '-qmp' when probing qemu.

'-qmp' in this case behaves the same as '-chardev' so it should have
been converted the same way as others were in 43c9c0859f2d53321 since
short options are deprecated.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agoci: remove obsolete logic for refreshing containers/cirrus
Daniel P. Berrangé [Thu, 9 Sep 2021 13:20:44 +0000 (14:20 +0100)] 
ci: remove obsolete logic for refreshing containers/cirrus

We now use lcitool's manifest feature to generate files. The logic
for checking for stale containers in the registry, however, is still
relevant so that is propagated to a standalone command.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agoci: remove obsolete refresh documentation
Daniel P. Berrangé [Thu, 9 Sep 2021 13:20:11 +0000 (14:20 +0100)] 
ci: remove obsolete refresh documentation

We now use lcitool's manifest feature to generate files.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agoci: re-generate containers/gitlab config from manifest
Daniel P. Berrangé [Thu, 9 Sep 2021 13:49:01 +0000 (14:49 +0100)] 
ci: re-generate containers/gitlab config from manifest

This uses the command "lcitool manifest ci/manifest.yml" to re-generate
all existing dockerfiles and gitlab CI config.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agogitlab: define a manifest file to express the CI config
Daniel P. Berrangé [Wed, 25 Nov 2020 12:05:41 +0000 (12:05 +0000)] 
gitlab: define a manifest file to express the CI config

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agogitlab: fold sanitizer jobs into regular ubuntu jobs
Daniel P. Berrangé [Thu, 9 Sep 2021 13:47:48 +0000 (14:47 +0100)] 
gitlab: fold sanitizer jobs into regular ubuntu jobs

The sanitizer jobs run in ubuntu 20.04 containers and thus overlap with
testing already done for the regular ubuntu 20.04 build job. Fold the
sanitizer run for GCC into the regular build job and add a second
ubuntu 20.04 build job for CLang sanitizers.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agogitlab: refresh containers / cirrus files with latest content
Daniel P. Berrangé [Mon, 19 Jul 2021 12:36:51 +0000 (13:36 +0100)] 
gitlab: refresh containers / cirrus files with latest content

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agogitlab: move codestyle job to the sanity_checks stage
Daniel P. Berrangé [Wed, 12 May 2021 17:27:56 +0000 (18:27 +0100)] 
gitlab: move codestyle job to the sanity_checks stage

It was in the build stage previously to let it run in parallel with
other build jobs, but with the "needs" clause this is not required.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3 years agolibvirt-domain.c: Fix typo in virDomainAttachDevice doc
Michal Privoznik [Fri, 10 Sep 2021 08:58:55 +0000 (10:58 +0200)] 
libvirt-domain.c: Fix typo in virDomainAttachDevice doc

In the documentation to virDomainAttachDevice() we refer to a
non-existent virDomainUpdateDeviceFlag() function. The correct
name is virDomainUpdateDeviceFlags().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
3 years agotests: remove pointless labels
Ján Tomko [Sat, 4 Sep 2021 20:41:46 +0000 (22:41 +0200)] 
tests: remove pointless labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
3 years agotests: vir: remove pointless labels
Ján Tomko [Sat, 4 Sep 2021 20:41:36 +0000 (22:41 +0200)] 
tests: vir: remove pointless labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
3 years agotests: vshtabletest: remove pointless labels
Ján Tomko [Sat, 4 Sep 2021 20:40:50 +0000 (22:40 +0200)] 
tests: vshtabletest: remove pointless labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
3 years agotests: nwfilter: remove pointless labels
Ján Tomko [Sat, 4 Sep 2021 20:40:20 +0000 (22:40 +0200)] 
tests: nwfilter: remove pointless labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
3 years agotests: libxl: remove pointless labels
Ján Tomko [Sat, 4 Sep 2021 20:39:45 +0000 (22:39 +0200)] 
tests: libxl: remove pointless labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
3 years agotests: vmx: remove pointless labels
Ján Tomko [Sat, 4 Sep 2021 20:39:27 +0000 (22:39 +0200)] 
tests: vmx: remove pointless labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
3 years agotests: qemu: remove pointless labels
Ján Tomko [Sat, 4 Sep 2021 20:38:39 +0000 (22:38 +0200)] 
tests: qemu: remove pointless labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
3 years agotests: use g_auto instead of virDomainFree
Ján Tomko [Sat, 4 Sep 2021 19:50:02 +0000 (21:50 +0200)] 
tests: use g_auto instead of virDomainFree

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>