x86emul: fetch all insn bytes during the decode phase
authorJan Beulich <jbeulich@suse.com>
Thu, 29 Sep 2016 10:02:15 +0000 (12:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Sep 2016 10:02:15 +0000 (12:02 +0200)
commit042756fe017c27a1d04cc4cc47c72d148378d032
tree34c55a6882f552b1fb74ff80e733d3dca6c1d4cf
parent65e4f6c0717bd198bc2391e0442c6ad3e1da1b6f
x86emul: fetch all insn bytes during the decode phase

This way we can offer to callers the service of just sizing
instructions, and we also can better guarantee not to raise the wrong
fault due to not having read all relevant bytes.

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