x86/guest: setup event channel upcall vector
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 9 Jan 2018 12:51:37 +0000 (12:51 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 16 Jan 2018 18:34:04 +0000 (18:34 +0000)
commit010e95e399b8c4647376aff0df97a997249d4f77
tree20e96435ed7489fdf0b8b3206d66b1a04032a523
parent1557ebd8633e7be8ea3c1738a686463b6b1666ac
x86/guest: setup event channel upcall vector

And a dummy event channel upcall handler.

Note that with the current code the underlying Xen (L0) must support
HVMOP_set_evtchn_upcall_vector or else event channel setup is going to
fail. This limitation can be lifted by implementing more event channel
interrupt injection methods as a backup.

Register callback_irq to trick toolstack to think the domain is
enlightened.

Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/guest/xen.c
xen/include/asm-x86/guest/hypercall.h