]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
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>
2 years agonews: Add qemu-vdagent
Han Han [Tue, 31 May 2022 01:48:25 +0000 (09:48 +0800)]
news: Add qemu-vdagent

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2 years agovirDomainInputDefValidate: Validate model
Michal Privoznik [Thu, 26 May 2022 11:48:56 +0000 (13:48 +0200)]
virDomainInputDefValidate: Validate model

If input device has one of virtio* models set then it has to go
onto virtio bus. Introduce such check into the validator.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2081981
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2 years agovirDomainInputDefValidate: Reformat
Michal Privoznik [Thu, 26 May 2022 11:50:23 +0000 (13:50 +0200)]
virDomainInputDefValidate: Reformat

There are some formatting problems with virDomainInputDefValidate().
Reformat it to our standards. Use this opportunity to move error
messages onto a single line.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2 years agoNEWS: Mention 'absolute' clock offset
Peter Krempa [Fri, 27 May 2022 10:35:16 +0000 (12:35 +0200)]
NEWS: Mention 'absolute' clock offset

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agoqemuProcessStop: Don't try to remove QoS on already removed TAP
Michal Privoznik [Fri, 27 May 2022 14:59:54 +0000 (16:59 +0200)]
qemuProcessStop: Don't try to remove QoS on already removed TAP

When cleaning up after stopped domain, one of the things we do is
attempt to clear QoS settings on OVS type interfaces. Well, this
is needless because they were removed just a couple of lines
above. As a result, the attempt fails and a warning is printed
into logs, polluting them needlessly.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/313
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2 years agogitlab: mark job dependencies as optional
Daniel P. Berrangé [Fri, 27 May 2022 11:47:07 +0000 (07:47 -0400)]
gitlab: mark job dependencies as optional

The container jobs are all optional in upstream now, only
running if dockerfile changes were made. Thus any build
jobs which reference the container jobs need to mark their
dependency as optional too.

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 years agonss: Compare hostname case insensitive
Michal Privoznik [Fri, 27 May 2022 07:00:59 +0000 (09:00 +0200)]
nss: Compare hostname case insensitive

There are some tools that convert hostname to lowercase before
resolving it (e.g. ssh). In a way it makes sense because DNS is
case insensitive and in case of ssh the lowercase version is then
used to find matching record in its config file. However, our NSS
module performs case sensitive comparison, which makes it useless
with ssh. Just consider a machine named FooBar.

Therefore, switch to case insensitive string comparison.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1777873
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2 years agoci: Refresh generated files
Martin Kletzander [Fri, 27 May 2022 11:35:33 +0000 (13:35 +0200)]
ci: Refresh generated files

Notable changes:

* 'lcitool manifest' now generates absolute include paths

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>