From: Mark Williamson Subject: Re: question about running vm change its mem maxsize Date: Wed, 21 Mar 2007 04:12:28 +0000 Message-ID: <200703210412.29591.mark.williamson@cl.cam.ac.uk> References: <31436f4a0703171215m3f18a72an583b5633b6a8b66a@mail.gmail.com> <1174405425.5642.57.camel@lapbode42.lrr.in.tum.de> <46007E52.7030402@ncic.ac.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46007E52.7030402@ncic.ac.cn> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Daniel Stodden , tgh List-Id: xen-devel@lists.xenproject.org > 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? An HVM guest sees a memory model that looks like a normal PC: The HVM guest's BIOS runs, starts the bootloader. The bootloader starts the OS kernel. The kernel comes up in real mode, does some setup and switches to protected mode[1], then it builds some pagetables and switches to paged mode, etc. [1] sometimes (e.g. using grub and an OS supporting the multiboot standard) the bootloader may do the real->protected mode switch, but the sequence of events is otherwise pretty similar. Hope that helps. Cheers, Mark > 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 > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!