From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 096CBC433EF for ; Wed, 27 Oct 2021 15:39:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C960760F5A for ; Wed, 27 Oct 2021 15:39:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C960760F5A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ROkYPDq0caSpLV0FbHceEsBcRaq9OVwgBRgwS8KxLlc=; b=jtjDhIuNyCPO74 69hvaxytgeofG4RnC8BA+/ay8N5QEYI2oe4gfNN5iBRhkuvrIy5QNaqq9YO88MU0icvdDCiGGrdHz mLGox0s5HEPsK5Q/qjzlXBHHl0SrUxQeLpZTST/LJRC2aCk6tOwWPwTOed4+0Rgxt0spdov5OhVGo syy4WYLoFWAnTPn/Gv1ljpLLatsyy1Z2nEgbSDmWkB42kOku4/dIbs3eGhI4ztasgzaJqM56MGJ9H 5R8jMxeSjLGmzlcvimC1wkXjABtFaKAtQfkY3CAg7RwmuVg50rTA67iLZitwGIAys6m4eT/JqW4E1 3mvBtYfbYm9yB52SCPQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfl08-005LMp-Mj; Wed, 27 Oct 2021 15:38:05 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfl04-005LLB-W0 for linux-arm-kernel@lists.infradead.org; Wed, 27 Oct 2021 15:38:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635349080; 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=bSqxXsSY7PzPPy6E5Cy05Nx/OdmHcN1STcnBEYyHdIs=; b=MbMxbXAupMhsOj7n1ORnzGUbt2FJk9mfhs1WY97br91xQhy2gI1grOuvQnxEp6LE0pzRZZ 1ueNqOMlSarkjIx3XpEKw+UEb5n1ek2asuexqFwukbmOUCbHmkd+mobwHsmwa1bWXKCwn1 2CRz2Zv9n8TOyxe7u0sslDWf0CgTm/E= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-374-xKPZPQ--M9aq-6HwpDZyyg-1; Wed, 27 Oct 2021 11:37:58 -0400 X-MC-Unique: xKPZPQ--M9aq-6HwpDZyyg-1 Received: by mail-ed1-f72.google.com with SMTP id z20-20020a05640240d400b003dce046ab51so2677164edb.14 for ; Wed, 27 Oct 2021 08:37:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=bSqxXsSY7PzPPy6E5Cy05Nx/OdmHcN1STcnBEYyHdIs=; b=xB/WishVf4ff6E4FEgUHSATexJllKkDaCl8xdk6THO8a4khcjyaQ8qRRo6kn/tIEFx lxUaZuA/e7tuM+PR8ISn2qv3P4nyTWCmjIZAdqyhSPSBVTkg2ij/0tFZpPajTRuQBBRM 0VMs+0YQBuajH9V8sXmE/Br9L0kx4YbR7ORTNw2Awgm11gZ9C7XpK2qRF616dorQqdeJ /x9D2uxr/isjOoQXaRtfRAs5VVMQtXgW6u5jczaY3uL3QWPkn2DgiZgD5EpB/e9mzT2y uXiKxMmPPQyPa/QcGFWvDiZZ8QyH9T/BhMwEAT10Vz4pOKCsp1yBG2Lqd6irq4I9pXQY cj7Q== X-Gm-Message-State: AOAM5310X/f0Yaq4yE9PIiwvg7/pllaIRnqr4LGmOKf80bJRzSQHUNY2 i/ykPTKngz1B61w4C9o078AFHUSVEfEpi1t/+6mFEaEpUVW6fxooecVMKGFa1WwPukzSC0UJBM7 RV4Lki/HUQgMwAkK2WyTQtOCKZn7pUkoNHEM= X-Received: by 2002:a05:6402:520f:: with SMTP id s15mr19650598edd.376.1635349077573; Wed, 27 Oct 2021 08:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcV3ajcrSuCCBMr6jO83QbO8KNKYMvLx5Z90JLfoEGGYsQl7acheIlREFbLHWM9uSofWHX3A== X-Received: by 2002:a05:6402:520f:: with SMTP id s15mr19650552edd.376.1635349077353; Wed, 27 Oct 2021 08:37:57 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id h7sm218074edt.37.2021.10.27.08.37.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 08:37:56 -0700 (PDT) Message-ID: <5b8f554b-5bbc-e257-12d0-800ec82489d0@redhat.com> Date: Wed, 27 Oct 2021 17:37:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH v2 00/43] KVM: Halt-polling and x86 APICv overhaul To: Sean Christopherson Cc: Marc Zyngier , Huacai Chen , Aleksandar Markovic , Paul Mackerras , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , James Morse , Alexandru Elisei , Suzuki K Poulose , Atish Patra , David Hildenbrand , Cornelia Huck , Claudio Imbrenda , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, David Matlack , Oliver Upton , Jing Zhang References: <20211009021236.4122790-1-seanjc@google.com> <614858dd-106c-64cc-04bc-f1887b2054d1@redhat.com> From: Paolo Bonzini In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211027_083801_140452_AA678165 X-CRM114-Status: GOOD ( 13.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 27/10/21 17:28, Sean Christopherson wrote: > On Wed, Oct 27, 2021, Paolo Bonzini wrote: >> On 27/10/21 16:41, Sean Christopherson wrote: >>> The other thing I don't like about having the WARN in the loop is that it suggests >>> that something other than the vCPU can modify the NDST and SN fields, which is >>> wrong and confusing (for me). >> >> Yeah, I can agree with that. Can you add it in a comment above the cmpxchg >> loop, it can be as simple as >> >> /* The processor can set ON concurrently. */ >> >> when you respin patch 21 and the rest of the series? > > I can definitely add a comment, but I think that comment is incorrect. It's completely backwards indeed. I first had "the hardware" and then shut down my brain for a second to replace it. > So something like this? > > /* ON can be set concurrently by a different vCPU or by hardware. */ Yes, of course. Paolo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel