[libvirt] [PATCH] qemu: Use maximum guest memory size when getting NUMA placement advice

Eric Blake eblake at redhat.com
Fri Oct 4 11:50:09 UTC 2013


On 10/04/2013 03:51 AM, Peter Krempa wrote:
> When starting the VM the guest balloon driver is not loaded at that
> time. We need to ask numad for placement of the complete VM.
> ---
>  src/qemu/qemu_process.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

ACK.

> 
> diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
> index 7a30a5e..079f062 100644
> --- a/src/qemu/qemu_process.c
> +++ b/src/qemu/qemu_process.c
> @@ -3684,7 +3684,7 @@ int qemuProcessStart(virConnectPtr conn,
>          (vm->def->numatune.memory.placement_mode ==
>           VIR_NUMA_TUNE_MEM_PLACEMENT_MODE_AUTO)) {
>          nodeset = virNumaGetAutoPlacementAdvice(vm->def->vcpus,
> -                                                vm->def->mem.cur_balloon);
> +                                                vm->def->mem.max_balloon);
>          if (!nodeset)
>              goto cleanup;
> 

-- 
Eric Blake   eblake 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: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131004/26924ab9/attachment-0001.sig>


More information about the libvir-list mailing list