From: Jacob Gorm Hansen Subject: domain setmaxmen in KB or bytes? Date: Mon, 27 Dec 2004 17:00:19 +0100 Message-ID: <41D03193.5030109@diku.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "xen-devel@lists.sourceforge.net" List-Id: xen-devel@lists.xenproject.org hi, the maxmem parameter to DOM0_SETDOMAINMAXMEM is called max_memkb, indicating that it should be in kilobytes, but looking at the code in xen/common/dom0_ops.c: case DOM0_SETDOMAINMAXMEM: { struct domain *d; ret = -ESRCH; d = find_domain_by_id( op->u.setdomainmaxmem.domain ); if ( d != NULL ) { d->max_pages = (op->u.setdomainmaxmem.max_memkb+PAGE_SIZE-1)>> PAGE_SHIFT; put_domain(d); ret = 0; } } break; It seems the value is treated as being in bytes? Bug or feature? best, Jacob ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/