Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp436707pxb; Mon, 25 Oct 2021 11:09:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzkAaxebom1h/J9OvDUO0vV9OyuISfIXqPjS2J3Nw/6Dx4UySnxPH2v8VPsAKmY15B6Tw3 X-Received: by 2002:a17:906:919:: with SMTP id i25mr24155046ejd.171.1635185379262; Mon, 25 Oct 2021 11:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635185379; cv=none; d=google.com; s=arc-20160816; b=naR89IBxh79Mtv/+V70Gosgr+b9kI3CJsxmMB1QXGZvgbfnErze3Qe32adOhprDWYU 0R/Yj1v7GQasVB41nXTVI/GLf0JoyoTaaYDH+t+yh3wrQHqcuL1f4bzd1Z25+dZDNQrM RUUsFOkyG1eAe6lLPdXFnBaPfUb9BZTfWzQieohOmU8UvtVsh7e3/qyqRKjai+0bRPNP vc9iyhzlttRvWdZ4wGx/URdGDNdA/tX2X1QMio/xCb8pz3ep+EJkIYmPejimQLqnJwgq MWF5q1ixDqQk7BcuteRneoNJl3dkT4/Qtqueb0l/+jK2IPjIDKK6p6Yyxog2bgPXReVY +Qow== 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=48+IikSlKyqTNmxyr4q4VEcqSYZJGRNhdXCK/IFcjJk=; b=lvEjaAAjd2LB/GWLjkTVj2f53YMoec6poMGDm+9lbpLrgxYCxGWrdSLcujVl5s33GZ eNWoF0s0goV/cg+sLIrpHY7EycW2UxFx8wbyBVMEBiV1EB1c8aeGvqp00u6i4nJTwLKT /S5uzGYhhh1QWfLpF6hOjo8oEe1eiFaI42AUA9A4sF1eZ++wk3f9/zgSAK/MRWHYbH/g cZXMpchaa69UDeF3d4AzrTuPsdLh6AfvEBnX62h5it1ClUll2ADTGa8lofLRumvgADK+ 0XnUyowtwz+c5JPI5CKrOH+lF7Sm738JjRNWyfwjjoIAjwJk1mjK1S73tYGMNfRI4N33 iNTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="KE/riBNf"; 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 jr11si26020978ejb.269.2021.10.25.11.09.15; Mon, 25 Oct 2021 11:09:39 -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="KE/riBNf"; 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 S231535AbhJYNYd (ORCPT + 99 others); Mon, 25 Oct 2021 09:24:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:28554 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbhJYNYb (ORCPT ); Mon, 25 Oct 2021 09:24:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635168129; 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=48+IikSlKyqTNmxyr4q4VEcqSYZJGRNhdXCK/IFcjJk=; b=KE/riBNfAXvmdioUpEupdNXCo16fRq3CU6y433SjTnpscTb3trlrymitszXrkgp+SEiGpy IGGDdOs7tgVpF7D1koLvgvjkFQKxcb+ae8BAvfZAtAiPQnnSY7t0w4DQ9M14UID9quLJ6O qMkZ0+yPB8SV6/WH/73VfrMRwVbUjyY= 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-428-Yi-__tsQP_a3cxRSbs2M1Q-1; Mon, 25 Oct 2021 09:22:08 -0400 X-MC-Unique: Yi-__tsQP_a3cxRSbs2M1Q-1 Received: by mail-ed1-f72.google.com with SMTP id c25-20020a056402143900b003dc19782ea8so9931976edx.3 for ; Mon, 25 Oct 2021 06:22:08 -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=48+IikSlKyqTNmxyr4q4VEcqSYZJGRNhdXCK/IFcjJk=; b=b7TzlXB20dfJE8jW6pRqTy+S9f2tP/q5kRrogVvWdSxm4gBHyQOHkocTMx2VWjisuO Xyf9lx6UkRS8qAten+fGNrQWrHglQsIYtHzMiAfRTcregXxMARSs4D3WXPb1M+VJhwL5 MJVvmg30yp7tNGBLLc7vJiXdbqPoKMwQhKpZVmFYUI+hWFedH+JqVJU5yCt+Kf5JNeRZ bTomzkHJ+8iK0MLRqCozRXC9qZmCbEZ6+abgSkSYO2TMUl9X2zWfYnzbPVZk2lc9MKnS /gABW8Cq6xRzjlPMIBjeoohSWRoCS9CycJAnMLnvlNt5VbcRgbMEilO5H8Pe1P0lhUJN MUvA== X-Gm-Message-State: AOAM53175RDoaGJDnRyohvlLFTggdvY//fCDXTLIOVlS5Fhd23NUbo2K 3mw/v7lgCrCRMY+P3mbTsoa7tyL32QOLWZWiREo2y7nD8yu0y03NAxuon5WfkqCw8bYigEr/C6b klw7FtYWg67vAX4T/bHWIUX0/ X-Received: by 2002:a50:d783:: with SMTP id w3mr20253052edi.380.1635168126980; Mon, 25 Oct 2021 06:22:06 -0700 (PDT) X-Received: by 2002:a50:d783:: with SMTP id w3mr20253015edi.380.1635168126752; Mon, 25 Oct 2021 06:22:06 -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 j15sm9152968edl.34.2021.10.25.06.22.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 06:22:06 -0700 (PDT) Message-ID: Date: Mon, 25 Oct 2021 15:21:59 +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 02/43] KVM: SVM: Ensure target pCPU is read once when signalling AVIC doorbell Content-Language: en-US To: Sean Christopherson , Marc Zyngier , Huacai Chen , Aleksandar Markovic , Paul Mackerras , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank Cc: 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> <20211009021236.4122790-3-seanjc@google.com> From: Paolo Bonzini In-Reply-To: <20211009021236.4122790-3-seanjc@google.com> 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 09/10/21 04:11, Sean Christopherson wrote: > + * point, which could result in signalling the wrong/previous > + * pCPU. But if that happens the vCPU is guaranteed to do a > + * VMRUN (after being migrated) and thus will process pending > + * interrupts, i.e. a doorbell is not needed (and the spurious) ... one is harmless, I suppose. Paolo