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