x86emul: generalize invlpg() hook
authorJan Beulich <jbeulich@suse.com>
Tue, 3 Sep 2019 12:49:52 +0000 (14:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Sep 2019 12:49:52 +0000 (14:49 +0200)
commit749c6e3c0e733a3f18d9c7d9f903122b620157c3
tree121b2afb6d57530ab5a536a69de6c5decd1a1ca5
parent4d4fec207b472a7483483b99c3d94537b06cddad
x86emul: generalize invlpg() hook

The hook is already in use for INVLPGA as well. Rename the hook and add
parameters. For the moment INVLPGA with a non-zero ASID remains
unsupported, but the TODO item gets pushed into the actual hook handler.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/fuzz/x86_instruction_emulator/fuzz-emul.c
xen/arch/x86/hvm/emulate.c
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h