x86/HVM: make hvmemul_map_linear_addr() honor p2m_ioreq_server
authorJan Beulich <jbeulich@suse.com>
Thu, 15 Nov 2018 12:36:10 +0000 (13:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 Nov 2018 12:36:10 +0000 (13:36 +0100)
commitbfdd5e58763a32afdf04b022e2698d39ae4cf4d6
tree8535826e2020bd0f06c6f520f6ed1c4d82d0a846
parent303cee10a677dd8c5c130e50ddad6517c12e0276
x86/HVM: make hvmemul_map_linear_addr() honor p2m_ioreq_server

Write accesses to p2m_ioreq_server pages should get redirected to the
emulator also when using the mapping approach. Extend the
p2m_is_discard_write() check there, and restrict both to the write
access case (this is just a latent bug as currently we go this route
only for write accesses).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c