]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 years agonetwork: Initialize variables in networkDnsmasqConfContents()
Michal Privoznik [Thu, 9 Dec 2021 15:33:08 +0000 (16:33 +0100)]
network: Initialize variables in networkDnsmasqConfContents()

In networkDnsmasqConfContents() there's a for() loop which
initializes some variables in its initialization block. This
makes both the loop() statement and variable declaration block
look needlessly ugly. Speaking of variable declaration, also move
some variables which are used only within blocks into their
respective blocks.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agolib: Be consistent about vm->pid
Michal Privoznik [Thu, 26 May 2022 07:07:56 +0000 (09:07 +0200)]
lib: Be consistent about vm->pid

The virDomainObj struct has @pid member where the domain's
hypervisor PID is stored (e.g. QEMU/bhyve/libvirt_lxc/... PID).
However, we are not consistent when it comes to shutoff state.
Initially, because virDomainObjNew() uses g_new0() the @pid is
initialized to 0. But when domain is shut off, some functions set
it to -1 (virBhyveProcessStop, virCHProcessStop, qemuProcessStop,
..).

In other places, the @pid is tested to be 0, on some other places
it's tested for being negative and in the rest for being
positive.

To solve this inconsistency we can stick with either value, -1 or
0. I've chosen the latter as it's safer IMO. For instance if by
mistake we'd kill(vm->pid, SIGTERM) we would kill ourselves
instead of init's process group.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
2 years agoPost-release version bump to 8.5.0
Jiri Denemark [Wed, 1 Jun 2022 07:30:38 +0000 (09:30 +0200)]
Post-release version bump to 8.5.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2 years agoRelease of libvirt-8.4.0
Jiri Denemark [Wed, 1 Jun 2022 07:28:24 +0000 (09:28 +0200)]
Release of libvirt-8.4.0

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2 years agoci: eliminate many cross arch CI builds
Daniel P. Berrangé [Fri, 27 May 2022 14:06:20 +0000 (10:06 -0400)]
ci: eliminate many cross arch CI builds

We currently build cross-arch containers for all three Debian
releases (10, 11, Sid), and do libvirt builds covering each
arch. This is overkill in terms of the number of problems it
identifies. The most important aspect of cross arch builds is
to find problems with 32-bit builds and problems with big
endian builds.

With this in mind the cross arch jobs are altered as follows

 - Debian 10
     - build the containers by default
     - build armv7 (32-bit) & s390x (big endian)
     - other arch builds manual

 - Debian 11 / Sid
     - container builds all optional
     - arch builds all optional

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2 years agoci: move Ubuntu GCC santizers build to 20.04
Daniel P. Berrangé [Fri, 27 May 2022 14:06:19 +0000 (10:06 -0400)]
ci: move Ubuntu GCC santizers build to 20.04

We currently build on Ubuntu 22.04 twice, for GCC and CLang
with santizers turned on. Moving the GCC santizers build
to 20.04 lets us cull one of the 22.04 jobs

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2 years agoci: disable native builds on certain distros
Daniel P. Berrangé [Fri, 27 May 2022 14:06:18 +0000 (10:06 -0400)]
ci: disable native builds on certain distros

Currently we do native builds on all distros that are covered
by the support matrix. This reduces that such that we mostly
only run builds on the newest (ie bleeding edge non-released)
version and the oldest version. The effect is that cut out
builds on the newest release version. This is acceptable,
because that version is sandwiched between two versions we
do still test, so unlikely to have failures not already
identified by other jobs.

This has the effect of disabling:

  - AlmaLinux 8 GCC - still has a CLang build
    and CentOS 8 Stream also gives coverage

  - Debian 11 - still has a Debian 10 and Sid
    build

  - Alpine 3.15 - still has a Alpine 3.14 and Edge
    build

Ideally Fedora 35 would be disabled too, but we rely on that
for the integration tests.

The Ubuntu jobs will be handled in the next patch.

The containers are still built since this is cheap-ish.

The build jobs can also be triggered manually if desired.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2 years agoci: refresh with lcitool manifest
Daniel P. Berrangé [Fri, 27 May 2022 14:06:17 +0000 (10:06 -0400)]
ci: refresh with lcitool manifest

This refreshes the containers bringing in new behaviour when
builds/containers are disabled.

Instead of deleting the job entirely, the job still exists
but is set to be a manual job. It won't affect the pipeline
result, but can be triggered by the developer if they wish
to test a specific scenario.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Tue, 31 May 2022 10:29:03 +0000 (12:29 +0200)]
Translated using Weblate (Swedish)

Currently translated at 33.1% (3461 of 10431 strings)

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

Translated using Weblate (Swedish)

Currently translated at 32.9% (3441 of 10431 strings)

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

Translated using Weblate (Swedish)

Currently translated at 32.7% (3421 of 10431 strings)

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

Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
2 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Mon, 30 May 2022 07:27:34 +0000 (09:27 +0200)]
Translated using Weblate (Swedish)

Currently translated at 32.7% (3421 of 10431 strings)

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

Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
2 years agoTranslated using Weblate (Korean)
김인수 [Mon, 30 May 2022 07:27:33 +0000 (09:27 +0200)]
Translated using Weblate (Korean)

Currently translated at 100.0% (10431 of 10431 strings)

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

Co-authored-by: 김인수 <simmon@nplob.com>
Signed-off-by: 김인수 <simmon@nplob.com>
2 years agoTranslated using Weblate (Ukrainian)
Yuri Chornoivan [Mon, 30 May 2022 07:27:33 +0000 (09:27 +0200)]
Translated using Weblate (Ukrainian)

Currently translated at 100.0% (10431 of 10431 strings)

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

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2 years agoUpdate translation files
Weblate [Mon, 30 May 2022 07:27:30 +0000 (09:27 +0200)]
Update translation files

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

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

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2 years agonews: Add APIs virDomainSaveParams virDomainRestoreParams
Han Han [Tue, 31 May 2022 01:48:26 +0000 (09:48 +0800)]
news: Add APIs virDomainSaveParams virDomainRestoreParams

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>