From patchwork Wed Nov 4 08:15:46 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: 11879809 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 8837B921 for ; Wed, 4 Nov 2020 08:16:30 +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 42927206C0 for ; Wed, 4 Nov 2020 08:16:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="n6NChhe8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42927206C0 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.18836.43862 (Exim 4.92) (envelope-from ) id 1kaDxT-0000Rb-Ug; Wed, 04 Nov 2020 08:15:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 18836.43862; Wed, 04 Nov 2020 08:15:55 +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 1kaDxT-0000RU-Qm; Wed, 04 Nov 2020 08:15:55 +0000 Received: by outflank-mailman (input) for mailman id 18836; Wed, 04 Nov 2020 08:15:54 +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 1kaDxS-0000Pk-3t for xen-devel@lists.xenproject.org; Wed, 04 Nov 2020 08:15:54 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 06b591f8-6124-46e8-9693-126333d10666; Wed, 04 Nov 2020 08:15:51 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4DA8DACB6; Wed, 4 Nov 2020 08:15:51 +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 1kaDxS-0000Pk-3t for xen-devel@lists.xenproject.org; Wed, 04 Nov 2020 08:15:54 +0000 X-Inumbo-ID: 06b591f8-6124-46e8-9693-126333d10666 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 06b591f8-6124-46e8-9693-126333d10666; Wed, 04 Nov 2020 08:15:51 +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=1604477751; 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=t0nui2j85lczmOaB6wvrDxMdOES61kNj5LWlu/C7qc0=; b=n6NChhe8h/R0Eli5x84sYWWmkbcjIZvdWwYZY/We62l16UTqmbbV7McACk35CFCye39EMF kp4CBCXxdsBCHFC0dpUPqrja7jnhBS2SVV1RlgxYWMmqHY2OxYi/I6hl9+m9XCXpdd3+0b udN9I2E78uWUwIWzuor4bj5rfnuWG5I= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4DA8DACB6; Wed, 4 Nov 2020 08:15:51 +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 v3 0/3] xen/locking: fix and enhance lock debugging Date: Wed, 4 Nov 2020 09:15:46 +0100 Message-Id: <20201104081549.3712-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 (3): xen/spinlocks: spin_trylock with interrupts off is always fine xen/locking: harmonize spinlocks and rwlocks regarding preemption xen/rwlock: add check_lock() handling to rwlocks xen/common/spinlock.c | 22 ++++++++++++++-------- xen/include/xen/rwlock.h | 15 +++++++++++++++ xen/include/xen/spinlock.h | 2 ++ 3 files changed, 31 insertions(+), 8 deletions(-)