Re: [PATCH 09/11] qemu: process: Extract pre-start checks into a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 04, 2016 at 03:49:46PM +0100, Peter Krempa wrote:
> When starting a qemu process there are certain checks done to ensure
> that the configuration makes sense. Extract them into a separate
> function so that they can be reused in the test code.
> ---
>  src/qemu/qemu_migration.c |  2 +-
>  src/qemu/qemu_process.c   | 41 ++++++++++++++++++++++++++++++++---------
>  src/qemu/qemu_process.h   |  9 ++++++++-
>  3 files changed, 41 insertions(+), 11 deletions(-)
> 

> diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
> index 0f617da..ea1e103 100644
> --- a/src/qemu/qemu_process.c
> +++ b/src/qemu/qemu_process.c
> @@ -4401,6 +4401,32 @@ qemuProcessMakeDir(virQEMUDriverPtr driver,
> 
> 
>  /**
> + * qemuProcessStartValidate:
> + * @vm: domain object
> + * @qemuCaps: emulator capabilities
> + * @migration: restoration of eixting state

existing?

> + *
> + * This function agregates checks independent from host state done prior to

aggregates

> + * start of a VM.
> + */
> +int
> +qemuProcessStartValidate(virDomainDefPtr def,
> +                         virQEMUCapsPtr qemuCaps,
> +                         bool migration,
> +                         bool snapshot)
> +{
> +    if (qemuValidateCpuCount(def, qemuCaps) < 0)
> +        return -1;
> +

ACK

Jan

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]