]> git.ipfire.org Git - thirdparty/libvirt.git/log
thirdparty/libvirt.git
5 years agoqemuDomainNamespaceTeardownInput: Deduplicate code
Michal Privoznik [Tue, 21 Jul 2020 14:27:52 +0000 (16:27 +0200)] 
qemuDomainNamespaceTeardownInput: Deduplicate code

We can use qemuDomainSetupInput() to obtain the path that we
need to unlink() from within domain's namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainNamespaceTeardownRNG: Deduplicate code
Michal Privoznik [Tue, 21 Jul 2020 14:26:48 +0000 (16:26 +0200)] 
qemuDomainNamespaceTeardownRNG: Deduplicate code

We can use qemuDomainSetupRNG() to obtain the path that we
need to unlink() from within domain's namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainNamespaceTeardownChardev: Deduplicate code
Michal Privoznik [Tue, 21 Jul 2020 14:25:44 +0000 (16:25 +0200)] 
qemuDomainNamespaceTeardownChardev: Deduplicate code

We can use qemuDomainSetupChardev() to obtain the path that we
need to unlink() from within domain's namespace.  Note, while
previously we unlinked only VIR_DOMAIN_CHR_TYPE_DEV chardevs,
with this change we unlink some other types too - exactly those
types we created when plugging the device in.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainNamespaceTeardownMemory: Deduplicate code
Michal Privoznik [Tue, 21 Jul 2020 13:09:30 +0000 (15:09 +0200)] 
qemuDomainNamespaceTeardownMemory: Deduplicate code

We can use qemuDomainSetupMemory() to obtain the path that we
need to unlink() from within domain's namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainNamespaceTeardownHostdev: Unlink paths in one go
Michal Privoznik [Tue, 21 Jul 2020 13:08:13 +0000 (15:08 +0200)] 
qemuDomainNamespaceTeardownHostdev: Unlink paths in one go

In my attempt to deduplicate the code, we can use
qemuDomainSetupHostdev() to obtain the list of paths to unlink
and then pass it to qemuDomainNamespaceUnlinkPaths() to unlink
them in a single fork.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainNamespaceUnlinkPaths: Turn @paths into string list
Michal Privoznik [Tue, 21 Jul 2020 13:05:52 +0000 (15:05 +0200)] 
qemuDomainNamespaceUnlinkPaths: Turn @paths into string list

So far, the only caller qemuDomainNamespaceUnlinkPath() will
always pass a single path to unlink, but similarly to
qemuDomainNamespaceMknodPaths() - there are a few callers that
would like to pass two or more files to unlink at once (held in a
string list). Make the @paths argument a string list then.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_namespace: Rename qemuDomainNamespaceUnlinkPath() to qemuNamespaceUnlinkPath()
Michal Privoznik [Sat, 25 Jul 2020 07:33:50 +0000 (09:33 +0200)] 
qemu_namespace: Rename qemuDomainNamespaceUnlinkPath() to qemuNamespaceUnlinkPath()

To match how Mknod counterpart was renamed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
5 years agoqemuDomainDetachDeviceUnlink: Unlink paths in one go
Michal Privoznik [Tue, 21 Jul 2020 13:04:38 +0000 (15:04 +0200)] 
qemuDomainDetachDeviceUnlink: Unlink paths in one go

Simirarly to qemuDomainAttachDeviceMknodHelper() which was
modified just a couple of commits ago, modify the unlink helper
which is called on device detach so that it can unlink multiple
files in one go instead of forking off for every single one of
them.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_domain_namespace: Drop unused functions
Michal Privoznik [Tue, 21 Jul 2020 17:14:40 +0000 (19:14 +0200)] 
qemu_domain_namespace: Drop unused functions

