x86/evtchn: Restrict the ops usable in do_event_channel_op_compat()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jul 2017 14:21:46 +0000 (15:21 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 19 Jul 2017 09:16:05 +0000 (10:16 +0100)
commitab48596654ca20bd45eee4bdc1252188e9beb5a5
tree6b2547f9ef43d29b09c19fd29b979f49a374a768
parentf9e093b26a65360ff213968343e8c8d4973cf98c
x86/evtchn: Restrict the ops usable in do_event_channel_op_compat()

This hypercall is unused by guests these days, but there was no prevention of
usable subops.  The following ops have been restricted, as there is no
suitable structure in the evntchn_op union.

  EVTCHNOP_reset
  EVTCHNOP_init_control
  EVTCHNOP_expand_array
  EVTCHNOP_set_priority

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/compat.c