[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC v1 48/74] x86/guest: unmask console event channel
From: Roger Pau Monne <roger.pau@xxxxxxxxxx> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> --- To be squashed with "x86/guest: use PV console for Xen/Dom0 I/O" --- xen/drivers/char/xen_pv_console.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/drivers/char/xen_pv_console.c b/xen/drivers/char/xen_pv_console.c index 5e494bc72a..2df7d982ba 100644 --- a/xen/drivers/char/xen_pv_console.c +++ b/xen/drivers/char/xen_pv_console.c @@ -37,6 +37,7 @@ static DEFINE_SPINLOCK(tx_lock); void __init pv_console_init(void) { + struct evtchn_unmask unmask; long r; uint64_t raw_pfn = 0, raw_evtchn = 0; @@ -58,6 +59,9 @@ void __init pv_console_init(void) cons_ring = (struct xencons_interface *)fix_to_virt(FIX_PV_CONSOLE); cons_evtchn = raw_evtchn; + unmask.port = raw_evtchn; + BUG_ON(xen_hypercall_event_channel_op(EVTCHNOP_unmask, &unmask)); + printk("Initialised PV console at 0x%p with pfn %#lx and evtchn %#x\n", cons_ring, raw_pfn, cons_evtchn); return; -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |