I''ve got the following scenario... I''m handling a hypercall from domain A and would like to copy some data from the hypervisor to domain B. From what I can tell, it looks like the copy_to_user function (and all of its related functions) will only copy data back into domain A for me. I''ve been combing the hypervisor code and can''t seem to find a good way to copy the data into domain B. Is there a built-in function for this? Or would I need to do something more like delay the copy until domain B is scheduled or ?? Thanks, bryan - Bryan D. Payne Graduate Student, Computer Science Georgia Tech Information Security Center http://www.bryanpayne.org _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 20 Apr 2006, at 14:11, Bryan D. Payne wrote:> I''ve got the following scenario... I''m handling a hypercall from > domain A and would like to copy some data from the hypervisor to > domain B. From what I can tell, it looks like the copy_to_user > function (and all of its related functions) will only copy data back > into domain A for me. I''ve been combing the hypervisor code and can''t > seem to find a good way to copy the data into domain B. Is there a > built-in function for this? Or would I need to do something more like > delay the copy until domain B is scheduled or ??What address do you have in B? Virtual, machine, pseudo-physical? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> What address do you have in B? Virtual, machine, pseudo-physical?I have both a virtual and a machine address. -bryan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 20 Apr 2006, at 14:59, Bryan D. Payne wrote:>> What address do you have in B? Virtual, machine, pseudo-physical? > > I have both a virtual and a machine address.You can pass the latter (as an MFN) to map_domain_page(). That''ll get you a temporary mapping in Xen, relinquished with unmap_domain_page(). -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> You can pass the latter (as an MFN) to map_domain_page(). That''ll > get you a temporary mapping in Xen, relinquished with > unmap_domain_page().Thanks, that did it :-) -bryan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel