[libvirt] [PATCH 1/2] qemuProcessStop: Switch to flags

Eric Blake eblake at redhat.com
Mon Jun 11 16:49:23 UTC 2012


On 06/11/2012 08:29 AM, Michal Privoznik wrote:
> Currently, we are passing only one boolean (migrated) so there is
> no real profit in this. But it creates starting position for
> next patch.
> ---
>  src/qemu/qemu_driver.c    |   16 ++++++++--------
>  src/qemu/qemu_migration.c |   20 +++++++++++++-------
>  src/qemu/qemu_process.c   |   22 ++++++++++++----------
>  src/qemu/qemu_process.h   |    8 ++++++--
>  4 files changed, 39 insertions(+), 27 deletions(-)

ACK - fairly mechanical and straightforward.

> @@ -3985,7 +3985,8 @@ void qemuProcessStop(struct qemud_driver *driver,
>  
>      /* Reset Security Labels */
>      virSecurityManagerRestoreAllLabel(driver->securityManager,
> -                                      vm->def, migrated);
> +                                      vm->def,
> +                                      flags & VIR_QEMU_PROCESS_STOP_MIGRATED);

It's a bit odd that virSecurityManagerRestoreAllLabel uses an int
instead of a bool, but that's independent of your patch.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120611/dcf6a938/attachment-0001.sig>


More information about the libvir-list mailing list