Juergen Gross 1457d8cf76 x86/xen: fix pv boot
Commit 9da3f2b7405440 ("x86/fault: BUG() when uaccess helpers fault on
kernel addresses") introduced a regression for booting Xen PV guests.

Xen PV guests are using __put_user() and __get_user() for accessing the
p2m map (physical to machine frame number map) as accesses might fail
in case of not populated areas of the map.

With above commit using __put_user() and __get_user() for accessing
kernel pages is no longer valid. So replace the Xen hack by adding
appropriate p2m access functions using the default fixup handler.

Fixes: 9da3f2b7405440 ("x86/fault: BUG() when uaccess helpers fault on kernel addresses")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2018-11-09 08:16:55 +01:00
..
2018-08-19 10:38:36 -07:00
2018-11-09 08:16:55 +01:00
2018-03-20 10:01:57 +01:00
2018-01-30 15:08:27 +01:00
2018-05-19 13:55:40 +02:00
2018-08-15 13:44:10 -07:00
2017-12-22 20:13:04 +01:00
2017-12-04 10:56:53 +10:00
2017-12-22 20:13:01 +01:00
2017-07-26 13:18:20 +02:00
2018-05-07 07:15:41 +02:00
2018-10-14 11:11:22 +02:00
2018-06-07 10:23:33 -07:00
2018-07-20 01:11:45 +02:00
2017-11-15 18:21:05 -08:00
2018-03-28 22:47:06 +02:00
2018-03-20 10:01:57 +01:00
2018-05-09 21:41:38 +02:00
2017-11-15 18:21:04 -08:00