xen-bus.c (15002921e878e6cf485f655d580733b5319ea015) | xen-bus.c (f6eac904f6825d47adc6102c8d7b59b8ba5b778e) |
---|---|
1/* 2 * Copyright (c) 2018 Citrix Systems Inc. 3 * 4 * This work is licensed under the terms of the GNU GPL, version 2 or later. 5 * See the COPYING file in the top-level directory. 6 */ 7 8#include "qemu/osdep.h" --- 832 unchanged lines hidden (view full) --- 841 return; 842 } 843 844 if (channel->ctx) 845 aio_set_fd_handler(channel->ctx, qemu_xen_evtchn_fd(channel->xeh), true, 846 NULL, NULL, NULL, NULL, NULL); 847 848 channel->ctx = ctx; | 1/* 2 * Copyright (c) 2018 Citrix Systems Inc. 3 * 4 * This work is licensed under the terms of the GNU GPL, version 2 or later. 5 * See the COPYING file in the top-level directory. 6 */ 7 8#include "qemu/osdep.h" --- 832 unchanged lines hidden (view full) --- 841 return; 842 } 843 844 if (channel->ctx) 845 aio_set_fd_handler(channel->ctx, qemu_xen_evtchn_fd(channel->xeh), true, 846 NULL, NULL, NULL, NULL, NULL); 847 848 channel->ctx = ctx; |
849 aio_set_fd_handler(channel->ctx, qemu_xen_evtchn_fd(channel->xeh), true, 850 xen_device_event, NULL, xen_device_poll, NULL, channel); | 849 if (ctx) { 850 aio_set_fd_handler(channel->ctx, qemu_xen_evtchn_fd(channel->xeh), 851 true, xen_device_event, NULL, xen_device_poll, NULL, 852 channel); 853 } |
851} 852 853XenEventChannel *xen_device_bind_event_channel(XenDevice *xendev, 854 unsigned int port, 855 XenEventHandler handler, 856 void *opaque, Error **errp) 857{ 858 XenEventChannel *channel = g_new0(XenEventChannel, 1); --- 265 unchanged lines hidden --- | 854} 855 856XenEventChannel *xen_device_bind_event_channel(XenDevice *xendev, 857 unsigned int port, 858 XenEventHandler handler, 859 void *opaque, Error **errp) 860{ 861 XenEventChannel *channel = g_new0(XenEventChannel, 1); --- 265 unchanged lines hidden --- |