aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-08-01 09:37:10 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-08-01 09:37:10 +0100
commite5ba23a1d98db4e433a5edc85eb3242298cd3275 (patch)
tree985a178f2764181d516898f665588926682a402b /extras/mini-os/include
parentee449f80fde4a9bd323209f61a734bf88753c752 (diff)
downloadxen-e5ba23a1d98db4e433a5edc85eb3242298cd3275.tar.gz
xen-e5ba23a1d98db4e433a5edc85eb3242298cd3275.tar.bz2
xen-e5ba23a1d98db4e433a5edc85eb3242298cd3275.zip
FSIF: extend protocol to multi-grant requests and multi-page ring
To improve throughput and inline the stat response. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r--extras/mini-os/include/fs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/mini-os/include/fs.h b/extras/mini-os/include/fs.h
index d60f0c964b..cd8262e54d 100644
--- a/extras/mini-os/include/fs.h
+++ b/extras/mini-os/include/fs.h
@@ -5,6 +5,9 @@
#include <mini-os/semaphore.h>
#include <mini-os/types.h>
+#define FSIF_RING_SIZE_ORDER 1
+#define FSIF_RING_SIZE_PAGES (1<<FSIF_RING_SIZE_ORDER)
+
struct fs_import
{
domid_t dom_id; /* dom id of the exporting domain */
@@ -14,7 +17,7 @@ struct fs_import
unsigned int nr_entries; /* Number of entries in rings & request
array */
struct fsif_front_ring ring; /* frontend ring (contains shared ring) */
- int gnt_ref; /* grant reference to the shared ring */
+ u32 gnt_refs[FSIF_RING_SIZE_PAGES]; /* grant references to the shared ring */
evtchn_port_t local_port; /* local event channel port */
char *backend; /* XenBus location of the backend */
struct fs_request *requests; /* Table of requests */