x86/pv: Defer I/O bitmap checks even in 64bit mode for emulate_privilege_op()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Jan 2017 11:41:50 +0000 (11:41 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Jan 2017 12:22:55 +0000 (12:22 +0000)
commite5ca20e0f6212dffaba2d3a0b966b71d9ab1ea91
treebe67100e081d90cd765a90c0dfde22995f518b3d
parentf4e8c6539a60df0f710722f303272bafc55bd31d
x86/pv: Defer I/O bitmap checks even in 64bit mode for emulate_privilege_op()

The I/O bitmap doesn't change function depending on mode.  64bit userspace
such as an X server still needs to enter guest_io_okay() to find that the PV
kernel did set up an appropriate virtual I/O bitmap to permit access.

While moving the check, alter its representation to be easier to read.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c