]> git.ipfire.org Git - thirdparty/libvirt.git/log
thirdparty/libvirt.git
3 years agoconf: Introduce virDomainObjIsFailedPostcopy helper
Jiri Denemark [Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)] 
conf: Introduce virDomainObjIsFailedPostcopy helper

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3 years agoqemu: Make qemuDomainCleanupAdd return void
Jiri Denemark [Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)] 
qemu: Make qemuDomainCleanupAdd return void

The function never returns anything but zero.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3 years agoqemu: Explicitly emit events on post-copy failure
Jiri Denemark [Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)] 
qemu: Explicitly emit events on post-copy failure

The events would normally be triggered only if we're changing domain
state. But most of the time the domain is already in the right state and
we're just changing its substate from {PAUSED,RUNNING}_POSTCOPY to
*_POSTCOPY_FAILED. Let's emit lifecycle events explicitly when post-copy
migration fails to make the failure visible without polling.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3 years agoqemu: Keep domain running on dst on failed post-copy migration
Jiri Denemark [Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)] 
qemu: Keep domain running on dst on failed post-copy migration

There's no need to artificially pause a domain when post-copy fails
from our point of view unless QEMU connection is broken too as migration
may still be progressing well.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
3 years agoIntroduce VIR_DOMAIN_RUNNING_POSTCOPY_FAILED
Jiri Denemark [Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)] 
Introduce VIR_DOMAIN_RUNNING_POSTCOPY_FAILED

This new "post-copy failed" reason for the running state will be used on
the destination host when post-copy migration fails while the domain is
already running there.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
3 years agoqemumonitorjsontest: Test more migration capabilities
Jiri Denemark [Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)] 
qemumonitorjsontest: Test more migration capabilities

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3 years agoqemu: Add debug messages to job recovery code
Jiri Denemark [Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)] 
qemu: Add debug messages to job recovery code

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Tue, 7 Jun 2022 11:46:27 +0000 (13:46 +0200)] 
Translated using Weblate (Swedish)

Currently translated at 34.5% (3601 of 10431 strings)

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

Translated using Weblate (Swedish)

Currently translated at 34.1% (3561 of 10431 strings)

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

Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
3 years agostorage_file: Remove unused includes
Peng Liang [Sat, 14 May 2022 08:05:32 +0000 (16:05 +0800)] 
storage_file: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agosecurity: Remove unused includes
Peng Liang [Sat, 14 May 2022 08:05:30 +0000 (16:05 +0800)] 
security: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agosecret: Remove unused includes
Peng Liang [Sat, 14 May 2022 08:05:29 +0000 (16:05 +0800)] 
secret: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agonwfilter: Remove unused includes
Peng Liang [Sat, 14 May 2022 08:05:24 +0000 (16:05 +0800)] 
nwfilter: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agointerface: Remove unused includes
Peng Liang [Sat, 14 May 2022 08:05:18 +0000 (16:05 +0800)] 
interface: Remove unused includes

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: contact: recommend the TLS port for IRC
Ján Tomko [Wed, 1 Jun 2022 08:04:58 +0000 (10:04 +0200)] 
docs: contact: recommend the TLS port for IRC

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
3 years agoqemucapabilitiestest: Update latest caps to 'v7.0.0-1512-gca127b3fc2'
Peter Krempa [Tue, 17 May 2022 11:32:02 +0000 (13:32 +0200)] 
qemucapabilitiestest: Update latest caps to 'v7.0.0-1512-gca127b3fc2'