After previous cleanup, creating /dev nodes from pre-exec hook is
no longer needed and thus can be removed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate SEV from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:51:13 +0000 (14:51 +0200)] 
qemuDomainBuildNamespace: Populate SEV from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain SEV into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate loader from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:49:42 +0000 (14:49 +0200)] 
qemuDomainBuildNamespace: Populate loader from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain loader into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate RNGs from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:37:22 +0000 (14:37 +0200)] 
qemuDomainBuildNamespace: Populate RNGs from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain RNGs into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate inputs from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:34:22 +0000 (14:34 +0200)] 
qemuDomainBuildNamespace: Populate inputs from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain inputs into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate graphics from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:30:44 +0000 (14:30 +0200)] 
qemuDomainBuildNamespace: Populate graphics from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain graphics (render node)
into daemon's namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate TPM from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:29:09 +0000 (14:29 +0200)] 
qemuDomainBuildNamespace: Populate TPM from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain TPM into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate chardevs from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:26:49 +0000 (14:26 +0200)] 
qemuDomainBuildNamespace: Populate chardevs from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain chardevs into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate memory from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 11:30:31 +0000 (13:30 +0200)] 
qemuDomainBuildNamespace: Populate memory from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain memory (nvdimms) into
daemon's namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate hostdevs from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:18:59 +0000 (14:18 +0200)] 
qemuDomainBuildNamespace: Populate hostdevs from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain hostdevs into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate disks from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 12:11:41 +0000 (14:11 +0200)] 
qemuDomainBuildNamespace: Populate disks from daemon's namespace

As mentioned in one of previous commits, populating domain's
namespace from pre-exec() hook is dangerous. This commit moves
population of the namespace with domain disks into daemon's
namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainBuildNamespace: Populate basic /dev from daemon's namespace
Michal Privoznik [Tue, 21 Jul 2020 15:13:11 +0000 (17:13 +0200)] 
qemuDomainBuildNamespace: Populate basic /dev from daemon's namespace

As mentioned in previous commit, populating domain's namespace
from pre-exec() hook is dangerous. This commit moves population
of the namespace with basic /dev nodes (e.g. /dev/null, /dev/kvm,
etc.) into daemon's namespace.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_domain_namespace: Repurpose qemuDomainBuildNamespace()
Michal Privoznik [Tue, 21 Jul 2020 16:12:26 +0000 (18:12 +0200)] 
qemu_domain_namespace: Repurpose qemuDomainBuildNamespace()

Okay, here is the deal. Currently, the way we build namespace is
very fragile. It is done from pre-exec hook when starting a
domain, after we mass closed all FDs and before we drop
privileges and exec() QEMU. This fact poses some limitations onto
the namespace build code, e.g. it has to make sure not to keep
any FD opened (not even through a library call), because it would
be leaked to QEMU. Also, it has to call only async signal safe
functions. These requirements are hard to meet - in fact as of my
commit v6.2.0-rc1~235 we are leaking a FD into QEMU by calling
libdevmapper functions.

To solve this issue and avoid similar problems in the future, we
should change our paradigm. We already have functions which can
populate domain's namespace with nodes from the daemon context.
If we use them to populate the namespace and keep only the bare
minimum in the pre-exec hook, we've mitigated the risk.

Therefore, the old qemuDomainBuildNamespace() is renamed to
qemuDomainUnshareNamespace() and new qemuDomainBuildNamespace()
function is introduced. So far, the new function is basically a
NOP and domain's namespace is still populated from the pre-exec
hook - next patches will fix it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainSetupDisk: Accept @src
Michal Privoznik [Tue, 21 Jul 2020 11:32:32 +0000 (13:32 +0200)] 
qemuDomainSetupDisk: Accept @src

The aim to make it look as close to
qemuDomainNamespaceSetupDisk() as possible. The latter will call
the former and this change makes that diff easier to read.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuNamespaceMknodPaths: Turn @paths into string list
Michal Privoznik [Tue, 21 Jul 2020 11:08:36 +0000 (13:08 +0200)] 
qemuNamespaceMknodPaths: Turn @paths into string list

Every caller does the same - counts the number of items in a
string list they have, only to pass the number to
qemuDomainNamespaceMknodPaths(). This is needless - the function
can accept the string list and count the items itself.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainNamespaceMknodPaths: Create more files in one go
Michal Privoznik [Tue, 21 Jul 2020 08:58:41 +0000 (10:58 +0200)] 
qemuDomainNamespaceMknodPaths: Create more files in one go

While the previous commit prepared the helper function run in a
forked off helper (with corresponding struct), this commit
modifies the caller, which now create all files requested in a
single process and does not fork off for every single path.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainAttachDeviceMknodHelper: Create more files in a single go
Michal Privoznik [Mon, 20 Jul 2020 18:00:19 +0000 (20:00 +0200)] 
qemuDomainAttachDeviceMknodHelper: Create more files in a single go

