static void qemu_event_read(void *opaque)

{

    int fd = (intptr_t)opaque;

    ssize_t len;

    char buffer[512];



    /* Drain the notify pipe.  For eventfd, only 8 bytes will be read.  */

    do {

        len = read(fd, buffer, sizeof(buffer));

    } while ((len == -1 && errno == EINTR) || len == sizeof(buffer));

}

static void qemu_event_read(void *opaque)

{

    int fd = (intptr_t)opaque;

    ssize_t len;

    char buffer[512];



    

    do {

        len = read(fd, buffer, sizeof(buffer));

    } while ((len == -1 && errno == EINTR) || len == sizeof(buffer));

}

static void FUNC_0(void *VAR_0)

{

    int VAR_1 = (intptr_t)VAR_0;

    ssize_t len;

    char VAR_2[512];



    

    do {

        len = read(VAR_1, VAR_2, sizeof(VAR_2));

    } while ((len == -1 && errno == EINTR) || len == sizeof(VAR_2));

}

static void FUNC_0(void *VAR_0)
{ int VAR_1 = (intptr_t)VAR_0; ssize_t len; char VAR_2[512]; do { len = read(VAR_1, VAR_2, sizeof(VAR_2)); } while ((len == -1 && errno == EINTR) || len == sizeof(VAR_2)); }