Notable changes:

 - Icelake-Client cpu model family removed:
     "Icelake-Client-noTSX-x86_64-cpu"
     "Icelake-Client-v1-x86_64-cpu"
     "Icelake-Client-v2-x86_64-cpu"
     "Icelake-Client-v3-x86_64-cpu"
     "Icelake-Client-x86_64-cpu"

 - 'zero-copy-send' migration feature added

 - display 'sdl' qapified

 - 'arch-lbr' cpu feature added

 - new HyperV enlightenments:
     'hv-tlbflush-ext'
     'hv-tlbflush-direct'
     'hv-emsr-bitmap'
     'hv-xmm-input'

 - 'none-machine' has two new properties:
     - "boot" described as "Boot configuration"
     - "memory" described as "Memory size configuration"

 - 'igd-passthrough-isa-bridge' is now Xen-only

 - CXL: Compute eXpress Link related devices:
      "CXL"
      "cxl-rp",
      "cxl-type3",
      "pxb-cxl",
      "pxb-cxl-bus",
      "pxb-cxl-host",

 - 'dma-translation' feature of 'intel-iommu'

 - 'vmcb-clean' cpu feature now migratable:
     - possibly due to host kernel upgrade
     - changes commandline generated for the 'cpu-host-model' case of
       qemuxml2argvtest

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoqemu: Fix crash in qemuBuildDeviceCommandlineHandleOverrides
Peter Krempa [Mon, 6 Jun 2022 08:10:44 +0000 (10:10 +0200)] 
qemu: Fix crash in qemuBuildDeviceCommandlineHandleOverrides

'STREQ' is used to compare the override alias with the device alias.
While the parser ensures that the override alias is non-NULL, the device
alias may be NULL and STREQ doesn't handle that.

Fixes: 38ab5c9ead5
Resolves: https://gitlab.com/libvirt/libvirt/-/issues/321
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agoqemu: fd: Fix monitor usage of qemuFDPassDirectGetPath
Peter Krempa [Fri, 3 Jun 2022 13:49:01 +0000 (15:49 +0200)] 
qemu: fd: Fix monitor usage of qemuFDPassDirectGetPath

We need to use the 'name' variable and just overwrite it with the FD
number when FDs are passed on the monitor. Otherwise we will read NULL
path if the FD is accessed before being passed on the monitor. The idea
of this helper is to simplify the monitor code so it would be
counterproductive to have other behaviour.

Fixes the following symptom:

 $ virsh attach-interface cd network default --model virtio
 error: Failed to attach interface
 error: internal error: unable to execute QEMU command 'netdev_add': File descriptor named '(null)' has not been found

Fixes: bca9047906fd73fd30f275dd45b64998fbbcf6de
Resolves: https://gitlab.com/libvirt/libvirt/-/issues/318
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2092856
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agoutil: json: Add modifier for adding non-negative long values to JSON objects
Peter Krempa [Thu, 2 Jun 2022 07:37:04 +0000 (09:37 +0200)] 
util: json: Add modifier for adding non-negative long values to JSON objects

Similarly to the 'k' modifier for integers introduce 'K' for long
integers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
3 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Thu, 2 Jun 2022 20:18:44 +0000 (22:18 +0200)] 
Translated using Weblate (Swedish)

Currently translated at 33.3% (3481 of 10431 strings)

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

Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
3 years agoqemu: Restore label to temp file in qemuDomainScreenshot()
Michal Privoznik [Thu, 2 Jun 2022 12:05:25 +0000 (14:05 +0200)] 
qemu: Restore label to temp file in qemuDomainScreenshot()

Obtaining a screenshot via virDomainScreenshot() works like this:
  1) we create a temp file, label it, then
  2) tell QEMU to store the screenshot into it, and
  3) finally, open the file for transfer via virStream

Since the file is just temporary and even explicitly unlinked at
the end, no seclabel restoration is done. This makes perfect
sense for security models which attach a label to file itself
(DAC, SELinux) because the label is gone with the file. However,
for models where a list of files and allowed actions is kept on a
side (AppArmor) this approach means we just append files into the
profile and never remove them. In turn, the file grows and policy
update takes longer with each entry.

Restore the seclabel for AppArmor's sake.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
3 years agovirStorageSourceGetActualType: Change type of retval
Michal Privoznik [Sun, 23 Jan 2022 11:10:35 +0000 (12:10 +0100)] 
virStorageSourceGetActualType: Change type of retval

The virStorageSourceGetActualType() function returns either
virStorageSource->type (which is of type virStorageType), or
virStorageSourcePoolDef->type, which really stores a value of the
same enum. Thus, the latter struct can be changed so that the
virStorageSourceGetActualType() function can return correct type
instead of generic int.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
3 years agoDrop needless typecast to virStorageType enum
Michal Privoznik [Sun, 23 Jan 2022 11:04:44 +0000 (12:04 +0100)] 
Drop needless typecast to virStorageType enum

