x86/hvm: remove default ioreq server (again)
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 6 Sep 2018 14:04:51 +0000 (16:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Sep 2018 14:04:51 +0000 (16:04 +0200)
commit2c257bd69a3e667afbc8fd87e2cc855581878026
tree62eb0a751b8091fbcb42b72607cb340b66b4baf8
parenta5f52c3f725f7472d03a116d6ea33c5b5f8619a4
x86/hvm: remove default ioreq server (again)

My recent patch [1] to qemu-xen-traditional removes the last use of the
'default' ioreq server in Xen. (This is a catch-all ioreq server that is
used if no explicitly registered I/O range is targetted).

This patch can be applied once that patch is committed, to remove the
(>100 lines of) redundant code in Xen.

The previous version of this patch caused a QEMU build failure. This has
been fixed by extending the #ifdef around deprecated HVM_PARAM declarations
to __XEN_TOOLS__ as well as __XEN__.

NOTE: The removal of the special case for HVM_PARAM_DM_DOMAIN in
      hvm_allow_set_param() is not directly related to removal of
      default ioreq servers. It could have been cleaned up at any time
      after commit 9a422c03 "x86/hvm: stop passing explicit domid to
      hvm_create_ioreq_server()". It is now added to the new
      deprecated sets introduced by this patch.

[1] https://lists.xenproject.org/archives/html/xen-devel/2018-08/msg00270.html

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/dm.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/ioreq.c
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/hvm/ioreq.h
xen/include/public/hvm/params.h