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

Re: [Xen-devel] HVM (hypercall_grant_table_op) Problem



Hi, 

At 00:52 +0800 on 18 Nov (1321577533), ???? wrote:
> Hi:
>      I modified the netfont.c of Linux HVM domU installed PVonHVM.In it, I 
> call hypercall_grant_table_op
>  (GNTTABOP_map_grant_ref...), then dom0 shutdown and restart at once.

Do you have a serial line attached to the machine to capture the console
output when this happens?  Without that it's hard to knwo what the bug is.

>      From above, I conclude that I can map a HVM's page to another HVM, just 
> like two PVs. 
>  Am I wrong? Who can give me some suggestion?

Yes, HVM guests can now map granted frames, but not quite 'just like pv'.
The grant hypercall maps the granted frame into the HVM guest's p2m map,
instead of into the pagetables.  That is, you pass in a PFN, and when
the grant succeeds, you still need to map that PFN in your pagetables to
access the page. 

The checkin that added the feature came with this comment:

  After some discussion, here's a second version of the patch I posted a
  couple of weeks back to map grant references into HVM guests.  As
  before, this is done by modifying the P2M map, but this time there's
  no new hypercall to do it.  Instead, the existing GNTTABOP_map is
  overloaded to perform a P2M mapping if called from a shadow mode
  translate guest.  This matches the IA64 API.

http://xenbits.xen.org/hg/xen-unstable.hg/rev/c0cb307d927f

Tim.

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