Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp484961ybz; Tue, 21 Apr 2020 12:56:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJpem6ZbPkjE5KP3KfS0a86cgVQqGqUU0shK76bPR0Na/lzV/gK358/tUY5iyArZVuK8PCK X-Received: by 2002:a17:906:9494:: with SMTP id t20mr22016029ejx.51.1587499018816; Tue, 21 Apr 2020 12:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587499018; cv=none; d=google.com; s=arc-20160816; b=z+/uV+sn5KLkS/kYVJ7111elKafym/Ti682GdUZJIv/DjBBsVMcf/fVIAqspy/kcjw jCQK5emL5qxaIZZY+8tUtHK0Lyl4bSqx8pbGzwRVIGrLPbevdcPbkHGiEvmmQdDi+K0u fzN8DP0+6mWpxWDnUI0qPpWAZsmfiUwa7lv77T21AVVRnKElU4msw6namVwgNeBs/qnD czDuoIlLG2iGbxBo8S+nJAaXp5yJ6L7QUsjlrEbdlIbMYs2nnP26A8aPT0hG5p8lZnUg ZI4A5cFeY6AW7I/FE3LmNXjtojcQSyScku2xWp78wkmgRRJXf2qe9tPL9dBrVZSHA5Wy 2i7A== 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=TTdCjw+xJyiyOVepRoiBzPpX6UPTHW6RSy1+eF5nCoY=; b=MpgjRola8n/At+2/r/HaWU+4wN+q1K8oJVO9Kc/9iotBVKFUacpmHERCajewi0Vo8I nbweAVnavrTYMUdyjuzhFtzc3RAbKF/3Rq3uZcTaFgBgMWSwQJoQR3UyyO7rMo2Ek/r4 IhXsRn4nKtF+QmZXR2dvWOBUDvrQds275MXExt89KUiz026SP8XuP0J0uvWUD4nh70dm QT/S28R/gc9pbg5lBoqHgirNfnVAdeVk9oEgAFchOqaRdLItRL/SagNNzhjzzF6CBQ0T Q69WbNlDEIBJc/UWg30umDTV7BZpTiaelwgx1TPB0WJLPASwi4JupmgxegRr1R+GPUyE d+pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OKA7Cqag; 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 ec15si2327430ejb.286.2020.04.21.12.56.35; Tue, 21 Apr 2020 12:56:58 -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=OKA7Cqag; 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 S1726284AbgDUTw6 (ORCPT + 99 others); Tue, 21 Apr 2020 15:52:58 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:59647 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726039AbgDUTw5 (ORCPT ); Tue, 21 Apr 2020 15:52:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587498772; 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=TTdCjw+xJyiyOVepRoiBzPpX6UPTHW6RSy1+eF5nCoY=; b=OKA7CqagVR8YJzhv3BP5d/4LXlmwR9B72PI+za5vSt9aKcCss+YcZnwM860ZfhQj0DUAN+ Sg+yHE6uGqfnoYoutwIEYKkeQRqSURHX1c6Pvo6v7SQ5U4jTEF1zR6+usFdfwtfCN4o2XT 02ioOqsbExewzZlU6whFtbws/Yd3K0A= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-245-oJhYh3o-OV-v8nhpARUK3w-1; Tue, 21 Apr 2020 15:52:50 -0400 X-MC-Unique: oJhYh3o-OV-v8nhpARUK3w-1 Received: by mail-wr1-f70.google.com with SMTP id s11so8287246wru.6 for ; Tue, 21 Apr 2020 12:52:50 -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=TTdCjw+xJyiyOVepRoiBzPpX6UPTHW6RSy1+eF5nCoY=; b=XZBGfs4gy8T/H5OVJ+3akMjYL4YlLn6RVeQRPzphR1Sd5xE95RTfkelXFbNTcXkfUx KEMsQcEXq0hyZEaXyFjEbjDNTQtyn8jZa+FX/VMYkEupUnXjmdBSjQNPr9NKLEMDqWqJ z2CMj2ZYkD0vIlzqUph0C5i8ZMgbhglpbvNBlyTyTFsKz86KPdC1Y38FqN7h85YjCzWi ZbSCuOv2lVZ1fbwdTcVYHNJk0oXq12whtaPD/XEXINW4BNN0Y1IKLpduZOeYzMtH70XO /FGYGTW2DoubKm8Dhz/gqbxkHCp20Vr70vFNXXxZqwtF2xHmPQQIZdczsEufSTr1IzEa 3IJQ== X-Gm-Message-State: AGi0Pubj7tOZ2GUlTryjIDSezXh0f52uHC8LZt1a+Gaxx1ABHedboCuu b+6ipS0CQlANFlVB6Fk+2wQo+VWCUg7L0ZNQ2j5DFTelpE6XPpCYtSCRnWmN9Mbr5Lq3N9s8XtA aC6L5Um0G+UmosaVtDt6LvX7e X-Received: by 2002:adf:bc05:: with SMTP id s5mr25183111wrg.70.1587498769683; Tue, 21 Apr 2020 12:52:49 -0700 (PDT) X-Received: by 2002:adf:bc05:: with SMTP id s5mr25183091wrg.70.1587498769480; Tue, 21 Apr 2020 12:52:49 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:f43b:97b2:4c89:7446? ([2001:b07:6468:f312:f43b:97b2:4c89:7446]) by smtp.gmail.com with ESMTPSA id 5sm4473852wmg.34.2020.04.21.12.52.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Apr 2020 12:52:48 -0700 (PDT) Subject: Re: [PATCH v2] kvm: Replace vcpu->swait with rcuwait To: Davidlohr Bueso Cc: Marc Zyngier , 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> <20200420205641.6sgsllj6pmsnwrvp@linux-p48b> <20200420215014.sarodevmhphnkkn7@linux-p48b> <02e1b00d-a8ea-a947-bbe6-0b1380aa7ec4@redhat.com> <20200421180733.xrl5ta6cuo2weuva@linux-p48b> From: Paolo Bonzini Message-ID: Date: Tue, 21 Apr 2020 21:52:47 +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: <20200421180733.xrl5ta6cuo2weuva@linux-p48b> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/04/20 20:07, Davidlohr Bueso wrote: >> > > I should have looked closer here - I was thinking about the return > value of rcuwait_wait_event. Yes, that signal_pending check you > mention makes the sleep semantics change bogus as interruptible is no > longer just to avoid contributing to the load balance. > > And yes, unfortunately adding prepare_to and finish_rcuwait() looks > like the most reasonable approach to keeping the tracepoint > semantics. I also considered extending rcuwait_wait_event() by > another parameter to pass back to the caller if there was any wait at > all, but that enlarges the call and is probably less generic. Yes, at some point the usual prepare_to/finish APIs become simpler. > I'll send another version keeping the current sleep and tracepoint > semantics. Thanks---and sorry, I should have noticed that way earlier. Paolo