* src/xm_internal.c: add minimum domain memory size check for Xen

patch by Shigeki Sakamoto
* AUTHORS: add Shigeki Sakamoto
Daniel
This commit is contained in:
Daniel Veillard 2008-10-31 13:06:17 +00:00
parent 7b716fce8e
commit ba2dff372c
3 changed files with 9 additions and 0 deletions

View File

@ -53,6 +53,7 @@ Patches have also been contributed by:
James Morris <jmorris@namei.org>
Chris Wrigh <chrisw@redhat.com>
Ben Guthro <bguthro@virtualiron.com>
Shigeki Sakamoto <fj0588di@aa.jp.fujitsu.com>
[....send patches to get your name here....]

View File

@ -1,3 +1,9 @@
Fri Oct 31 14:04:52 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/xm_internal.c: add minimum domain memory size check for Xen
patch by Shigeki Sakamoto
* AUTHORS: add Shigeki Sakamoto
Fri Oct 31 11:11:30 CET 2008 Daniel Veillard <veillard@redhat.com>
* python/Makefile.am python/generator.py python/libvir.c

View File

@ -1273,6 +1273,8 @@ int xenXMDomainSetMemory(virDomainPtr domain, unsigned long memory) {
return (-1);
if (domain->id != -1)
return (-1);
if (memory < 1024 * MIN_XEN_GUEST_SIZE)
return (-1);
if (!(filename = virHashLookup(nameConfigMap, domain->name)))
return (-1);