So far, when attaching a device needs two or more /dev nodes
created into a domain, we fork off and run the helper for every
node separately. For majority of devices this is okay, because
they need no or one node created anyway. But the idea is to use
this attach code to build the namespace when starting a domain,
in which case there will be way more nodes than one.

To achieve this, the recursive approach for handling symlinks has
to be turned into an iterative one.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainAttachDeviceMknodRecursive: Isolate bind mounted devices condition
Michal Privoznik [Tue, 21 Jul 2020 07:44:36 +0000 (09:44 +0200)] 
qemuDomainAttachDeviceMknodRecursive: Isolate bind mounted devices condition

When attaching a device into a domain, the corresponding /dev
node might need to be created in the domain's namespace. For some
types of files we call mknod(), for symlinks we call symlink(),
but for others - which exist in the host namespace - we need to
so called 'bind mount' them (which is a way of passing a
file/directory between mount namespaces). There is this condition
in qemuDomainAttachDeviceMknodRecursive() which decides whether a
bind mount will be used, move it into a separate function so that
it can be reused later.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_domain_namespace.c: Rename qemuDomainAttachDeviceMknodData
Michal Privoznik [Mon, 20 Jul 2020 18:01:54 +0000 (20:01 +0200)] 
qemu_domain_namespace.c: Rename qemuDomainAttachDeviceMknodData

This structure is going to be used from not only device attach
code, but also when building the namespace. Moreover, the code
lives in a separate file so the chances of clashing with another
name are minimal.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainAttachDeviceMknodHelper: Don't leak data->target
Michal Privoznik [Mon, 20 Jul 2020 16:54:34 +0000 (18:54 +0200)] 
qemuDomainAttachDeviceMknodHelper: Don't leak data->target

It's not really a problem since this is a helper process that
dies as soon as the helper function returns, but the cleanup code
will be replaced with a function soon and this change prepares
the code for that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemuDomainNamespaceSetupHostdev: Create paths in one go
Michal Privoznik [Tue, 21 Jul 2020 10:14:02 +0000 (12:14 +0200)] 
qemuDomainNamespaceSetupHostdev: Create paths in one go

While qemuDomainNamespaceMknodPaths() doesn't actually create
files in the namespace in one go (it forks for each path), it a
few commits time it will.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_domain_namespace: Check for namespace enablement earlier
Michal Privoznik [Mon, 20 Jul 2020 16:01:16 +0000 (18:01 +0200)] 
qemu_domain_namespace: Check for namespace enablement earlier

Functions that create a device node after domain startup (used
from hotplug) will get a list of paths they want to create and
eventually call qemuDomainNamespaceMknodPaths() which then checks
whether domain mount namespace is enabled in the first place.
Alternatively, on device hotunplug, we might want to delete a
path inside domain namespace in which case
qemuDomainNamespaceUnlinkPaths() checks whether the namespace is
enabled. While this is not dangerous, it certainly burns a couple
of CPU cycles needlessly.

Check whether mount namespace is enabled upfront.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_domain_namespace: Drop unused @cfg argument
Michal Privoznik [Tue, 21 Jul 2020 10:57:49 +0000 (12:57 +0200)] 
qemu_domain_namespace: Drop unused @cfg argument

There is a lot of functions called from
qemuDomainBuildNamespace() that accept @cfg
(virQEMUDriverConfigPtr) as an argument and don't use it.
Historically, it was done so that all qemuDomainSetupAll*()
functions look the same.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu_domain_namespace: Rename qemuDomainCreateNamespace()
Michal Privoznik [Mon, 20 Jul 2020 14:54:11 +0000 (16:54 +0200)] 
qemu_domain_namespace: Rename qemuDomainCreateNamespace()

The name of this function is not very helpful, because it doesn't
create anything, it just flips a bit in a bitmask when domain is
starting up. Move the function internals into qemu_process.c and
forget the function ever existed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: Separate out namespace handling code
Michal Privoznik [Mon, 20 Jul 2020 14:18:57 +0000 (16:18 +0200)] 
qemu: Separate out namespace handling code

