~paelzer/libvirt:libvirt-guests-again

Last commit made on 2018-04-16
Get this branch:
git clone -b libvirt-guests-again https://git.launchpad.net/~paelzer/libvirt
Only Christian Ehrhardt  can upload to this branch. If you are Christian Ehrhardt  please log in for upload directions.

Branch merges

Branch information

Name:
libvirt-guests-again
Repository:
lp:~paelzer/libvirt

Recent commits

2ccca91... by Christian Ehrhardt 

tools: fix check_guests_shutdown loop

The recent fix to libvirt-guests.sh.in works for what it intended to fix
(variable scope) but failed to adapt the loop in check_guests_shutdown
accordingly. Due to that it currently detects all guests as "Failed to
determine state of guest".

This change fixes loop to use the passed value and the call in the loop
to use what is iterated on.

Fixes: 7e476356 "tools: fix variable scope in in check_guests_shutdown"

Signed-off-by: Christian Ehrhardt <email address hidden>

6a9bdf3... by Christian Ehrhardt 

apparmor: add rules to use qemu_bridge_helper

Due to mediation of socket and signal activity currently qemu:///session
connections calling qemu_bridge_helper fail.

We need the profile for libvirtd itself and the subprofile for
qemu-bridge-helper to be able to talk/notify to each other via unix socket and
signals.

Fixes: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1754871

Signed-off-by: Christian Ehrhardt <email address hidden>
Acked-by: Michal Privoznik <email address hidden>

0d7c9fa... by Michal Privoznik <email address hidden>

vbox: Make vboxCommonDriver static

This is a global variable, but it isn't accessible from outside
of the file its declared in.

Signed-off-by: Michal Privoznik <email address hidden>

dffe584... by Jim Fehlig

libxl: add support for memballoon device

All Xen PV and HVM with PV driver support a memory balloon device,
which cannot be disabled through the toolstack. Model the device
in the libxl driver, similar to the recently removed xend-based
driver.

Signed-off-by: Jim Fehlig <email address hidden>
Reviewed-by: Daniel P. Berrangé <email address hidden>

2203cea... by Jim Fehlig

news: announce dropping of legacy Xen driver

Signed-off-by: Jim Fehlig <email address hidden>
Reviewed-by: Andrea Bolognani <email address hidden>

9b4fe4c... by John Ferlan <email address hidden>

openvz: Use virDomainObjListFindBy{UUID|ID}Ref

For openvzDomObjFromDomainLocked and openvzDomainLookupByID
let's return a locked and referenced @vm object so that callers
can then use the common and more consistent virDomainObjEndAPI
in order to handle cleanup rather than needing to know that the
returned object is locked and calling virObjectUnlock.

The LookupByName already returns the ref counted and locked object,
so this will make things more consistent.

Signed-off-by: John Ferlan <email address hidden>
Reviewed-by: Jim Fehlig <email address hidden>

b7eb4b9... by John Ferlan <email address hidden>

openvz: Add more descriptive error message on Find failure

If openvzDomainLookupByID or openvzDomainLookupByName fails
to find a vm, let's be a bit more descriptive by providing
the failing id or name in the error message.

Signed-off-by: John Ferlan <email address hidden>
Reviewed-by: Jim Fehlig <email address hidden>

e5d682c... by John Ferlan <email address hidden>

openvz: Create accessors to virDomainObjListFindByUUID

Rather than repeat code throughout, create and use a couple of
accessors in order to lookup by UUID.

Signed-off-by: John Ferlan <email address hidden>
Reviewed-by: Jim Fehlig <email address hidden>

5290ca5... by John Ferlan <email address hidden>

lxc: Fix object locking after virDomainObjListRemove

The virDomainObjListRemove will return an unlocked
@vm after calling with a reffed object, thus prior
to calling virDomainObjEndAPI we should relock.

Signed-off-by: John Ferlan <email address hidden>

abd1e54... by John Ferlan <email address hidden>

lxc: Fix possible leaked @vm in lxcDomainCreateXMLWithFiles

In error paths, if we call virDomainObjListRemove we will leak
the @vm because we have called with a reffed and locked @vm.
So rather than set it to NULL, relock the @vm and allow the
virDomainObjEndAPI to perform the magic of Unlock/Unref.

Signed-off-by: John Ferlan <email address hidden>