diff --git a/hw/ivshmem.c b/hw/ivshmem.c index f4ae0d2b955a23a84433c4c798c01213aae322d1..242fbea3a5043ec3b8ae4d8b3a2c625f535803bd 100644 --- a/hw/ivshmem.c +++ b/hw/ivshmem.c @@ -401,7 +401,7 @@ static void ivshmem_read(void *opaque, const uint8_t * buf, int flags) memcpy(&incoming_posn, buf, sizeof(long)); /* pick off s->server_chr->msgfd and store it, posn should accompany msg */ - tmp_fd = qemu_chr_get_msgfd(s->server_chr); + tmp_fd = qemu_chr_fe_get_msgfd(s->server_chr); IVSHMEM_DPRINTF("posn is %ld, fd is %d\n", incoming_posn, tmp_fd); /* make sure we have enough space for this guest */ diff --git a/monitor.c b/monitor.c index cc1b7be9b61e64bbdd41db1662110165a1c7b529..ada51d0c232e025bd5e1f1cab639358e379fce05 100644 --- a/monitor.c +++ b/monitor.c @@ -2770,7 +2770,7 @@ static int do_getfd(Monitor *mon, const QDict *qdict, QObject **ret_data) mon_fd_t *monfd; int fd; - fd = qemu_chr_get_msgfd(mon->chr); + fd = qemu_chr_fe_get_msgfd(mon->chr); if (fd == -1) { qerror_report(QERR_FD_NOT_SUPPLIED); return -1; diff --git a/qemu-char.c b/qemu-char.c index c0af8f3adef65f87d0f8a9aba99192102a45733d..2075118f6bde2b5c6d1bc6f10eb3fbec30231e8b 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -163,7 +163,7 @@ void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len) s->chr_read(s->handler_opaque, buf, len); } -int qemu_chr_get_msgfd(CharDriverState *s) +int qemu_chr_fe_get_msgfd(CharDriverState *s) { return s->get_msgfd ? s->get_msgfd(s) : -1; } diff --git a/qemu-char.h b/qemu-char.h index 555b5f146608982d7c1f368b30dd3b4ecf81a81f..abd9cbdcbe501b57a7bda731737c53fabf20b621 100644 --- a/qemu-char.h +++ b/qemu-char.h @@ -98,7 +98,7 @@ int qemu_chr_fe_ioctl(CharDriverState *s, int cmd, void *arg); void qemu_chr_generic_open(CharDriverState *s); int qemu_chr_be_can_write(CharDriverState *s); void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len); -int qemu_chr_get_msgfd(CharDriverState *s); +int qemu_chr_fe_get_msgfd(CharDriverState *s); void qemu_chr_accept_input(CharDriverState *s); int qemu_chr_add_client(CharDriverState *s, int fd); void qemu_chr_info_print(Monitor *mon, const QObject *ret_data);