x86/pv: Fix determination of 64bit mode in emulate_privilege_op()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Jan 2017 11:23:15 +0000 (11:23 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Jan 2017 12:22:55 +0000 (12:22 +0000)
commitf4e8c6539a60df0f710722f303272bafc55bd31d
treebcaa8baad76525ea72f6013589929280bf08a285
parentf65c1290c0dc122df3ae88a5cf44da99554a6711
x86/pv: Fix determination of 64bit mode in emulate_privilege_op()

ctxt->addr_size is expressed in bits rather than bytes, and has the value 16,
32 or 64.  Comparing < 8 made the intended non-64bit paths dead.

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