From patchwork Mon Feb 28 09:10:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 594791 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1S9Bcuf007208 for ; Mon, 28 Feb 2011 09:11:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753080Ab1B1JLd (ORCPT ); Mon, 28 Feb 2011 04:11:33 -0500 Received: from mail-gx0-f174.google.com ([209.85.161.174]:36202 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753074Ab1B1JL2 (ORCPT ); Mon, 28 Feb 2011 04:11:28 -0500 Received: by mail-gx0-f174.google.com with SMTP id 8so1438591gxk.19 for ; Mon, 28 Feb 2011 01:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references; bh=3IP5ybN7H+rGwNtOOqTAvP9nKmj+W24BOQyX1dqY/HE=; b=sZ3CcXeqQkNWMmIC9WHVOwIilDzn5qZVEcbrURm5RWo3Di6Wg/8oWufnpBfxYOPUA+ MLAJrgxNaF4kTqviLGcoR3i7V/rrdhRBgBSW9qTJsIc6SLDhQq/Gf40uPl3dMmIuys7T OehaD3BLZfKhVjxNzsYXQn9mEaz4Rb4wGOhcA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=DruhN7sVRkKhmQlM9iowGjtVX3HGhVVkrCCZxJm9HLMl3GI3aczJw05fqc/s0dU8fN xfMsg1ijfl3z19Ft/bg4Qbsftv94oYWpSKTVE253DdsNztDGJuq2tEJXILWm36tnMvvF fXObvYLZ9XyJWzZzHaXfP8vNmwnpWQJ/lHAIA= Received: by 10.236.185.162 with SMTP id u22mr3574810yhm.23.1298884287860; Mon, 28 Feb 2011 01:11:27 -0800 (PST) Received: from localhost.localdomain (93-34-149-100.ip50.fastwebnet.it [93.34.149.100]) by mx.google.com with ESMTPS id 1sm2037209yhl.11.2011.02.28.01.11.25 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 01:11:27 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, aurelien@aurel32.net, blauwirbel@gmail.com, jan.kiszka@siemes.com, mtosatti@redhat.com Subject: [PATCH v3 uq/master 21/22] protect qemu_cpu_kick_self for Win32 Date: Mon, 28 Feb 2011 10:10:23 +0100 Message-Id: <1298884224-19734-22-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> References: <1298884224-19734-1-git-send-email-pbonzini@redhat.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]); Mon, 28 Feb 2011 09:11:38 +0000 (UTC) diff --git a/cpus.c b/cpus.c index e0bcb5c..7559a02 100644 --- a/cpus.c +++ b/cpus.c @@ -867,12 +867,16 @@ void qemu_cpu_kick(void *_env) void qemu_cpu_kick_self(void) { +#ifndef _WIN32 assert(cpu_single_env); if (!cpu_single_env->thread_kicked) { qemu_thread_signal(cpu_single_env->thread, SIG_IPI); cpu_single_env->thread_kicked = true; } +#else + abort(); +#endif } int qemu_cpu_is_self(void *_env)