]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCommand: Introduce APIs for core scheduling
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Apr 2022 10:22:24 +0000 (12:22 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Oct 2022 06:51:50 +0000 (08:51 +0200)
commitbd481a79d825b0ab456d54ffd70ad5f0c34ac005
tree5d69014ee7e678bda5b6cea8a357a11f2bf35db9
parentc935cead2d281212eac3927cbe8e2b21c82ef171
virCommand: Introduce APIs for core scheduling

There are two modes of core scheduling that are handy wrt
virCommand:

1) create new trusted group when executing a virCommand

2) place freshly executed virCommand into the trusted group of
   another process.

Therefore, implement these two new operations as new APIs:
virCommandSetRunAlone() and virCommandSetRunAmong(),
respectively.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_private.syms
src/util/vircommand.c
src/util/vircommand.h