mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
ioemu: Do not sue xce_handle directly as a file descriptor.
xce handles are not supposed to be used as file descriptors, but xc_evtchn_fd() be used. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
This commit is contained in:
1 parent
f69a0fcf36
commit
2e83dbdb92
2 files changed
+2
-2
No files matched your search
@@ -381,7 +381,7 @@ static void xencons_startup(void *opaque)
|
||||
qemu_set_fd_handler2(xs_fileno(dom->xsh), NULL, NULL, NULL, NULL);
|
||||
|
||||
fprintf(stderr, "Console: connected to guest frontend\n");
|
||||
if (qemu_set_fd_handler2(dom->xce_handle, NULL, xencons_ring_read, NULL, dom) < 0)
|
||||
if (qemu_set_fd_handler2(xc_evtchn_fd(dom->xce_handle), NULL, xencons_ring_read, NULL, dom) < 0)
|
||||
return;
|
||||
|
||||
qemu_chr_add_handlers(dom->chr, xencons_can_receive, xencons_receive,
|
||||
|
||||
@@ -1160,7 +1160,7 @@ static int xenfb_register_console(struct xenfb *xenfb) {
|
||||
xenfb);
|
||||
dpy_resize(xenfb->ds, xenfb->width, xenfb->height);
|
||||
|
||||
if (qemu_set_fd_handler2(xenfb->evt_xch, NULL, xenfb_dispatch_channel, NULL, xenfb) < 0)
|
||||
if (qemu_set_fd_handler2(xc_evtchn_fd(xenfb->evt_xch), NULL, xenfb_dispatch_channel, NULL, xenfb) < 0)
|
||||
return -1;
|
||||
if (qemu_set_fd_handler2(xs_fileno(xenfb->xsh), NULL, xenfb_dispatch_store, NULL, xenfb) < 0)
|
||||
return -1;
|
||||
|
||||