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

[Xen-devel] limit of grant table entries


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Lily Huang" <ushuanglily@xxxxxxxxx>
  • Date: Wed, 14 Jun 2006 04:05:00 -0400
  • Delivery-date: Wed, 14 Jun 2006 01:05:20 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=q/YO5AEn8He6nvJARBwvLoBJRm+c9YCLGgIupOw4yqc5jp7QorDiw/fZLpXJe6N9MXyUD5J3ob2UAmP6EGfCKxtQQ0X0r4Nv7eZtuKP4v04Q5xnakj9eN7QBEzHWTISefQtwiYBgsDffNdmCdoOj1NvIr5jAF0t+1pafBJAuq8M=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

I tried to do gnttab_grant_foreign_access() to grant access of certain pages to another domain. But after my code runs for a while,
I will not be able to do gnttab_grant_foreign_access() successfully and the error code is -ENOSPC. This seems to show that grant table has no
free entries. At that time, I have call this function for 2039 times.

But question is: sometimes, my system does need to grant a lot of pages to another domain, the limit of grant table seems to be a serious limitation.

Another thing is: according to the xen code, 8 pages are used to store grant table entries. Each entry is 8 bytes long, so we should be able to allocate 4096
entries. Why I got error message when I only allocated 2039 entries?

Can someone please give me an idea on how to fix this problem? Many thanks!

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