From patchwork Mon Nov 2 13:12:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 11873847 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A0BB92A for ; Mon, 2 Nov 2020 13:13:33 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF30922268 for ; Mon, 2 Nov 2020 13:13:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="g2SX6IO7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF30922268 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.17641.42403 (Exim 4.92) (envelope-from ) id 1kZZdd-0007rW-58; Mon, 02 Nov 2020 13:12:45 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 17641.42403; Mon, 02 Nov 2020 13:12:45 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kZZdd-0007rP-28; Mon, 02 Nov 2020 13:12:45 +0000 Received: by outflank-mailman (input) for mailman id 17641; Mon, 02 Nov 2020 13:12:43 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kZZdb-0007rF-9m for xen-devel@lists.xenproject.org; Mon, 02 Nov 2020 13:12:43 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id e6f08998-ba57-4cb0-b617-e8048056c0f4; Mon, 02 Nov 2020 13:12:42 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 98FD6B8E4; Mon, 2 Nov 2020 13:12:41 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kZZdb-0007rF-9m for xen-devel@lists.xenproject.org; Mon, 02 Nov 2020 13:12:43 +0000 X-Inumbo-ID: e6f08998-ba57-4cb0-b617-e8048056c0f4 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id e6f08998-ba57-4cb0-b617-e8048056c0f4; Mon, 02 Nov 2020 13:12:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1604322761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2E8DyD98Ac4pDiAkzO0onJ0vvorQRsLItcjw4sbcAOA=; b=g2SX6IO7NtiWY/T/JCrKCwH/FknIsXtCCowAfOc8vFserqcrfAErCX8WJX9sMP9dJ332mf 8q2jgNwf1UECS/tlrRK30ZpXHX6FWgeUpGF8msz/YdzLLyt0xvRxwzv4oFlpF6D9gvEkOD u2TTxW6Ye2/aFyx75jZXDsjKJZxCMvE= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 98FD6B8E4; Mon, 2 Nov 2020 13:12:41 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v2 0/2] xen/locking: fix and enhance lock debugging Date: Mon, 2 Nov 2020 14:12:37 +0100 Message-Id: <20201102131239.14134-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 This small series fixes two issues with spinlock debug code and adds lock debug code to rwlocks in order to catch IRQ violations. Juergen Gross (2): xen/spinlocks: spin_trylock with interrupts off is always fine xen/rwlock: add check_lock() handling to rwlocks xen/common/spinlock.c | 17 ++++++++++------- xen/include/xen/rwlock.h | 11 +++++++++++ xen/include/xen/spinlock.h | 2 ++ 3 files changed, 23 insertions(+), 7 deletions(-)