xen/events: add struct evtchn_ops for the low-level port operations

evtchn_ops contains the low-level operations that access the shared
data structures.  This allows alternate ABIs to be supported.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
这个提交包含在:
David Vrabel
2013-03-14 12:49:19 +00:00
提交者 Konrad Rzeszutek Wilk
父节点 9a489f45a1
当前提交 ab9a1cca3d
修改 3 个文件,包含 84 行新增16 行删除

查看文件

@@ -61,6 +61,8 @@
#include "events_internal.h"
const struct evtchn_ops *evtchn_ops;
/*
* This lock protects updates to the following mapping and reference-count
* arrays. The lock does not need to be acquired to read the mapping tables.
@@ -1523,6 +1525,8 @@ void __init xen_init_IRQ(void)
{
int i;
xen_evtchn_2l_init();
evtchn_to_irq = kcalloc(NR_EVENT_CHANNELS, sizeof(*evtchn_to_irq),
GFP_KERNEL);
BUG_ON(!evtchn_to_irq);