Julien Grall
753c09b565
xen/privcmd: Support correctly 64KB page granularity when mapping memory
...
Commit 5995a68 "xen/privcmd: Add support for Linux 64KB page granularity" did
not go far enough to support 64KB in mmap_batch_fn.
The variable 'nr' is the number of 4KB chunk to map. However, when Linux
is using 64KB page granularity the array of pages (vma->vm_private_data)
contain one page per 64KB. Fix it by incrementing st->index correctly.
Furthermore, st->va is not correctly incremented as PAGE_SIZE !=
XEN_PAGE_SIZE.
Fixes: 5995a68 ("xen/privcmd: Add support for Linux 64KB page granularity")
CC: stable@vger.kernel.org
Reported-by: Feng Kan <fkan@apm.com>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2017-06-07 11:23:14 +02:00
..
2017-05-01 20:51:12 -07:00
2017-03-02 08:42:29 +01:00
2017-05-01 13:34:49 -07:00
2017-03-02 08:42:32 +01:00
2017-03-16 16:59:55 +09:00
2017-05-01 15:46:13 -07:00
2017-05-01 19:12:53 -07:00
2017-03-22 19:22:04 -07:00
2017-02-23 15:57:04 -08:00
2017-04-20 12:16:10 -06:00
2017-05-01 20:51:12 -07:00
2017-04-28 10:47:21 -07:00
2017-05-01 16:15:18 -07:00
2017-05-01 19:12:53 -07:00
2017-04-28 23:15:34 +02:00
2017-05-01 19:12:53 -07:00
2017-05-01 23:54:56 -07:00
2017-04-12 12:42:14 +09:00
2017-03-14 10:11:27 +05:30
2017-03-02 08:42:32 +01:00
2017-04-27 14:15:38 +02:00
2017-04-04 11:22:42 +09:00
2017-02-28 20:29:41 -08:00
2017-04-17 12:35:33 +02:00
2017-02-10 15:20:44 +01:00
2017-02-10 15:19:48 +01:00
2017-03-30 11:08:46 +02:00
2017-04-13 09:56:05 +10:00
2017-04-20 12:26:10 -07:00
2017-04-21 17:58:45 +02:00
2017-05-01 23:08:46 -07:00
2017-04-30 11:45:31 -07:00
2017-03-30 09:48:58 +02:00
2017-03-24 12:22:18 +01:00
2017-04-26 07:53:35 -06:00
2017-03-02 17:41:27 -08:00
2017-04-02 11:44:03 +01:00
2017-04-11 23:51:58 -07:00
2017-04-28 11:08:42 -07:00
2017-03-30 09:53:55 +02:00
2017-04-30 11:21:16 +02:00
2017-03-28 17:59:33 -07:00
2017-04-19 20:27:50 +02:00
2017-03-16 09:06:35 +01:00
2017-04-25 10:44:29 -06:00
2017-03-10 14:17:23 +11:00
2017-04-27 16:20:04 +05:30
2017-05-01 10:39:57 -07:00
2017-03-24 13:34:16 -07:00
2017-03-06 08:37:53 -08:00
2017-02-17 14:08:19 -07:00
2017-02-21 11:51:42 -08:00
2017-02-22 12:14:01 -08:00
2017-03-26 11:15:54 -07:00
2017-05-01 10:39:57 -07:00
2017-05-01 10:39:57 -07:00
2017-04-28 16:11:48 -04:00
2017-02-27 18:43:47 -08:00
2017-02-16 23:11:26 -05:00
2017-05-01 23:54:56 -07:00
2017-05-01 10:39:57 -07:00
2017-02-22 19:23:14 -08:00
2017-03-02 08:42:40 +01:00
2017-03-03 16:20:06 -08:00
2017-03-16 17:32:21 +09:00
2017-04-12 10:46:47 -05:00
2017-03-02 08:42:27 +01:00
2017-03-09 15:29:57 +05:30
2017-04-11 10:09:39 +02:00
2017-05-01 13:12:49 -07:00
2017-03-16 09:06:35 +01:00
2017-05-01 14:13:28 -07:00
2017-03-02 08:42:29 +01:00
2017-05-01 16:15:18 -07:00
2017-04-06 15:08:52 +02:00
2017-03-31 17:13:30 -07:00
2017-03-28 08:54:48 +02:00
2017-02-20 17:23:57 -08:00
2017-03-20 14:45:44 -07:00
2017-04-04 17:36:10 +02:00
2017-03-02 13:53:13 -08:00
2017-03-02 08:42:32 +01:00
2017-04-05 20:17:38 -07:00
2017-03-28 15:06:58 -06:00
2017-05-02 11:14:53 +02:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:27 +01:00
2017-05-01 10:39:57 -07:00
2017-05-01 10:39:57 -07:00
2017-04-15 00:23:36 +02:00
2017-04-14 10:59:56 +02:00
2017-03-02 08:42:32 +01:00
2017-05-01 23:00:21 -07:00
2017-03-14 17:07:31 +08:00
2017-03-24 14:39:36 -07:00
2017-03-21 14:41:46 -07:00
2017-04-19 19:59:44 +01:00
2017-04-11 00:30:20 +03:00
2017-03-02 08:42:29 +01:00
2017-03-01 06:15:10 -08:00
2017-06-07 11:23:14 +02:00
2017-02-10 15:19:48 +01:00
2017-02-23 11:53:22 -08:00