The qemu_domain.c file is big as is and we should split it into
separate semantic blocks. Start with code that handles domain
namespaces.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoqemu: capabilities: add missing comma
Ján Tomko [Mon, 3 Aug 2020 14:20:28 +0000 (16:20 +0200)] 
qemu: capabilities: add missing comma

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: bab9257a649386a908069ba890a23f2a5ff5b131
5 years agodocs: css: Hide redundant 'Contents:' line in table of contents of RST docs
Peter Krempa [Mon, 3 Aug 2020 06:24:30 +0000 (08:24 +0200)] 
docs: css: Hide redundant 'Contents:' line in table of contents of RST docs

'docutils' add line saying "Contents:" on top of the table of contents.
We don't have that in other documents nor it's really necessary. Hide it
in the stylesheet as we can select it easily.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodocs: css: Add separation for table of contents generated from RST
Peter Krempa [Mon, 3 Aug 2020 06:23:11 +0000 (08:23 +0200)] 
docs: css: Add separation for table of contents generated from RST

The table of contents of documents generated from RST is quite squeezed
together. Add 2em-s worth of vertical separation on each side.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodocs: css: Make definition list 'code' entries bold when converted from rst
Peter Krempa [Tue, 14 Jul 2020 10:18:45 +0000 (12:18 +0200)] 
docs: css: Make definition list 'code' entries bold when converted from rst

Docutils don't generate <code> for inline literals (``blah``) in rst
but rather put them in the '.literal' class. Add a selector for making
them bold when used in definition list headers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodocs: build: Don't include stylesheet in intermediate html files generated from RST
Peter Krempa [Mon, 3 Aug 2020 05:32:29 +0000 (07:32 +0200)] 
docs: build: Don't include stylesheet in intermediate html files generated from RST

'docutils' add a stylesheet to the output html file for direct
consumption. Since we use the html files just as an intermediate step
which is post-processed to add our own stylesheet and drop the docutils
one in the process we can ask 'rst2html' to not add any for an
intermediate file with less garbage.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agokbase: debuglogs: Add some more example filters settings
Peter Krempa [Mon, 3 Aug 2020 10:33:09 +0000 (12:33 +0200)] 
kbase: debuglogs: Add some more example filters settings

Show various usage of filters including some useful examples.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
5 years agokbase: debuglogs: Include more data to attach to bugreports
Peter Krempa [Mon, 3 Aug 2020 10:09:21 +0000 (12:09 +0200)] 
kbase: debuglogs: Include more data to attach to bugreports

Promote the 'What to attach?' section to a first level heading and
request also the XML config of a VM, coredump backtrace if something
crashed and ask to not tear down the environment for the possibility to
ask for additional data.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
5 years agodocs: build: Use proper path to file in 'contribute' link
Peter Krempa [Mon, 3 Aug 2020 14:38:31 +0000 (16:38 +0200)] 
docs: build: Use proper path to file in 'contribute' link

NEWS.rst is based in the root of the repository and 'hvsupport.html'
doesn't have a backing file which can be edited since it's fully
generated. Our 'contribute -> edit this page' link on the bottom of the
page is wrong in those cases.

Fix it by adding the contribute section only when there's a source and
base the 'source' of a html file in the root of the repository.

Along with that we need to modify the scripts/meson-html-gen.py script
to accept optional 'pagesrc' and the XSL template to skip the
'contribute' section when we don't have a source.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodocs: meson: Simplify generation of html files
Peter Krempa [Wed, 22 Jul 2020 18:20:43 +0000 (20:20 +0200)] 
docs: meson: Simplify generation of html files

Just convert 'docs_html_in_files' into 'docs_html_in_gen'. The target
definitions for those were almost the same.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoRemove unused variables
Ján Tomko [Mon, 3 Aug 2020 11:36:39 +0000 (13:36 +0200)] 
Remove unused variables

These variables are only used for assignment and have
no other effect.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
5 years agoutil: cgroup: remove unused opts in virCgroupV2BindMount
Ján Tomko [Mon, 3 Aug 2020 11:06:54 +0000 (13:06 +0200)] 
util: cgroup: remove unused opts in virCgroupV2BindMount

In virCgroupV2BindMount there is an unused variable containing
what seem to be tmpfs mount options.

Delete it. Unlike with cgroups v1, we do not create a tmpfs
here.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
5 years agoutil: delete virStringListFree
Ján Tomko [Sun, 2 Aug 2020 22:00:55 +0000 (00:00 +0200)] 
util: delete virStringListFree