There are three places (two in domain_conf.c and one in
qemu_migration.c) where a virStorageSource->type is typecasted to
virStorageType (for the purpose of catching missing enum member
in a switch() statement at compile time). This is needless,
because as of v8.2.0-rc1~120 the struct member is of proper type.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
3 years agoschemas: Allow 'manual' snapshot mode in domain definition
Peter Krempa [Mon, 23 May 2022 11:52:30 +0000 (13:52 +0200)] 
schemas: Allow 'manual' snapshot mode in domain definition

Commit a1465e661e7 added the 'manual' disk snapshot mode documentation
but didn't allow it in the schema as default snapshot mode for a disk.

Add the needed value into the schema.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agodocs: domain: Remove extraneous quotes
Peter Krempa [Mon, 23 May 2022 11:48:31 +0000 (13:48 +0200)] 
docs: domain: Remove extraneous quotes

Certain documentation bits tried to put a reference of a value into
quotes, but that's not needed for both the pure view of the rST source
and the rendered output.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirNetMessageEncodePayloadEmpty: Replace by virNetMessageEncodePayloadRaw(msg, NULL, 0)
Peter Krempa [Wed, 25 May 2022 08:59:48 +0000 (10:59 +0200)] 
virNetMessageEncodePayloadEmpty: Replace by virNetMessageEncodePayloadRaw(msg, NULL, 0)

Replace the two outstanding invocations and remove the function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agovirNetMessageEncodePayloadRaw: Tolerate empty 'data'
Peter Krempa [Wed, 25 May 2022 08:50:50 +0000 (10:50 +0200)] 
virNetMessageEncodePayloadRaw: Tolerate empty 'data'

'virNetMessageEncodePayloadRaw' is not supposed to be called with 'NULL'
data, but the code path from 'virNetClientStreamSendPacket' does so.

Now 'virNetMessageEncodePayloadEmpty' is intended for such case, but
since it's just a sub-set of steps from 'virNetMessageEncodePayloadRaw'
it's more straightforward to add NULL-tolerance to 'virNetMessageEncodePayloadRaw'
and subsequently remove 'virNetMessageEncodePayloadEmpty'.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/308
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
3 years agoglibcompat: Provide proper override for 'g_hash_table_steal_extended'
Peter Krempa [Wed, 4 May 2022 15:23:56 +0000 (17:23 +0200)] 
glibcompat: Provide proper override for 'g_hash_table_steal_extended'

We've emulated the function in virHashSteal, with a note pointing to use
the proper version. Move the code to glibcomapt.c and make it such that
builds using newer glib already use the new function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agogitlab: issue_template: Remove labelling commands
Peter Krempa [Wed, 1 Jun 2022 06:59:51 +0000 (08:59 +0200)] 
gitlab: issue_template: Remove labelling commands

The commands only work for users who are members of the project and thus
can set flags themselves.

For non-members they are ignored, so there's isn't much value in having
it here.

Additionally in my recent upstream issue triage I've changed some of the
labels so they were not accurate anyways.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: Add HTML reference checker
Peter Krempa [Tue, 31 May 2022 13:15:57 +0000 (15:15 +0200)] 
docs: Add HTML reference checker

In many cases we move around or rename internal anchors which may break
links leading to the content.

docutils handle the case of links inside a document, but we are lacking
the same form of checking between documents.

Introduce a script which cross-checks all the anchors and links in HTML
output files and prints problems and use it as a test case for the
'docs' directory.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatstorageencryption: Use correct anchor into formatsecret page
Peter Krempa [Tue, 31 May 2022 14:00:37 +0000 (16:00 +0200)] 
docs: formatstorageencryption: Use correct anchor into formatsecret page

The link was most likely broken when 'formatsecret' was converted to
RST.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agouri: Fix link to qemu KVM example config
Peter Krempa [Tue, 31 May 2022 13:47:32 +0000 (15:47 +0200)] 
uri: Fix link to qemu KVM example config

Link into the examples of the qemu driver.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: remote: Fix anchor names in links to uri.html
Peter Krempa [Tue, 31 May 2022 13:46:51 +0000 (15:46 +0200)] 
docs: remote: Fix anchor names in links to uri.html

