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

Re: [Xen-users] CentOS 6.2 & xl mem-set



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



Ivan Fitenko <digitalhunger@xxxxxxxxx> schrieb:
>diff -Naru a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
>--- a/arch/x86/xen/setup.c      2011-11-08 23:06:47.000000000 +0200
>+++ b/arch/x86/xen/setup.c      2012-01-04 16:30:19.468207563 +0200
>@@ -146,9 +146,20 @@
>        domid_t domid = DOMID_SELF;
>        int ret;
>
>-       ret = HYPERVISOR_memory_op(XENMEM_maximum_reservation, &domid);
>-       if (ret > 0)
>-               max_pages = ret;
>+       /*
>+        * For the initial domain we use the maximum reservation as
>+        * the maximum page.
>+        *
>+        * For guest domains the current maximum reservation reflects
>+        * the current maximum rather than the static maximum. In this
>+        * case the e820 map provided to us will cover the static
>+        * maximum region.
>+        */
>+       if (xen_initial_domain()) {
>+               ret = HYPERVISOR_memory_op(XENMEM_maximum_reservation,
>&domid);
>+               if (ret > 0)
>+                       max_pages = ret;
>+       }
>        return min(max_pages, MAX_DOMAIN_PAGES);
> }

...thanx too here. Ã)

best regards and nice weekend,


Niels.
- --
Niels Dettenbach
Syndicat IT&Internet
http://www.syndicat.com
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iIEEAREIAEEFAk8QJeg6HE5pZWxzIERldHRlbmJhY2ggKFN5bmRpY2F0IElUJklu
dGVybmV0KSA8bmRAc3luZGljYXQuY29tPgAKCRBU3ERlZRyiDVGcAJ9SfrTmbdmq
g+HrcVURB+enS2tsegCfQrq0N166b5lmFKlevzZ2Amxa4No=
=SjHu
-----END PGP SIGNATURE-----


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.