aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen/interface
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2010-09-15 13:28:20 -0400
committerLeann Ogasawara <leann.ogasawara@canonical.com>2011-08-30 13:15:02 -0400
commit41cd93c7abba2db0fd259cf40369bfbc5dba8c45 (patch)
tree0b6d2d45025f03efc1ef82c6258700dd0369d0a0 /include/xen/interface
parent290306e44a33399e468ef3d549638fd82b8ddfe0 (diff)
UBUNTU: SAUCE: Improve Amazon EBS performance for EC2
OriginalAuthor: Amazona from Ben Howard <behoward@amazon.com> BugLink: http://bugs.launchpad.net/bugs/634316 The pv-ops kernel suffers from poor performance when using Amazon's Elastic block storage (EBS). This patch from Amazon improves pv-ops kernel performance, and has not exhibited any regressions. Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Diffstat (limited to 'include/xen/interface')
-rw-r--r--include/xen/interface/io/blkif.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/xen/interface/io/blkif.h b/include/xen/interface/io/blkif.h
index 3d5d6db864f..db03ee9eac4 100644
--- a/include/xen/interface/io/blkif.h
+++ b/include/xen/interface/io/blkif.h
@@ -106,6 +106,18 @@ struct blkif_response {
106 106
107DEFINE_RING_TYPES(blkif, struct blkif_request, struct blkif_response); 107DEFINE_RING_TYPES(blkif, struct blkif_request, struct blkif_response);
108 108
109/*
110 * Maximum number of pages used for a blkif ring
111 * max-ring-pages advertised by blkback to blkfront may be lowered at blkback
112 * mod load time. Load time param set to default.
113 */
114#define BLKIF_MAX_NUM_RING_PAGES 16
115#define BLKIF_MAX_NUM_RING_PAGES_DFLT 4
116#if BLKIF_MAX_NUM_RING_PAGES < BLKIF_MAX_NUM_RING_PAGES_DFLT
117#undef BLKIF_MAX_NUM_RING_PAGES_DFLT
118#define BLKIF_MAX_NUM_RING_PAGES_DFLT BLKIF_MAX_NUM_RING_PAGES
119#endif
120
109#define VDISK_CDROM 0x1 121#define VDISK_CDROM 0x1
110#define VDISK_REMOVABLE 0x2 122#define VDISK_REMOVABLE 0x2
111#define VDISK_READONLY 0x4 123#define VDISK_READONLY 0x4