Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp889269pxb; Wed, 27 Oct 2021 14:32:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/thuLcawx6axiN4KhGJ47aJ3Pexck81YEvU8pBgXIg79Uvmpjazbzlft+LkyLwRC8ZRqZ X-Received: by 2002:a17:907:160a:: with SMTP id hb10mr71047ejc.293.1635370232015; Wed, 27 Oct 2021 14:30:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370232; cv=none; d=google.com; s=arc-20160816; b=JiU7GrXbLiY33oRnfsbN2DOqL84NC1TyBOYLUfYSEjkZRGzElDqbANxftmxBez39+E 1ZFShTKwK8oa6ppmINys1TIO4wmIAahCZNVQ6G0pUEHgctosZeP9FXN6fyH7Wh9bQypm vUoAe3KHHxWbzw2XtodauEZNir40/l5S3nO0F9TmmOuPXWmVHpeHs6pvWZ1Am9EfyvEY Z8YcXR3jCDY4vjuKdQlhqGYu1go9Co6ygF1jCXNeUpJhNLStauwx1OyL4Tp/z7T+WzUW 46MIGEDkv0qZIl2/iKa3JWrBXDUkFzVlM6OMtCJKfYMERdbu+MlBWWNNx/5s3qckT6dv tijw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bSqxXsSY7PzPPy6E5Cy05Nx/OdmHcN1STcnBEYyHdIs=; b=Rf1DjrCSELYtsO2cI5NP0HkbUYZXKkBoM9aaWcuEa0G4F6q1dhlO/nuijfY4BNl2Ap Gs+98/DtqWvK2N/AmtNIqc+AE/bfHCNOYWoGjGpGSQWyt/VpUK1tWLDbjYtN4ipXCGY+ ym24m1PAKkd7vm7AbKA1Y0uysMJ4xylE09O3zTy+xYBYmmlPfpQrnQEE8cNWmKvgggXv dJeGSQRIdPWQKp+CsgRDAv+bw2dSluoDymOyOyK4PGNJZ7QWNwmQFmTktCtyQxV5bWfr 1Z2gtyB/2fsld+prLH5TkDScG6k1caGaAYBKXx81AiRqQFzDS+T1W2ikkdmRL9ABk88j QUKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MbMxbXAu; 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 bx26si1284313edb.181.2021.10.27.14.30.08; Wed, 27 Oct 2021 14:30:32 -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=MbMxbXAu; 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 S242810AbhJ0Pk0 (ORCPT + 97 others); Wed, 27 Oct 2021 11:40:26 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51563 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238839AbhJ0Pk0 (ORCPT ); Wed, 27 Oct 2021 11:40:26 -0400 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-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-433-2kBimviMMVa6_u8jfKdJGw-1; Wed, 27 Oct 2021 11:37:58 -0400 X-MC-Unique: 2kBimviMMVa6_u8jfKdJGw-1 Received: by mail-ed1-f70.google.com with SMTP id z1-20020a05640235c100b003dcf0fbfbd8so2716455edc.6 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=JbMsIggQ91YqEK2nq+Q2nP3bEgj4pdDv/rroODO8VCzolVmQMBPGlfAMRUicGTpT0r xl88sUXbuD1pA9vy4mCee5lucrERa3423xj2ZBVfSCh2IaizuzxtPYHaFRuSyg8jAIjk WMCYv4MwsxbMypV6tqpRMHeRKYr3BoU5mhkjjN2zUM0/K59xcix4bjSNWwVqu9oBZMwA g3qIaWDS0RZljlyyL28H38Y/KDbV98ky8Wqe83+98NN7MHJWd8PplLWydpS5tCKtVfJT +If9M8oZWndGSY4Rbk6Pu8M/P+gsTR4xnB5qZhjDYx6/38yU/O+rgrjUcUexT3ywSWsj 74QA== X-Gm-Message-State: AOAM531I0fkoQEYjbznnzrkzaOYyvK31aS53detruL4sm8YkLOkWkBVC S0LqPFN/hjvm4W3AJuKOCkvob+jI3wCMCSmypuabA+keI2J0DDcpl67PDA1s4vMK2Grlgp1PGt+ 9evTu9OG/4v8oviCrjQ3kZyD4 X-Received: by 2002:a05:6402:520f:: with SMTP id s15mr19650585edd.376.1635349077546; Wed, 27 Oct 2021 08:37:57 -0700 (PDT) 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 Content-Language: en-US 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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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