Now that everything uses g_strfreev, this function is no longer
needed.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: recommend g_strfreev instead of virStringListFree
Ján Tomko [Sun, 2 Aug 2020 22:01:11 +0000 (00:01 +0200)] 
util: recommend g_strfreev instead of virStringListFree

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoUse g_strfeev instead of virStringFreeList
Ján Tomko [Sun, 2 Aug 2020 17:36:03 +0000 (19:36 +0200)] 
Use g_strfeev instead of virStringFreeList

Both accept a NULL value gracefully and virStringFreeList
does not zero the pointer afterwards, so a straight replace
is safe.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: remove virStringListCopy
Ján Tomko [Sun, 2 Aug 2020 11:37:20 +0000 (13:37 +0200)] 
util: remove virStringListCopy

The g_strdupv function from GLib provides
the same functionality.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoconf: use g_strdupv instead of virStringListCopy
Ján Tomko [Sun, 2 Aug 2020 11:33:55 +0000 (13:33 +0200)] 
conf: use g_strdupv instead of virStringListCopy

Also remove the temporary variable - even virStringListCopy
aborts on OOM now.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agovirt-login-shell: correctly calculate string length
Ján Tomko [Sun, 2 Aug 2020 12:58:38 +0000 (14:58 +0200)] 
virt-login-shell: correctly calculate string length

virLoginShellGetShellArgv was not dereferencing the pointer
to the string list containing the shell parameters from the
config file, thus setting some random number as shargvlen.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 740e4d705284ba0598258291c2656f50075486f0
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agotools: remove unnecessary includes
Ján Tomko [Sun, 23 Feb 2020 21:45:34 +0000 (22:45 +0100)] 
tools: remove unnecessary includes

After the split of virsh to multiple files, and the subsequent
split to vsh/virt-admin, there are quite a few leftovers.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: virlog: unexport virLogVMessage
Ján Tomko [Thu, 13 Feb 2020 23:12:24 +0000 (00:12 +0100)] 
util: virlog: unexport virLogVMessage

Last usage out of virlog.c was removed by
commit 91268c715cf0293f0751de0450e4d0c06bea18d8
    node_device_udev: remove deprecated logging function

Also drop the virbuffer.h include - it seems it was never used
for anything else than the transitive stdarg.h include.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: log: move virLogMessage
Ján Tomko [Sun, 16 Feb 2020 20:22:18 +0000 (21:22 +0100)] 
util: log: move virLogMessage

This function calls virLogVMessage. Move it below the definition
of virLogVMessage so it can call it even without a prototype.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: viruri: move libxml include
Ján Tomko [Sun, 16 Feb 2020 22:02:12 +0000 (23:02 +0100)] 
util: viruri: move libxml include

The XML function is needed in the C file,
not in the header.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agohyperv: include virxml.h
Ján Tomko [Sun, 23 Feb 2020 22:01:44 +0000 (23:01 +0100)] 
hyperv: include virxml.h

This file is using XML functions without including
the header.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: virstring.h: remove stdarg.h include
Ján Tomko [Thu, 13 Feb 2020 22:59:22 +0000 (23:59 +0100)] 
util: virstring.h: remove stdarg.h include

It was needed for virAsprintf, which is now dropped.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 33ed622106c61d257fd4a5750d4df511bcdd1b2b
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agotools: virt-admin: do not leak daemon-log settings
Ján Tomko [Sun, 2 Aug 2020 21:35:16 +0000 (23:35 +0200)] 
tools: virt-admin: do not leak daemon-log settings

The commands daemon-log-filters and daemon-log-outputs
are used both for getting and setting the variables.
But the getter receives an allocated string, which
we do not free.

Use separate variables for the getter and the setter
to get rid of the memory leak and to stop casting
away the const.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agotools: remove unread variables
Ján Tomko [Sun, 2 Aug 2020 21:33:07 +0000 (23:33 +0200)] 
tools: remove unread variables

Some of libvirt APIs return the number of elements, but we
don't need them, only whether the API failed or not.

Delete the redundant variables.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agovirsh: completer: use signed variable for XPathNodeSet errors
Ján Tomko [Sun, 2 Aug 2020 21:30:17 +0000 (23:30 +0200)] 
virsh: completer: use signed variable for XPathNodeSet errors

