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-07 04:08:21 -08:00
2007-11-07 04:08:21 -08:00
2007-11-07 04:08:21 -08:00
2007-10-29 07:41:32 -07:00
2007-10-23 15:49:47 +10:00
2007-11-05 18:10:28 -05:00
2007-10-21 02:37:45 -04:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2007-11-09 13:41:32 +01:00
2007-10-29 14:05:37 -07:00
2007-10-22 08:13:18 -07:00
2007-10-20 03:10:57 +02:00
2007-10-19 11:53:51 -07:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:36 -07:00
2007-10-18 14:37:32 -07:00
2007-10-25 15:10:17 -07:00
2007-10-24 18:23:48 +02:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:44 -07:00
2007-10-19 23:07:36 +02:00
2007-10-21 02:37:45 -04:00
2007-10-24 10:27:48 -02:00
2007-10-19 11:53:36 -07:00
2007-11-02 08:47:25 +01:00
2007-10-31 12:51:29 -07:00
2007-10-20 02:00:58 +01:00
2007-10-22 08:13:19 -07:00
2007-10-23 15:49:47 +10:00
2007-10-22 08:13:19 -07:00
2007-10-22 08:13:20 -07:00
2007-10-29 07:41:32 -07:00
2007-10-22 08:13:21 -07:00
2007-10-22 08:13:18 -07:00
2007-10-18 14:37:29 -07:00
2007-10-22 08:13:21 -07:00
2007-10-21 02:37:18 -04:00
2007-10-18 14:37:31 -07:00
2007-11-05 21:53:46 +11:00
2007-10-19 11:53:42 -07:00
2007-10-22 00:56:52 -04:00
2007-11-05 21:42:29 +01:00
2007-10-19 11:53:43 -07:00
2007-10-21 02:37:38 -04:00
2007-10-27 23:42:32 -04:00
2007-10-19 11:53:48 -07:00
2007-10-30 08:06:55 -07:00
2007-10-18 14:37:32 -07:00
2007-10-19 11:53:35 -07:00
2007-11-05 15:12:32 -08:00
2007-10-30 21:44:00 -07:00
2007-10-19 11:53:49 -07:00
2007-10-19 11:53:33 -07:00
2007-10-25 15:02:50 +10:00
2007-10-25 15:02:50 +10:00
2007-11-05 18:10:28 -05:00
2007-10-22 08:13:17 -07:00
2007-10-19 11:53:35 -07:00
2007-10-19 11:53:38 -07:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:55 -07:00
2007-10-22 08:13:17 -07:00
2007-10-19 11:53:36 -07:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:54 -07:00
2007-11-07 04:08:55 -08:00
2007-10-19 11:53:44 -07:00
2007-10-30 14:32:16 -04:00
2007-10-23 08:23:00 -07:00
2007-10-22 02:59:54 -07:00
2007-11-01 02:21:47 -07:00
2007-11-07 04:15:12 -08:00
2007-10-19 17:19:16 -04:00
2007-10-19 11:53:34 -07:00
2007-10-19 11:53:37 -07:00
2007-10-19 11:53:41 -07:00
2007-10-23 19:53:16 -04:00
2007-11-05 13:35:17 -08:00
2007-11-05 13:35:17 -08:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:39 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 20:35:04 +02:00
2007-10-19 11:53:41 -07:00
2007-11-07 04:10:52 -08:00
2007-10-19 11:53:35 -07:00
2007-10-22 08:13:20 -07:00
2007-11-02 08:47:06 +01:00
2007-11-09 22:39:39 +01:00
2007-10-23 15:49:47 +10:00
2007-10-20 00:53:30 +02:00
2007-10-19 11:53:44 -07:00
2007-10-23 20:45:44 -07:00
2007-10-19 11:53:44 -07:00
2007-10-23 21:27:55 -07:00
2007-11-09 22:39:38 +01:00
2007-10-22 02:59:48 -07:00
2007-10-30 21:44:00 -07:00
2007-11-07 04:14:19 -08:00
2007-10-29 07:41:33 -07:00
2007-10-19 11:53:42 -07:00
2007-10-22 12:01:30 -02:00
2007-10-22 12:01:24 -02:00
2007-10-23 13:47:31 -05:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:55 +10:00
2007-10-23 15:49:54 +10:00
2007-11-12 13:59:40 +11:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:34 -07:00
2007-10-19 11:53:38 -07:00