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

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



> 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


 


Rackspace

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