Although virXPathNodeSet is unlikely to return -1, we should
check for it properly or not at all.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: sync variable names between header and C files
Ján Tomko [Sun, 2 Aug 2020 21:26:05 +0000 (23:26 +0200)] 
util: sync variable names between header and C files

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: virhostmem: do not use scanf without field limits
Ján Tomko [Sun, 2 Aug 2020 21:03:10 +0000 (23:03 +0200)] 
util: virhostmem: do not use scanf without field limits

We use an array of size VIR_NODE_MEMORY_STATS_FIELD_LENGTH
to store the string read from sysfs, but pass unbound "%s"
to sscanf.

Make the array larger by one and simply stringify that
constant as the field width specifier.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoutil: command: do not return after abort
Ján Tomko [Sun, 2 Aug 2020 21:02:14 +0000 (23:02 +0200)] 
util: command: do not return after abort

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoRemove redundant conditions
Ján Tomko [Sun, 2 Aug 2020 20:57:29 +0000 (22:57 +0200)] 
Remove redundant conditions

All of these have been checked earlier.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agovz: remove redundant NULL pointer check
Ján Tomko [Sun, 2 Aug 2020 20:52:51 +0000 (22:52 +0200)] 
vz: remove redundant NULL pointer check

The 'dom' pointer is already dereferenced earlier.

src/vz/vz_sdk.c:249:24: warning: Either the condition 'if(dom)'
is redundant or there is possible null pointer dereference:
dom. [nullPointerRedundantCheck]

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoREADME: drop Travis CI badge
Ján Tomko [Mon, 3 Aug 2020 13:08:28 +0000 (15:08 +0200)] 
README: drop Travis CI badge

We stopped using Travis as of:
commit c66ccb65f6a758e4c1660e153887b73b1478fe02
    ci: Remove Travis CI

Signed-off-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: virlog.h: fix macro indentation
Ján Tomko [Tue, 28 Jul 2020 18:08:47 +0000 (20:08 +0200)] 
util: virlog.h: fix macro indentation

Signed-off-by: Ján Tomko <jtomko@redhat.com>
5 years agobuild-aux: add sc_ prefix to more syntax checks
Ján Tomko [Mon, 3 Aug 2020 09:46:23 +0000 (11:46 +0200)] 
build-aux: add sc_ prefix to more syntax checks

That way our meson build file will correctly pick them up.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
5 years agobuild-aux: set the PYTHON variable in the Makefile
Ján Tomko [Mon, 3 Aug 2020 09:45:44 +0000 (11:45 +0200)] 
build-aux: set the PYTHON variable in the Makefile

Some syntax-check rules rely on this variable.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
5 years agoconfig.h: add a copyright blurb
Ján Tomko [Mon, 3 Aug 2020 09:45:08 +0000 (11:45 +0200)] 
config.h: add a copyright blurb

And #pragma once, to appease syntax-check.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
5 years agodocs: kbase: Port 'debuglogs' document from libvirt's wiki
Peter Krempa [Wed, 29 Jul 2020 14:49:28 +0000 (16:49 +0200)] 
docs: kbase: Port 'debuglogs' document from libvirt's wiki

Provide debug log configuration insight in our kbase.

There are two modifications of the document compared to the wiki
version:

1) The link for reporting a bug agains libvirt was modified to use the
   gitlab issue tracker.

2) The link to URI specification details is changed to 'https' protocol.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodocs: kbase: Make kbase article directory wider
Peter Krempa [Thu, 30 Jul 2020 09:44:33 +0000 (11:44 +0200)] 
docs: kbase: Make kbase article directory wider

Set the width to our default value of 70em (max 95%) to prevent
unnecessary line breaks if we have just one panel as it's in the kbase
directory.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agodocs: kbase: Convert 'kbase' article registry to RST
Peter Krempa [Thu, 30 Jul 2020 09:32:14 +0000 (11:32 +0200)] 
docs: kbase: Convert 'kbase' article registry to RST

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoIgnore clangd-related files and folders
Martin Kletzander [Fri, 31 Jul 2020 14:09:19 +0000 (16:09 +0200)] 
Ignore clangd-related files and folders

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoresctrl: Rename virResctrlLockWrite -> virResctrlLock
Martin Kletzander [Wed, 29 Jul 2020 11:02:01 +0000 (13:02 +0200)] 
resctrl: Rename virResctrlLockWrite -> virResctrlLock

