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

[Xen-devel] How hypervisor accesses machine address


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: LIU Wei <liuw@xxxxxxxxx>
  • Date: Wed, 30 Dec 2009 21:25:37 +0800
  • Delivery-date: Wed, 30 Dec 2009 05:26:19 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi, all

The Definitive Guide to the Xen Hypervisor writes: "The hypervisor
already has all of the pages in physical memory mapped into its
address space..."

So, I do following experiment. All operations are done in the
hypervisor, in a hypercall written by myself:

1. provide a mfn, denoted as maddr, which refers to a machine frame of
   an running domain.

2. calculate vaddr=__va(maddr) .

3. access this page through vaddr.

But Xen generates a fatal page fault and the whole system hangs. Since
I'm not very familiar with memory management issue, I don't know how
to let the hypervisor access arbitary machine address. Did I
use wrong macro/function? Or did I misunderstand the book? Any one
can give me a hint?

Thanks in advanced.

Wei LIU

_______________________________________________
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®.