When uri.html was converted to RST the 'URI remote' anchor was not fixed
in remote.rst.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: kbase/tlscerts: Fix links
Peter Krempa [Tue, 31 May 2022 13:45:38 +0000 (15:45 +0200)] 
docs: kbase/tlscerts: Fix links

Most of the links were broken by moving the article into kbase, but in
this case we need to also fix the anchor names.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: kbase/kvm-realtime: Fix few links
Peter Krempa [Tue, 31 May 2022 13:43:32 +0000 (15:43 +0200)] 
docs: kbase/kvm-realtime: Fix few links

Certain links were missing the '../' prefix to reach files in the parent
directory from the time the page was introduced.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: Fix links in kbase/internals
Peter Krempa [Tue, 31 May 2022 13:42:35 +0000 (15:42 +0200)] 
docs: Fix links in kbase/internals

The links were broken when the documentation was moved into the
'internals' subdirectory.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: Remove extra leading slash in 'api' and 'formatdomaincaps' pages
Peter Krempa [Tue, 31 May 2022 13:39:07 +0000 (15:39 +0200)] 
docs: Remove extra leading slash in 'api' and 'formatdomaincaps' pages

While the links work they'd trip up the link validator script which will
be added later.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: Fix link to 'tlscerts' article
Peter Krempa [Tue, 31 May 2022 13:38:05 +0000 (15:38 +0200)] 
docs: Fix link to 'tlscerts' article

The link was not fixed when the page was moved into 'kbase/'

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agoscripts: hvsupport: Remove link into the 'html' directory
Peter Krempa [Tue, 31 May 2022 13:36:19 +0000 (15:36 +0200)] 
scripts: hvsupport: Remove link into the 'html' directory

Linking to a list of files is not helpful.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatcaps: Fix anchors of links into formatdomain.rst
Peter Krempa [Tue, 31 May 2022 13:33:23 +0000 (15:33 +0200)] 
docs: formatcaps: Fix anchors of links into formatdomain.rst

The links were broken on the initial conversion of formatdomain.html to
RST which didn't faithfully forward port some of the manually added
anchors.

Fix it by pointing to the closest possible heading.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: rpc: Fix broken headings
Peter Krempa [Tue, 31 May 2022 13:07:33 +0000 (15:07 +0200)] 
docs: rpc: Fix broken headings

Remove what seems like links from some headings. This error predates the
conversion to RST where an '<a href' was used instead of '<a id' in the
source document.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: domainstatecapture: Fix broken links
Peter Krempa [Tue, 31 May 2022 13:03:59 +0000 (15:03 +0200)] 
docs: domainstatecapture: Fix broken links

Some links didn't exit the 'kbase/' directory and 'virDomainBackupEnd'
API never existed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: page.xsl: Fix link to 'mailing-lists' section
Peter Krempa [Tue, 31 May 2022 12:52:53 +0000 (14:52 +0200)] 
docs: page.xsl: Fix link to 'mailing-lists' section

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agosyntax-check: Add check prohibiting remote reference to local file
Peter Krempa [Tue, 31 May 2022 07:50:58 +0000 (09:50 +0200)] 
syntax-check: Add check prohibiting remote reference to local file

Within a file we should use the internal reference syntax.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: uri: Fix link to libvirtd configuration section
Peter Krempa [Tue, 31 May 2022 07:52:53 +0000 (09:52 +0200)] 
docs: uri: Fix link to libvirtd configuration section

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Use local reference directly
Peter Krempa [Mon, 30 May 2022 10:47:38 +0000 (12:47 +0200)] 
docs: formatdomain: Use local reference directly

Once we are already using the new anchor format we can create the link
via a local reference.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove the 'anchor' role
Peter Krempa [Mon, 30 May 2022 10:56:39 +0000 (12:56 +0200)] 
docs: formatdomain: Remove the 'anchor' role

