|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] How can i get VA from a pfn in HVM guest
On 08/05/2010 04:39 PM, 胡少龙 wrote:
Hi,
After i get the pfn in a hvm guest using following code, how can i
use it? Simply using __va() seems wrong, for the ( param.value <<
PAGE_SHIFT ) is feffc000 in my test module, using __va() will overflow.
xen_hvm_param_t param;
param.domid = DOMID_SELF;
param.index = HVM_PARAM_STORE_PFN;
hypercall_hvm_op(HVMOP_get_param, ¶m);
You need to ioremap it.
J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|