Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB0A7C6FD18 for ; Wed, 29 Mar 2023 11:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbjC2LwS (ORCPT ); Wed, 29 Mar 2023 07:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjC2LwQ (ORCPT ); Wed, 29 Mar 2023 07:52:16 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1F86B3 for ; Wed, 29 Mar 2023 04:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680090687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hsG/IsiG3YfNPPudBRiL48bBj3TG6pU/JFoXkZ4JFlI=; b=V5s16p5omT819YV7VbzbUvlIvc6SgDRhzVLTcwVYUcOPSl4tEZtMh5dJcbww6H4IAwPjpq NoxGbKhp+r5WpllmWMl4oFNDWXm0olLFQcu3+2hPsStzhcEbpkOIY+Z7izQm3lmMesMvYf HDh3FSB4bMekqb/VAJou3a1ftRxd8ZM= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-fFB3jKpnNZ2RuCfI6a5p3Q-1; Wed, 29 Mar 2023 07:51:25 -0400 X-MC-Unique: fFB3jKpnNZ2RuCfI6a5p3Q-1 Received: by mail-ed1-f72.google.com with SMTP id s30-20020a508d1e000000b005005cf48a93so21857773eds.8 for ; Wed, 29 Mar 2023 04:51:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680090684; x=1682682684; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hsG/IsiG3YfNPPudBRiL48bBj3TG6pU/JFoXkZ4JFlI=; b=mpoNUjmrZvh6mlGAR4t/hOGkefcBLhFqfkt1RaT706Pfg1rxkpHutKa2x07jYwyHxr dra/J+1A1txTHOa0fXmQde1WzPqgmt+z5wU9e0tfxFvTM5vQImDCt3D2Eq/UzJzEGLTM 4GeDs9sMjMlB7DjpVkDE4xaA6tpU94k+ymInLOBPfA9hghvo46pANTVhU92aLvQlQKEg I4pdST+HNX01eMnRDLV5OvVGgoZHHkyeejjWWtT4M37Gwhgcnb1O/N1tX/RYNVjCNZBs Rc+y5hmgezm7AjBHWoHBbvxUP5CfwHPz+kTbfRjC2Tk8KaChKhEBtJMlE4zBrJ1WkmEz Npfg== X-Gm-Message-State: AAQBX9fHjQj1J1KjBipMf1Bisq6A0GGGN0Wqq92JHm4TZY6qOgkIxPzF V60dooSjXWUqALNPuQXM4YM9hBGzAg/CD2vTXLA95eTAE4E2idXhUV/ocpDyJl/+3G2UWf8oR20 I4DwkG44Ecc5k X-Received: by 2002:a17:907:1628:b0:88f:8a5:b4cd with SMTP id hb40-20020a170907162800b0088f08a5b4cdmr26306270ejc.1.1680090684788; Wed, 29 Mar 2023 04:51:24 -0700 (PDT) X-Google-Smtp-Source: AKy350Y+Qr69YtNXE48+iPelapxA7fisyf2qbyc27fubwM9iEFn6cFwHXzyyCcqd+msXRQS/S5HrGQ== X-Received: by 2002:a17:907:1628:b0:88f:8a5:b4cd with SMTP id hb40-20020a170907162800b0088f08a5b4cdmr26306251ejc.1.1680090684535; Wed, 29 Mar 2023 04:51:24 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id f3-20020a17090624c300b0092a59ee224csm16331051ejb.185.2023.03.29.04.51.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 04:51:24 -0700 (PDT) Message-ID: <75ae80f7-b86e-3380-b3da-0e2201df4b7f@redhat.com> Date: Wed, 29 Mar 2023 13:51:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: Yan Zhao , Sean Christopherson Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230313111022.13793-1-yan.y.zhao@intel.com> From: Paolo Bonzini Subject: Re: [PATCH v3] KVM: VMX: fix lockdep warning on posted intr wakeup In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 3/29/23 03:53, Yan Zhao wrote: > Yes, there's no actual deadlock currently. > > But without fixing this issue, debug_locks will be set to false along > with below messages printed. Then lockdep will be turned off and any > other lock detections like lockdep_assert_held()... will not print > warning even when it's obviously violated. Can you use lockdep subclasses, giving 0 to the sched_in path and 1 to the sched_out path? Paolo