From: tgh Subject: Re: question about running vm change its mem maxsize Date: Wed, 21 Mar 2007 08:37:38 +0800 Message-ID: <46007E52.7030402@ncic.ac.cn> References: <31436f4a0703171215m3f18a72an583b5633b6a8b66a@mail.gmail.com> <45FDE561.5060504@ncic.ac.cn> <1174298445.4337.26.camel@lapbode42.lrr.in.tum.de> <45FE8052.7080805@ncic.ac.cn> <1174314969.4337.76.camel@lapbode42.lrr.in.tum.de> <45FF5F45.2090805@ncic.ac.cn> <1174405425.5642.57.camel@lapbode42.lrr.in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1174405425.5642.57.camel@lapbode42.lrr.in.tum.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org Thank you for your reply >> >> and domain builder acts as bootloader ,and then guestos-linux will >> setup and control its own memory ,is it right? of course,any memory-map >> will incur xen to related map or so. >> but in the rational linux, it will know how many physical memory it owns >> and linux know that all the physical memory it owns is there >> > > naturally. > > >> In the xen ,guest-linux know how many physical memory it owns but >> doesnot know that all the physical memory it owns is there,for some of >> them is not to allocate,is it right? >> > > this is correct -- for a paravirtual guest. for a hvm guest, it needs to > work a little different, of course. > > how does hvm guest deal with its physical memory? when it boots up, is its physical memory allocated and its virtual memory not all allocated or what does its do? could you help me Thanks in advance >> that is during guest-linux >> running,it will request some memory which it will get ,for the >> guest ,its memory (both its physical memory and its virtual memory)is >> dynamical allocated,while raditional linux has its physical memory when >> it boot up ,while gets virtual memory dynamically,is it right? >> > > yes. see the xen interface manual on this topic, namely the chapters on > memory management and the hypercall reference for page table and > physical memory management. not sure if this gets entirely clear, > though, i sometimes tend to get confused myself. especially guest side > vm tends to be complex, but that's quite natural. > > >> could you help me >> thanks in advance >> > > hth, > dns > >