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

Re: [libvirt] [PATCH v2] qemu: Implement CPUs check against machine type's cpu-max



On Wed, Apr 17, 2013 at 12:36:54PM +0200, Michal Novotny wrote:
> Implement check whether (maximum) vCPUs doesn't exceed machine
> type's cpu-max settings.
> 
> Signed-off-by: Michal Novotny <minovotn redhat com>
> ---
>  src/conf/capabilities.h      |  1 +
>  src/qemu/qemu_capabilities.c | 40 +++++++++++++++++++++++++++++++++++++++-
>  src/qemu/qemu_capabilities.h |  3 ++-
>  src/qemu/qemu_monitor.h      |  1 +
>  src/qemu/qemu_monitor_json.c |  7 +++++++
>  src/qemu/qemu_process.c      | 27 +++++++++++++++++++++++++++
>  6 files changed, 77 insertions(+), 2 deletions(-)
> 
> diff --git a/src/conf/capabilities.h b/src/conf/capabilities.h
> index abcf6de..16bf3de 100644
> --- a/src/conf/capabilities.h
> +++ b/src/conf/capabilities.h
> @@ -46,6 +46,7 @@ typedef virCapsGuestMachine *virCapsGuestMachinePtr;
>  struct _virCapsGuestMachine {
>      char *name;
>      char *canonical;
> +    int cpu_max;
>  };
>  

This shouldn't be required if everthing is done using the
qemuCapsPtr object.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


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