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); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2010-Aug-06 06:07 UTC
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@lists.xensource.com http://lists.xensource.com/xen-devel
Apparently Analagous Threads
- oops when access xenstore in hvm guest
- [PATCH] valgrind: Support for ioctls used by Xen toolstack processes.
- [PATCH] xen: arm: document which hypercalls (and subops) are supported on ARM
- memsize for HVM save/restore
- How does domain0 export information to guest through xenstore