]> xenbits.xensource.com Git - xen.git/commit
x86emul: correct and extend IDT entry checks
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 14:39:03 +0000 (15:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 14:39:03 +0000 (15:39 +0100)
commitb8534895985cea40bf488d601cbaeb15fc02fde5
treebf7041b365bbcc7528303c836ed4cc4f3b213c59
parent216c2976563d6431de8dfc9db64462a98a100687
x86emul: correct and extend IDT entry checks

In order to pre-determine whether a fault will occur upon software
interrupt injection, it is not sufficient to just check P and DPL. Do
at least all the checks on the IDT entry itself, and in particular do
the #NP check last. The checks for the new CS (and perhaps SS) are left
out for now, though.

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