summaryrefslogtreecommitdiff
path: root/include/xen/hvm.h
diff options
context:
space:
mode:
authorJane Malalane <jane.malalane@citrix.com>2022-07-29 10:04:16 +0300
committerJuergen Gross <jgross@suse.com>2022-08-12 12:28:21 +0300
commitb1c3497e604ddccea5af4071831ed0e4680fb35e (patch)
tree108b8bd765f1e0496592013bb988ac329ca19de9 /include/xen/hvm.h
parent251e90e7e346a23742b90e2c4db19d322e071d99 (diff)
downloadlinux-b1c3497e604ddccea5af4071831ed0e4680fb35e.tar.xz
x86/xen: Add support for HVMOP_set_evtchn_upcall_vector
Implement support for the HVMOP_set_evtchn_upcall_vector hypercall in order to set the per-vCPU event channel vector callback on Linux and use it in preference of HVM_PARAM_CALLBACK_IRQ. If the per-VCPU vector setup is successful on BSP, use this method for the APs. If not, fallback to the global vector-type callback. Also register callback_irq at per-vCPU event channel setup to trick toolstack to think the domain is enlightened. Suggested-by: "Roger Pau Monné" <roger.pau@citrix.com> Signed-off-by: Jane Malalane <jane.malalane@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Link: https://lore.kernel.org/r/20220729070416.23306-1-jane.malalane@citrix.com Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'include/xen/hvm.h')
-rw-r--r--include/xen/hvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/xen/hvm.h b/include/xen/hvm.h
index b7fd7fc9ad41..8da7a6747058 100644
--- a/include/xen/hvm.h
+++ b/include/xen/hvm.h
@@ -60,4 +60,6 @@ static inline int hvm_get_parameter(int idx, uint64_t *value)
void xen_setup_callback_vector(void);
+int xen_set_upcall_vector(unsigned int cpu);
+
#endif /* XEN_HVM_H__ */