Re: [PATCH 5/5] ioeventfd: Introduce KVM_IOEVENTFD_FLAG_SOCKET

Avi Kivity
2011-07-25T13:04:14Z

On 07/25/2011 03:26 PM, Sasha Levin wrote:
> >
> > You can't block when a signal is pending. You can block, however, after
> > you've exited with -EINTR and re-entered.
> >
>
> What would happen with the MMIO then? I need to provide an answer before
> I leave the read/write functions to exit with -EINTR, no?

If you exit, no result is needed until you reenter. You just have to
remember that on the next KVM_RUN, instead of running the vcpu, you have
to talk to the socket (either write or read, depending on where the
signal got you).

--
error compiling committee.c: too many arguments to function