The role was used to pass through raw HTML to define custom anchor
names. Since all of the document was now converted to use the anchors
generated from headers we can remove it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'launchSecurity' anchor
Peter Krempa [Fri, 13 May 2022 08:31:38 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'launchSecurity' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'keywrap' anchor
Peter Krempa [Fri, 13 May 2022 08:31:38 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'keywrap' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'seclabel' anchor
Peter Krempa [Fri, 13 May 2022 08:31:38 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'seclabel' anchor

One local reference required rewording of a whole paragraph to make
sense.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'vsock' anchor
Peter Krempa [Fri, 13 May 2022 08:31:38 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'vsock' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsIommu' anchor
Peter Krempa [Fri, 13 May 2022 08:31:37 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsIommu' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsMemory' anchor
Peter Krempa [Fri, 13 May 2022 08:31:37 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsMemory' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsTpm' anchor
Peter Krempa [Fri, 13 May 2022 08:31:37 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsTpm' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsAudio' anchor
Peter Krempa [Fri, 13 May 2022 08:31:37 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsAudio' anchor

Local references were reworded to match.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsCharHost' anchor
Peter Krempa [Fri, 13 May 2022 08:31:37 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsCharHost' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsCharHostInterface' anchor
Peter Krempa [Fri, 13 May 2022 08:31:36 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsCharHostInterface' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementCharSerialAndConsole' anchor
Peter Krempa [Fri, 13 May 2022 08:31:36 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementCharSerialAndConsole' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementCharSerial' anchor
Peter Krempa [Fri, 13 May 2022 08:31:36 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementCharSerial' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsConsole' anchor
Peter Krempa [Fri, 13 May 2022 08:31:36 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsConsole' anchor

Some rewording and rewraping was needed to accomodate the new local
references.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsVideo' anchor
Peter Krempa [Fri, 13 May 2022 08:31:36 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsVideo' anchor

The surrounding paragraph around the only fixed use was rewrapped.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsGraphics' anchor
Peter Krempa [Fri, 13 May 2022 08:31:36 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsGraphics' anchor

Local references needed rewording.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementVhostuser' anchor
Peter Krempa [Fri, 13 May 2022 08:31:35 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementVhostuser' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'coalesce' anchor
Peter Krempa [Fri, 13 May 2022 08:31:35 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'coalesce' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'mtu' anchor
Peter Krempa [Fri, 13 May 2022 08:31:35 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'mtu' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementPort' anchor
Peter Krempa [Fri, 13 May 2022 08:31:35 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementPort' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementVlanTag' anchor
Peter Krempa [Fri, 13 May 2022 08:31:35 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementVlanTag' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementQoS' anchor
Peter Krempa [Fri, 13 May 2022 08:31:35 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementQoS' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsNICSTargetOverride' anchor
Peter Krempa [Fri, 13 May 2022 08:31:34 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsNICSTargetOverride' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsNICSDirect' anchor
Peter Krempa [Fri, 13 May 2022 08:31:34 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsNICSDirect' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsNICS' anchor
Peter Krempa [Fri, 13 May 2022 08:31:34 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsNICS' anchor

The one local link addition prompted rewrapping of the whole paragraph.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsHostDev' anchor
Peter Krempa [Fri, 13 May 2022 08:31:34 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsHostDev' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsControllers' anchor
Peter Krempa [Fri, 13 May 2022 08:31:34 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsControllers' anchor

Local references were reworded.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsVirtioTransitional' anchor
Peter Krempa [Fri, 13 May 2022 08:31:34 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsVirtioTransitional' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsVirtio' anchor
Peter Krempa [Fri, 13 May 2022 08:31:33 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsVirtio' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsAddress' anchor
Peter Krempa [Fri, 13 May 2022 08:31:33 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsAddress' anchor

All local links were reformulated to make sense with local references.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsDisks' anchor
Peter Krempa [Fri, 13 May 2022 08:31:33 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsDisks' anchor

Two paragraphs containing local links were reformulated and rewrapped.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsDevices' anchor
Peter Krempa [Fri, 13 May 2022 08:31:33 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsDevices' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsFeatures' anchor
Peter Krempa [Fri, 13 May 2022 08:31:33 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsFeatures' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsEvents' anchor
Peter Krempa [Fri, 13 May 2022 08:31:33 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsEvents' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'hmat' anchor
Peter Krempa [Fri, 13 May 2022 08:31:32 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'hmat' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsCPU' anchor
Peter Krempa [Fri, 13 May 2022 08:31:32 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsCPU' anchor

Reworded documentation around the local link.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsBlockTuning' anchor
Peter Krempa [Fri, 13 May 2022 08:31:32 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsBlockTuning' anchor

Reworded documentation around the local link.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsNUMATuning' anchor
Peter Krempa [Fri, 13 May 2022 08:31:32 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsNUMATuning' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsMemoryTuning' anchor
Peter Krempa [Fri, 13 May 2022 08:31:32 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsMemoryTuning' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsMemoryBacking' anchor
Peter Krempa [Fri, 13 May 2022 08:31:31 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsMemoryBacking' anchor

Reworded documentation around one of the local links.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsMemoryAllocation' anchor
Peter Krempa [Fri, 13 May 2022 08:31:31 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsMemoryAllocation' anchor

Reworded documentation around local links.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsCPUTuning' anchor
Peter Krempa [Fri, 13 May 2022 08:31:31 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsCPUTuning' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsIOThreadsAllocation' anchor
Peter Krempa [Fri, 13 May 2022 08:31:31 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsIOThreadsAllocation' anchor

Reworded documentation around local links.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsCPUAllocation' anchor
Peter Krempa [Fri, 13 May 2022 08:31:31 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsCPUAllocation' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsSysinfo' anchor
Peter Krempa [Fri, 13 May 2022 08:31:31 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsSysinfo' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsOSContainer' anchor
Peter Krempa [Fri, 13 May 2022 08:31:30 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsOSContainer' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsOSBIOS' anchor
Peter Krempa [Fri, 13 May 2022 08:31:30 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsOSBIOS' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsOS' anchor
Peter Krempa [Fri, 13 May 2022 08:31:30 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsOS' anchor

Reworded the paragraph around the local link.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elementsMetadata' anchor
Peter Krempa [Fri, 13 May 2022 08:31:30 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elementsMetadata' anchor

Reworded the local link so that it retains the sense.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agodocs: formatdomain: Remove 'elements' anchor
Peter Krempa [Fri, 13 May 2022 08:31:30 +0000 (10:31 +0200)] 
docs: formatdomain: Remove 'elements' anchor

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agovirt-host-validate: Improve failure message when no HW virt is found
Martin Kletzander [Mon, 30 May 2022 11:11:56 +0000 (13:11 +0200)] 
virt-host-validate: Improve failure message when no HW virt is found

Make sure that more users understand that without HW virtualization you cannot
have KVM working.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2086677
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agoFix typos
Tim Wiederhake [Mon, 16 May 2022 11:02:06 +0000 (13:02 +0200)] 
Fix typos

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agoqemu_capspriv: Drop needless declarations
Michal Privoznik [Mon, 30 May 2022 13:05:12 +0000 (15:05 +0200)] 
qemu_capspriv: Drop needless declarations

There are two functions declared in qemu_capspriv.h:
1) virQEMUCapsInitHostCPUModel() which is not used anywhere but
   qemu_capabilities.c,

2) virQEMUCapsSetSEVCapabilities() which is my personal favorite
   but despite that it's never implemented nor called.

Drop them.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
3 years agonetwork: Generate TFTP config regardless of DHCP
Michal Privoznik [Thu, 9 Dec 2021 15:47:04 +0000 (16:47 +0100)] 
network: Generate TFTP config regardless of DHCP

We already allow users to provide TFTP root path in network XML
and not specify any DHCP. This makes sense, because dnsmasq is
not only DHCP server but also TFTP server and users might have
a DHCP server configured on their own, outside of libvirt's
control and want just the TFTP part.

By moving TFTP config generator out of DHCP generator and calling
it for every IPv4 range, users can finally enable just TFTP.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2026765
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
3 years agonetwork: Separate DHCP config generator into a function
Michal Privoznik [Thu, 9 Dec 2021 15:33:22 +0000 (16:33 +0100)] 
network: Separate DHCP config generator into a function

Generating configuration file for dnsmasq is done in
networkDnsmasqConfContents() which is this big, self-contained
function. Separate at least DHCP part into its own function for
better readability.

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