From patchwork Wed Jun 15 16:48:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 882682 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5FGp0JO031004 for ; Wed, 15 Jun 2011 16:51:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751696Ab1FOQu5 (ORCPT ); Wed, 15 Jun 2011 12:50:57 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:61786 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305Ab1FOQu5 (ORCPT ); Wed, 15 Jun 2011 12:50:57 -0400 Received: by mail-pz0-f46.google.com with SMTP id 9so395991pzk.19 for ; Wed, 15 Jun 2011 09:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=MXaKKC09CNyWpYki++6po96IFK7nXsCF0Zsa43DxMLw=; b=Gj8Spt/E0DMXU1g7Lo04FZV4au/D5GBs+MzuSMUgHKNW6ZL2m5z22jarkPEUA3+GZj mychvnMUzjfkN+HY4AlV9iFVQZOGFvPQiiz0VeHZJK0dU8ElkMfOwRQev9QHNOKWgzis SWno92XmzsCePQNoT2EW+pocgXJKng696zWzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=La68u+5KQL224fFO3pjGNtGoALC6XLwNN89M8XhvVfj6vAEHM5AMucJcuHbdExh2a2 AsunAY/uaYStFwuCOI2htw1lcbF1kL9PRQhoelU0EaOD5enePpicwRszD4I+vO5YREli s1BU0sOUeRe1l0KrhBk8CzJGgXYASfefr5EEM= Received: by 10.68.44.196 with SMTP id g4mr491197pbm.182.1308156657000; Wed, 15 Jun 2011 09:50:57 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id k4sm363957pbl.11.2011.06.15.09.50.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Jun 2011 09:50:56 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org, Asias He Subject: [PATCH 4/6] kvm tools: Block SIGALRM for ioeventfd thread Date: Thu, 16 Jun 2011 00:48:09 +0800 Message-Id: <1308156491-18488-4-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1308156491-18488-1-git-send-email-asias.hejun@gmail.com> References: <1308156491-18488-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Jun 2011 16:51:00 +0000 (UTC) Signed-off-by: Asias He --- tools/kvm/ioeventfd.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tools/kvm/ioeventfd.c b/tools/kvm/ioeventfd.c index 3a240e4..0683868 100644 --- a/tools/kvm/ioeventfd.c +++ b/tools/kvm/ioeventfd.c @@ -99,6 +99,9 @@ void ioeventfd__del_event(u64 addr, u64 datamatch) static void *ioeventfd__thread(void *param) { + + sig_block(SIGALRM); + for (;;) { int nfds, i;