There is no distinction between Read/Write locks for resctrl from libvirt's
point of view any more.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoutil: Get rid of virFileFlock()
Martin Kletzander [Wed, 29 Jul 2020 10:46:12 +0000 (12:46 +0200)] 
util: Get rid of virFileFlock()

It was created to get rid of conditional compilation in the resctrl code and
make it usable anywhere else.  However this is not something that is going to be
used in other places because it is not portable and resctrl is just very
specific in this regard.  And there is no reason why there could not be a
preprocessor conditional in the resctrl code.  Also the interface of
virFileFlock() was very ambiguous which lead to some issues.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoresctrl: Use exclusive lock for /sys/fs/resctrl
Martin Kletzander [Fri, 10 Jul 2020 13:13:56 +0000 (15:13 +0200)] 
resctrl: Use exclusive lock for /sys/fs/resctrl

That's the way it should've been all the time.  It was originally the case, but
then the rework to virFileFlock() made the function ambiguous when it was
created in commit 5a0a5f7fb5f5, and due to that it was misused in commit
657ddeff2313 and since then the lock being taken was shared rather than
exclusive.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
5 years agoconf: allow shmem name change in migration
Wang Xin [Fri, 24 Jul 2020 03:34:12 +0000 (11:34 +0800)] 
conf: allow shmem name change in migration

The shmem 'name' specifies the shared memory path in '/dev/shm/',
however, we may need to change it to avoid filename conflict
when VM migrate to other host. This patch remove shmem name
consistency check.

Signed-off-by: Wang Xin <wangxinxin.wang@huawei.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoqemu: add support for shmem-{plain, doorbell} role
Wang Xin [Fri, 24 Jul 2020 03:34:11 +0000 (11:34 +0800)] 
qemu: add support for shmem-{plain, doorbell} role

Role(master or peer) controls how the domain behaves on migration.
For more details about migration with ivshmem, see
https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/system/ivshmem.rst;hb=HEAD

It's a optional attribute in libvirt, and qemu will choose default
role for ivshmem device if the user is not specified.

With device property 'role', the value can be 'master' or 'peer'.
 - 'master' (means 'master=on' in qemu), the guest will copy
   the shared memory on migration to the destination host.
 - 'peer' (means 'master=off' in qemu), the migration is disabled.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Yang Hang <yanghang44@huawei.com>
Signed-off-by: Wang Xin <wangxinxin.wang@huawei.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
5 years agoci: specify containter dependencies for all the jobs
Ján Tomko [Tue, 28 Jul 2020 09:15:13 +0000 (11:15 +0200)] 
ci: specify containter dependencies for all the jobs

Write down the container job needed for each build job in the
'needs' keyword to allow greater parallelism.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: .gitlab-ci.yml: switch armv7l build to Debian 10
Pavel Hrdina [Thu, 16 Jul 2020 08:26:02 +0000 (10:26 +0200)] 
meson: .gitlab-ci.yml: switch armv7l build to Debian 10

On Debian Sid there are broken headers for cross compilation. There is
no <asm/kvm.h> header unconditionally included by <linux/kvm.h>.

With autotools the build works correctly because the header detection
tries to compile simple code that includes the header but with Meson
the detection works differently. We check <linux/kvm.h> which is present
so it should be safe to include it.

We could workaround it in libvirt by checking for presence of
<asm/kvm.h> as well but I don't believe that's a correct approach.
IMHO it should be fixed in Debian.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: update .gitlab-ci.yml file
Pavel Hrdina [Mon, 3 Aug 2020 06:53:00 +0000 (08:53 +0200)] 
meson: update .gitlab-ci.yml file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: drop incomplete conversion error and option
Pavel Hrdina [Tue, 28 Jul 2020 15:23:33 +0000 (17:23 +0200)] 
meson: drop incomplete conversion error and option

Now that the rewrite is complete it is safe to drop this option and the
corresponding error message.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: adjust our documentation to mention meson instead of autoconf
Pavel Hrdina [Fri, 17 Jul 2020 19:09:25 +0000 (21:09 +0200)] 
meson: adjust our documentation to mention meson instead of autoconf

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: now we can drop all autoconf related gitignore lines
Pavel Hrdina [Wed, 1 Jul 2020 13:55:08 +0000 (15:55 +0200)] 
meson: now we can drop all autoconf related gitignore lines

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: drop all unused bits from configure.ac
Pavel Hrdina [Mon, 27 Jul 2020 09:43:53 +0000 (11:43 +0200)] 
meson: drop all unused bits from configure.ac

