Rusty Russell
42b36cc0ce
virtio: Force use of power-of-two for descriptor ring sizes
...
The virtio descriptor rings of size N-1 were nicely set up to be
aligned to an N-byte boundary. But as Anthony Liguori points out, the
free-running indices used by virtio require that the sizes be a power
of 2, otherwise we get problems on wrap (demonstrated with lguest).
So we replace the clever "2^n-1" scheme with a simple "align to page
boundary" scheme: this means that all virtio rings take at least two
pages, but it's safer than guessing cache alignment.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2007-11-12 13:59:40 +11:00
..
2007-11-10 14:28:16 -08:00
2007-11-10 00:31:27 -05:00
2007-10-23 19:53:16 -04:00
2007-11-02 08:47:06 +01:00
2007-11-08 08:00:24 +01:00
2007-10-22 02:59:46 -07:00
2007-10-24 13:21:21 +02:00
2007-11-07 04:14:19 -08:00
2007-10-30 21:29:47 -07:00
2007-10-29 17:27:50 -04:00
2007-10-27 00:52:07 -07:00
2007-10-30 08:06:55 -07:00
2007-10-19 11:53:56 -07:00
2007-11-07 01:59:28 +01:00
2007-10-19 11:53:42 -07:00
2007-10-31 13:30:35 +01:00
2007-10-19 20:36:17 -07:00
2007-10-20 01:34:40 +02:00
2007-11-05 21:42:30 +01:00
2007-11-04 14:31:16 +01:00
2007-10-30 15:26:56 -07:00
2007-11-02 19:39:18 -07:00
2007-11-05 15:12:31 -08:00
2007-10-23 15:49:47 +10:00
2007-11-05 21:54:41 +00:00
2007-11-12 13:59:40 +11:00
2007-11-08 14:15:34 +11:00
2007-11-09 13:41:32 +01:00
2007-11-04 21:41:30 -02:00
2007-11-05 15:12:31 -08:00
2007-10-20 01:34:40 +02:00
2007-10-25 17:43:46 -04:00
2007-11-10 11:59:49 +01:00
2007-10-23 19:53:16 -04:00
2007-11-12 13:55:25 +11:00
2007-10-23 09:49:31 +02:00
2007-10-23 19:53:16 -04:00
2007-11-05 13:35:17 -08:00
2007-10-19 11:53:41 -07:00
2007-10-22 19:20:52 -07:00
2007-10-19 11:53:41 -07:00
2007-11-07 20:13:24 +09:00
2007-11-05 11:10:17 +01:00
2007-10-20 15:04:06 -07:00
2007-11-05 13:35:17 -08:00
2007-11-09 15:25:29 -08:00
2007-11-07 11:13:55 +09:00
2007-10-29 07:41:33 -07:00
2007-11-05 15:12:33 -08:00
2007-11-02 08:47:06 +01:00
2007-11-08 23:29:36 +00:00
2007-11-12 13:59:40 +11:00
2007-10-30 14:26:30 -07:00
2007-11-02 19:36:26 -07:00
2007-10-19 23:21:04 +02:00
2007-10-23 15:49:54 +10:00
2007-10-23 16:37:29 -07:00