From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 5/5] ioeventfd: Introduce KVM_IOEVENTFD_FLAG_SOCKET Date: Mon, 25 Jul 2011 16:04:01 +0300 Message-ID: <4E2D69C1.1000208@redhat.com> References: <1309927078-5983-1-git-send-email-levinsasha928@gmail.com> <1309927078-5983-5-git-send-email-levinsasha928@gmail.com> <20110706114203.GA18368@redhat.com> <1309964506.15123.13.camel@sasha> <20110706155135.GA21638@redhat.com> <1310276083.2393.6.camel@sasha> <20110710080559.GC1630@redhat.com> <1310469824.2393.22.camel@sasha> <4E1C2F59.90600@redhat.com> <4E1D442E.6090308@redhat.com> <1311595829.10256.7.camel@lappy> <4E2D5E96.60806@redhat.com> <1311596766.10256.9.camel@lappy> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Pekka Enberg , "Michael S. Tsirkin" , kvm@vger.kernel.org, Ingo Molnar , Marcelo Tosatti To: Sasha Levin Return-path: Received: from mx1.redhat.com ([209.132.183.28]:47302 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139Ab1GYNEO (ORCPT ); Mon, 25 Jul 2011 09:04:14 -0400 In-Reply-To: <1311596766.10256.9.camel@lappy> Sender: kvm-owner@vger.kernel.org List-ID: 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