x86/pv: Check that emulate_privileged_op() don't change any unexpected flags
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Jan 2017 20:05:36 +0000 (20:05 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 16 Jan 2017 17:37:26 +0000 (17:37 +0000)
commite5c98b0e6059b8a108ef78ec4448c91af1f8232b
treeb1b015d1b6dcae39b7cc30ff6ab2dc155e79d95c
parent9b1f6622b68145931d6ff93ff4f37e6666bbcae1
x86/pv: Check that emulate_privileged_op() don't change any unexpected flags

No bits, other than arithmetic ones and the resume flag (which will most
likely change from 1 to 0), can be changed by the instructions we permit.
Extend the check to cover other flags.

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