x86/hvm: remove hvm_io_pending() check in hvmemul_do_io()
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 23 Jun 2015 16:07:49 +0000 (18:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 23 Jun 2015 16:07:49 +0000 (18:07 +0200)
commit2df1aa01bef7366798248ac6d03cfb42048b003d
tree1397cebde0ba5a11fa7462305f6509aae1f2bb5a
parent3036e653612bac89d5ca6800ef8e0597f2a63a1a
x86/hvm: remove hvm_io_pending() check in hvmemul_do_io()

The check is done at the wrong point (since it is irrelevant if the
I/O is to be handled by the hypervisor) and its functionality can be
covered by returning X86EMUL_UNHANDLEABLE from hvm_send_assist_req()
instead.

This patch also removes the domain_crash() call from
hvm_send_assist_req(). Returning X86EMUL_UNHANDLEABLE allows the
higher layers of emulation to decide what to do instead.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c
xen/include/asm-x86/hvm/hvm.h