* [Qemu-devel] creating vm fails if maxMemory equals to memory, but hotplug same will success
@ 2015-10-07 15:29 Yi Wang
2015-10-08 9:27 ` Igor Mammedov
0 siblings, 1 reply; 2+ messages in thread
From: Yi Wang @ 2015-10-07 15:29 UTC (permalink / raw)
To: qemu-devel; +Cc: wang.yi59, imammedo, mst
Hi, all
When I create a vm using virsh, it will fail if maxMemory(2G) equals
to memory(2G) in XML:
error: Failed to create domain from vm1.xml
error: internal error: process exited while connecting to monitor:
qemu-kvm: -msg timestamp=on: invalid value of -m option maxmem: memory
slots were specified but maximum memory size (0x80000000) is equal to
the initial memory size (0x80000000)
However, if I allocate 1G memory for the guest at boot time(maxMemory
is still 2G), and then hotplug 1G to it, and it will success! Now
total memory is 2G and it equals to maxMemory. Is this a bug? if so, I
would be happy to work on a patch to fix this. Please tell me how this
designs if this is not a bug.
Thanks a lot.
--
Best Regards
Yi Wang
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] creating vm fails if maxMemory equals to memory, but hotplug same will success
2015-10-07 15:29 [Qemu-devel] creating vm fails if maxMemory equals to memory, but hotplug same will success Yi Wang
@ 2015-10-08 9:27 ` Igor Mammedov
0 siblings, 0 replies; 2+ messages in thread
From: Igor Mammedov @ 2015-10-08 9:27 UTC (permalink / raw)
To: Yi Wang; +Cc: wang.yi59, qemu-devel, mst
On Wed, 7 Oct 2015 23:29:07 +0800
Yi Wang <up2wing@gmail.com> wrote:
> Hi, all
> When I create a vm using virsh, it will fail if maxMemory(2G) equals
> to memory(2G) in XML:
> error: Failed to create domain from vm1.xml
> error: internal error: process exited while connecting to monitor:
> qemu-kvm: -msg timestamp=on: invalid value of -m option maxmem: memory
> slots were specified but maximum memory size (0x80000000) is equal to
> the initial memory size (0x80000000)
-m initial_memory[,slots=X,maxmem=Y]
By design 'initial_memory' is not hotplugable and slots,maxmem should be
used if hotplug is needed and maxmem should be greater than initial_memory.
There isn't point specifying maxmem == initial_memory (i.e. 0-sized hotplug
space) and that's what QEMU is complaining about.
>
> However, if I allocate 1G memory for the guest at boot time(maxMemory
> is still 2G), and then hotplug 1G to it, and it will success! Now
> total memory is 2G and it equals to maxMemory. Is this a bug? if so, I
> would be happy to work on a patch to fix this. Please tell me how this
> designs if this is not a bug.
>
> Thanks a lot.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-08 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 15:29 [Qemu-devel] creating vm fails if maxMemory equals to memory, but hotplug same will success Yi Wang
2015-10-08 9:27 ` Igor Mammedov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).