Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3844055ybz; Mon, 20 Apr 2020 10:27:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLS+xaIr0InOElu4PC/gl7OlEqxY08broJil1Ytm4unbgf5UEXmEhgpV9O+XBo0Bw5K/egB X-Received: by 2002:a17:906:c281:: with SMTP id r1mr17460315ejz.310.1587403646715; Mon, 20 Apr 2020 10:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587403646; cv=none; d=google.com; s=arc-20160816; b=x2iOmo3bov6o878ZsATjO7v0o/ISLqDqfTYzZLCDGpcjfxaVJCQX6WxCGNOIvfDF20 mbQLH1iItxIkdFVl3C/bkOTCzk3gyhlcGLSug1g5yBgUyC/VvlyTCrfsi8CzSVWfgroR GhlQj3OsPoYN/80/tkZCj5x0CYMZh+6Z59GxEhPlGez5dqIWzjwJOANcufK+B8T/9GXp eLylT9LZwcCzoSJ7jXo6qNc1XM97F4pSHnWpItlosVzyidcaRHwUBU9lMCAFg4pyujxo 10Gd88ttIq6BmNZTxD3DB4AvpT/Gw79e9MdshB/4QCjx2pUhPVobmvtqbFNPtBHsEycv mkkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=4Wi4I6E0HOoTIiwC/qCL3vbIOZi357RgujrqauiVCgo=; b=RhsfYfcQTedt7ziT5SFGpWv8jkp0yIafkdcz2aH/bI59JXVyeUur5bQ6jNRz4eq6TJ h4zz5RuIkID1/fauED+D9k+YP3KeczgYd4E+qdYgo/d8eKvxMKXAqsE2pf17pke+aIp7 sygelHu6vMx95fbEbJb/XnBBr2ueHJOLxu6zeL+S7usf7rdjW4+BIWD52NsAPqdMAZ5w 8SgR3tagmMjQKUD+5YVNRl5cOnAUxi6+VTH4Ck7PbQx2bdti1nhkPqdC7wYcDNs26AdA v5RPfPAgAjxlFhm6g0ctZCAhO0MVjFSOVh/RbkG0yG80DHDImCSwFyO1Quy1IMZVY5cp FsZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hx9H3O4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si51193edp.118.2020.04.20.10.27.03; Mon, 20 Apr 2020 10:27:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hx9H3O4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbgDTRZe (ORCPT + 99 others); Mon, 20 Apr 2020 13:25:34 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:21328 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726711AbgDTRZd (ORCPT ); Mon, 20 Apr 2020 13:25:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587403533; 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=4Wi4I6E0HOoTIiwC/qCL3vbIOZi357RgujrqauiVCgo=; b=Hx9H3O4+PecACDu9lU1pKPoegTcGxDECulchmzr8CnavF/SstY/VCI02SdkYiP9VDrRRDf VHPrGdhVzKRQGgpy2dSE8PSFy/xGLY9sx1eIFAA2N1cATNBYCSjjADbuuHIecz/d5knrl3 xfIopTPgT9rB0Ky04dPF8F4Z1cOuq0U= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-177-33fWBdtKPqWTEtbE9aYm4w-1; Mon, 20 Apr 2020 13:25:31 -0400 X-MC-Unique: 33fWBdtKPqWTEtbE9aYm4w-1 Received: by mail-wm1-f71.google.com with SMTP id v185so150313wmg.0 for ; Mon, 20 Apr 2020 10:25:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4Wi4I6E0HOoTIiwC/qCL3vbIOZi357RgujrqauiVCgo=; b=pCJlS3H7IQHLNwfqeFudrzXKYe7gHwECm19M77Wkj9ajK2Za1nTI0Ryf4lhqQRRvCP yCkP+gx8HaR/S5dPiNz6reE+qq4ytCSua2K4I0jkrpJBRg8cq3Sf50CwEnYHw5qYdnYv KRZK8GlZIQvep3z3m3OxnhnQBO1aHpKgBI0gaNRprOsIVYYkH3dV19anK/dbrLPOzZPr JIJ/zz1sRx5qzTWckOuBHIpm8jAA/2auaz9tdo6GxymetTRgcvLIO6QZlK+kZQds0sp7 hPpmTR7H3somlzMNB+UpLrGv8G13hKzJ1av7kiT4D9flzZSSOfk8E4nkOEZwYsAOG74C 3Vwg== X-Gm-Message-State: AGi0PuamJS4d/VY/ISSgBlZr95lvghPmNVKS97GBTlbzyluvDXnGvZib MSB6r99hinl2NHQNK1l48eRqsF1SpFRLgpcSHDmS+cYeXFbZVfjXisNk/ajGppZI4KRTUUA6N6Y X4RuNqNy9VctuTjKa1sskESA6 X-Received: by 2002:adf:c109:: with SMTP id r9mr19678375wre.265.1587403530025; Mon, 20 Apr 2020 10:25:30 -0700 (PDT) X-Received: by 2002:adf:c109:: with SMTP id r9mr19678363wre.265.1587403529829; Mon, 20 Apr 2020 10:25:29 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:199a:e5ab:a38c:544c? ([2001:b07:6468:f312:199a:e5ab:a38c:544c]) by smtp.gmail.com with ESMTPSA id h2sm240458wro.9.2020.04.20.10.25.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Apr 2020 10:25:29 -0700 (PDT) Subject: Re: [PATCH v2] kvm: Replace vcpu->swait with rcuwait To: Marc Zyngier , Davidlohr Bueso Cc: tglx@linutronix.de, kvm@vger.kernel.org, Davidlohr Bueso , peterz@infradead.org, torvalds@linux-foundation.org, bigeasy@linutronix.de, linux-kernel@vger.kernel.org, rostedt@goodmis.org, linux-mips@vger.kernel.org, Paul Mackerras , joel@joelfernandes.org, will@kernel.org, kvmarm@lists.cs.columbia.edu References: <20200324044453.15733-1-dave@stgolabs.net> <20200324044453.15733-4-dave@stgolabs.net> <20200420164132.tjzk5ebx35m66yce@linux-p48b> <418acdb5001a9ae836095b7187338085@misterjones.org> From: Paolo Bonzini Message-ID: <22800f1b-3bdb-15b4-7592-93a7b244b45a@redhat.com> Date: Mon, 20 Apr 2020 19:25:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <418acdb5001a9ae836095b7187338085@misterjones.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/04/20 19:12, Marc Zyngier wrote: >> >> >> -??? trace_kvm_vcpu_wakeup(block_ns, waited, vcpu_valid_wakeup(vcpu)); >> +??? trace_kvm_vcpu_wakeup(block_ns, !block_check, >> vcpu_valid_wakeup(vcpu)); > > This looks like a change in the semantics of the tracepoint. Before > this change, 'waited' would have been true if the vcpu waited at all. > Here, you'd have false if it has been interrupted by a signal, even > if the vcpu has waited for a period of time. True, good catch. Perhaps add macros prepare_to_rcuwait and finish_rcuwait? Paolo