WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] question about running vm change its mem maxsize

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] question about running vm change its mem maxsize
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Wed, 21 Mar 2007 04:12:28 +0000
Cc: Daniel Stodden <stodden@xxxxxxxxxx>, tgh <tianguanhua@xxxxxxxxxx>
Delivery-date: Tue, 20 Mar 2007 21:09:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46007E52.7030402@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <31436f4a0703171215m3f18a72an583b5633b6a8b66a@xxxxxxxxxxxxxx> <1174405425.5642.57.camel@xxxxxxxxxxxxxxxxxxxxxxx> <46007E52.7030402@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
> 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@xxxxxxxxxxxxxxxxxxx
> 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!

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