diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 09:25:58 -0600 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 09:26:02 +1030 |
commit | 2966af73e70dee461c256b5eb877b2ff757f8c82 (patch) | |
tree | 5cb8a81e80cb9b513fad015f0dc4d5e5db52fd14 /include/linux/lguest_launcher.h | |
parent | 498af14783935af487d17dbee4ac451783cbc2b7 (diff) | |
download | kernel_samsung_espresso10-2966af73e70dee461c256b5eb877b2ff757f8c82.zip kernel_samsung_espresso10-2966af73e70dee461c256b5eb877b2ff757f8c82.tar.gz kernel_samsung_espresso10-2966af73e70dee461c256b5eb877b2ff757f8c82.tar.bz2 |
virtio: use LGUEST_VRING_ALIGN instead of relying on pagesize
This doesn't really matter, since lguest is i386 only at the moment,
but we could actually choose a different value. (lguest doesn't have
a guarenteed ABI).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/lguest_launcher.h')
-rw-r--r-- | include/linux/lguest_launcher.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/lguest_launcher.h b/include/linux/lguest_launcher.h index e7217dc..bd0eba7 100644 --- a/include/linux/lguest_launcher.h +++ b/include/linux/lguest_launcher.h @@ -59,4 +59,8 @@ enum lguest_req LHREQ_IRQ, /* + irq */ LHREQ_BREAK, /* + on/off flag (on blocks until someone does off) */ }; + +/* The alignment to use between consumer and producer parts of vring. + * x86 pagesize for historical reasons. */ +#define LGUEST_VRING_ALIGN 4096 #endif /* _LINUX_LGUEST_LAUNCHER */ |