]> xenbits.xensource.com Git - xen.git/commit
x86emul: correct PUSHF/POPF
authorJan Beulich <jbeulich@suse.com>
Wed, 18 Jan 2017 09:23:10 +0000 (10:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Jan 2017 09:23:10 +0000 (10:23 +0100)
commit57a09d77e81d727d367615ddf48c07b8c7ed0fe7
tree74e24603777f4f69cd60fd0f6cbafb3569981ca1
parent23fc18bf2d679d839f62d81984a44ae7b98f783c
x86emul: correct PUSHF/POPF

Both need to raise #GP(0) when in VM86 mode with IOPL < 3.

Additionally PUSHF is documented to clear VM and RF from the value
placed onto the stack.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: e5c1b8145bccb7fc587ee5b0c95ace6c5e0c7ffd
master date: 2016-12-07 13:55:42 +0100
xen/arch/x86/x86_emulate/x86_emulate.c