Message ID | 20181019010625.25294-26-cota@braap.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=braap.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=braap.org header.i=@braap.org header.b="ybK7POMg"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="UkmEhtCB"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42bp3t6qmNz9sC2 for <incoming@patchwork.ozlabs.org>; Fri, 19 Oct 2018 12:19:37 +1100 (AEDT) Received: from localhost ([::1]:45947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1gDJRu-0007Cs-L9 for incoming@patchwork.ozlabs.org; Thu, 18 Oct 2018 21:19:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cota@braap.org>) id 1gDJFc-0004eY-44 for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cota@braap.org>) id 1gDJFZ-00035a-NQ for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:51 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:49825) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <cota@braap.org>) id 1gDJFY-0002nk-V2 for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:49 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B221C2294F; Thu, 18 Oct 2018 21:06:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 Oct 2018 21:06:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references; s= mesmtp; bh=JvwE5Dx5huodGmx+90ng1+B3ubbNnAGaUCFjtM6PjIE=; b=ybK7P OMgcnjUG8XBb101iZpyOu1bEsYJbqVK1URMs+u/Uy0mLnFEE9cRNs8Dhz+22hQ2b RV9O1781tP7h3mvTs9yVhPH8S27VMHwR8+iJxm3HXjkIIx4Rr8Kug3LTvpaa+Yz8 iSvoPlh/qnMjbx6Ix1eqrvKEv6LQJBeif4XdIs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=JvwE5Dx5huodGmx+90ng1+B3ubbNn AGaUCFjtM6PjIE=; b=UkmEhtCBbWXwiv4/9HjqUOpUDF94st9bc2li9voIZjaLa +gf/8qfdooxkpmIw73FG5RxwfR6jGDIIVkblziYxyNhN1fbSK4ZdIldYyZN50ikO o3fPxoji8u/5X2fKnN1oyxM6DU9e6jR1/qfEcCIu8/qQYcb+tmLOYAOSzaaSDCJy jP8a1iI+DWBsbEkkwrTpbeWvJ2uL4mKPEmGDC7zJN4WexM34X2MMuIszb7UeqmQH 8NCmGqoLZPJ3bTng5DUfNrYBM7kam5DCNndf3TrT7qBmipgama5+LcRzQzmf7UWQ JjmNAeCtM5zEFyPRfygXw3dLlI51g1xRBIonijd/w== X-ME-Sender: <xms:Fy7JW7rPKMnKNXxQ76C2eQj26TMP4Eef20eYKkWsrg0SRW2G-8AEmQ> X-ME-Proxy: <xmx:Fy7JW4GiYaAuqDK0LQULruQbLfJLQSwjiVdnp6_NNfaDTdmcrY_K-w> <xmx:Fy7JW2pM8Xhp4g2C-toE5fPoBtCkvBr8d-r32PASlqlbGcj-5kM6Qw> <xmx:Fy7JW-O86gOR-kPjTJa8Sd5wDpfPj2uGwTfDpLf6df_Dk09XFeTxkg> <xmx:Fy7JW2pBd2mscyaudMRUiEGneuGckX3vw2aBaGCo6MrUb5T-GDUayg> <xmx:Fy7JW0lXpUXnPRdsjEqvueOzKfW3vuf2Org5vNTda_P6JsHQPgSv1w> <xmx:Fy7JWx3R6oVWMZ-qPoKjChrqRgsFW3Z7GZphJXm0C2NjxXld2PZIWA> Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 66041102DE; Thu, 18 Oct 2018 21:06:31 -0400 (EDT) From: "Emilio G. Cota" <cota@braap.org> To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 21:05:54 -0400 Message-Id: <20181019010625.25294-26-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181019010625.25294-1-cota@braap.org> References: <20181019010625.25294-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 Subject: [Qemu-devel] [RFC v3 25/56] exec: use cpu_reset_interrupt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <rth@twiddle.net>, Peter Crosthwaite <crosthwaite.peter@gmail.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
per-CPU locks
|
expand
|
On 10/19/18 2:05 AM, Emilio G. Cota wrote: > - cpu->interrupt_request &= ~0x01; > + cpu_reset_interrupt(cpu, ~0x01); cpu_reset_interrupt(cpu, 1); Although this is during vmload, and I'm not sure what locks you really want to play with here. Perhaps it's ok... r~
On Sun, Oct 21, 2018 at 14:17:01 +0100, Richard Henderson wrote: > On 10/19/18 2:05 AM, Emilio G. Cota wrote: > > - cpu->interrupt_request &= ~0x01; > > + cpu_reset_interrupt(cpu, ~0x01); > > cpu_reset_interrupt(cpu, 1); Ouch. Fixed. > Although this is during vmload, and I'm not sure what locks you really want to > play with here. Perhaps it's ok... I checked with check-qtest that it's OK -- note that the lock is initialized right after the CPU thread is created. I'd like to keep the locked version, so that race checkers don't get confused. Thanks, Emilio
diff --git a/exec.c b/exec.c index 4fd831ef06..6006902975 100644 --- a/exec.c +++ b/exec.c @@ -776,7 +776,7 @@ static int cpu_common_post_load(void *opaque, int version_id) /* 0x01 was CPU_INTERRUPT_EXIT. This line can be removed when the version_id is increased. */ - cpu->interrupt_request &= ~0x01; + cpu_reset_interrupt(cpu, ~0x01); tlb_flush(cpu); /* loadvm has just updated the content of RAM, bypassing the
Cc: Peter Crosthwaite <crosthwaite.peter@gmail.com> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Emilio G. Cota <cota@braap.org> --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)