AC_CANONICAL_HOST adds --host option to configure which is provided
automatically by Meson as --cross-file.

All of the AC_PROG_CC, AC_PROG_INSTALL, AC_PROG_CPP, AM_PROG_CC_C_O,
AM_PROG_LD, PKG_PROG_PKG_CONFIG are automatically checked by Meson.

libtool is not used by meson so there is no need for that as well and
the remaining directives are not relevant for Meson.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: drop remaining m4 helper files
Pavel Hrdina [Thu, 25 Jun 2020 16:43:13 +0000 (18:43 +0200)] 
meson: drop remaining m4 helper files

These are not relevant as the functionality is provided directly by
meson.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: remove unused bits from GNUmakefile
Pavel Hrdina [Wed, 1 Jul 2020 13:48:49 +0000 (15:48 +0200)] 
meson: remove unused bits from GNUmakefile

None of the directives from GNUmakefile are converted to meson as they
don't make any sense.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: drop remaining bits from Makefile.am
Pavel Hrdina [Wed, 1 Jul 2020 13:35:41 +0000 (15:35 +0200)] 
meson: drop remaining bits from Makefile.am

There is no alternative to DISTCHECK_CONFIGURE_FLAGS in Meson. We could
enable -Werror unconditionally but that would affect all users. It is
mainly used in our CI environment so we can run meson with --werror to
enable it in configure time which will be picked up by meson dist as
well.

XZ_OPT is not relevant with meson since it uses shutil.make_archive
which uses lzma python module to do the compression.

Introducing rpm and srpm rules should be possible with Meson but we
don't even use them in our CI and it's easy to run 'ninja dist'
followed by rpmbuild manually.

As for the ci rules that is simply not possible in the same way, we
would have to have a lot of aliases for all the ci rules and that would
be just insane.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: add rule to build and install only web documentation
Pavel Hrdina [Thu, 23 Jul 2020 16:40:12 +0000 (18:40 +0200)] 
meson: add rule to build and install only web documentation

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: update spec file to use meson
Pavel Hrdina [Wed, 10 Jun 2020 22:31:12 +0000 (00:31 +0200)] 
meson: update spec file to use meson

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: add syntax-check
Pavel Hrdina [Thu, 25 Jun 2020 21:29:43 +0000 (23:29 +0200)] 
meson: add syntax-check

This changes the approach used with autotools where it was separate make
target. With meson it will be part of the `meson test` target but can be
disabled using --no-suite syntax-check or we can run only syntax-check
by using --suite syntax-check.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: generate developer tooling files
Pavel Hrdina [Wed, 1 Jul 2020 00:54:36 +0000 (02:54 +0200)] 
meson: generate developer tooling files

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: generate run helper
Pavel Hrdina [Wed, 1 Jul 2020 00:52:45 +0000 (02:52 +0200)] 
meson: generate run helper

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: generate and distribute spec files and AUTHORS
Pavel Hrdina [Tue, 28 Jul 2020 15:51:53 +0000 (17:51 +0200)] 
meson: generate and distribute spec files and AUTHORS

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: install pkgconfig files
Pavel Hrdina [Mon, 29 Jun 2020 19:56:09 +0000 (21:56 +0200)] 
meson: install pkgconfig files

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: docs/html: add html test
Pavel Hrdina [Thu, 25 Jun 2020 16:15:02 +0000 (18:15 +0200)] 
meson: docs/html: add html test

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: docs/schemas: install RNG schemas
Pavel Hrdina [Thu, 25 Jun 2020 12:33:56 +0000 (14:33 +0200)] 
meson: docs/schemas: install RNG schemas

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: docs/manpages: install man pages
Pavel Hrdina [Thu, 25 Jun 2020 12:33:22 +0000 (14:33 +0200)] 
meson: docs/manpages: install man pages

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: docs/logos: install logo files
Pavel Hrdina [Thu, 18 Jun 2020 00:31:31 +0000 (02:31 +0200)] 
meson: docs/logos: install logo files

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
5 years agomeson: docs/kbase: build html files
Pavel Hrdina [Thu, 18 Jun 2020 00:30:40 +0000 (02:30 +0200)] 
meson: docs/kbase: build html files

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>