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

Re: [Xen-devel] How to initialize the grant table in a HVM guest OS and its bios




2012/8/8 Ian Campbell <Ian.Campbell@xxxxxxxxxx>
On Wed, 2012-08-08 at 16:48 +0100, Bei Guan wrote:

> Thank you very much for your help.
> Is there any example code of initialization of grant table in HVM that
> I can refer to?

The PVHVM support in upstream Linux would be a good place to look.

So might the code in the xen tree in unmodified_drivers/linux-2.6/

IIRC Daniel got grant tables working in SeaBIOS last summer for GSoC so
you might also find some useful examples in
git://github.com/evildani/seabios_patch.git
Hi Ian,

Thank you very much for this information. It's very useful to me.

However, I'm still confused with the initialization of the grant table in HVM. 

The relationship of the methods in the initialization of the grant table in linux source code (driver/xen) is:
platform_pci_init()-->gnttab_init()-->gnttab_resume()-->gnttab_map()-->arch_gnttab_map_shared()-->apply_to_page_range().

So, I am not sure that what's the function of the method apply_to_page_range(), which is implemented in code file [1]. 
This function is a little complex. Is there any simple method to do this? Thank you for your time.



Best Regards,
Bei Guan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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