Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp440491pxb; Mon, 25 Oct 2021 11:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqkp14M9VPBmVjCyx3KIXVaPJSn7fKb3GbWXmNmmKDYAHO4y2bZscaql8UJ2svDJiixoEt X-Received: by 2002:a17:907:1ca3:: with SMTP id nb35mr21978496ejc.155.1635185664283; Mon, 25 Oct 2021 11:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635185664; cv=none; d=google.com; s=arc-20160816; b=Fv8Uzj0fALXjYqTReAinZBrRjHKw2Ku5rMQkYUanj2FwgpTdMpG7cvFYZFG4tjfofz 8q+u0cDxWytQINqRyiczSHjrVIpi3ItFjZyBypkwHKa+8swOFpSBVOURH41GFU6qCkfP x+9XRuryxfphcUXYjzGmV/bxvPFZTuugyw7uUNNexRjPw7UCu2b9psatHI3xa2JohXHB NBWeO0ywI0tc43xzuankhcsBw2eQp5DXZ29VL6qbG51IqOyLg64vPirVec+CCd0jNkpk eLWVZ9HTgtQwvad17kANn6OQegUvtMioY4R9VYmALmrAfU50KLgYhcQErRr8Hfl4qkcX zsbA== 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=1yBIeDqOkiGFurlFgD43y7wdSJN5RQI+Z9N38wXwm0c=; b=f85fluhAJojb2zshFYa2dOVQJmmMsbmokpc/16C6nzYcaKDSarhaHVBj01f8v9L1Eh DSZeOjLM+3Xz4hR1gB6YAzzxyLavw3ubgKkWmRXA3szNTeRwgK8W9wDNda0IuLzsz92U QQh+MaHHXg7Sf1+3WUGIyYZFxdtMQum+tzYfXqt7njjc9FL19/f6Ma/9vk/9i3AOkp/a zgdzPgKBTNYopsunissDOu9IZ1sbSRKEzvAvJ/nZM4zUzyUE2x1W9n8Jx+UqGdbDkE1s /LArEZIwfBR6iwLJHVNzNRYer2wLNYqSA8Q207vZ5V/cFSR9DbdmU7WEJHHb6g7rbUs/ AqyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fi7aAaBe; 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 hc12si13111354ejc.134.2021.10.25.11.13.59; Mon, 25 Oct 2021 11:14:24 -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=fi7aAaBe; 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 S233390AbhJYOS7 (ORCPT + 99 others); Mon, 25 Oct 2021 10:18:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25066 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232010AbhJYOS6 (ORCPT ); Mon, 25 Oct 2021 10:18:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635171396; 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=1yBIeDqOkiGFurlFgD43y7wdSJN5RQI+Z9N38wXwm0c=; b=fi7aAaBeFfH4Qk8blOaIo3+M1Y3wlqngaQz/TwxqzkIzw6kAAn1FX4JOeeCWo9im0FoGzG ZK2qkY1aJQQqCVrgyUPWgXwJQthMYAdRlWQUT4kQnavWJ77N2IU0ptyA9L5cHakK8LXdsH aTY+3VZNBGtf3KOQ1FSTJep/v8huTKo= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-Kd5JsL9KOHO_ksqaVvIQRg-1; Mon, 25 Oct 2021 10:16:34 -0400 X-MC-Unique: Kd5JsL9KOHO_ksqaVvIQRg-1 Received: by mail-ed1-f71.google.com with SMTP id r25-20020a05640216d900b003dca3501ab4so10003909edx.15 for ; Mon, 25 Oct 2021 07:16:34 -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=1yBIeDqOkiGFurlFgD43y7wdSJN5RQI+Z9N38wXwm0c=; b=iafBlwlGSmFqys1URs453i3HZWnV3H1M20Rza03SP+qfx5EcdIQgVlT7TABDlqSQBn m73jZi4A5llid0Si1rj+9uFzi9dnM6GHnB5g79Z/BMb/fLAGAKxnDD7TxkNPaZ/IUa8G PA+WMADIyr8AmuE7VjKA/oRPK5ZClYUtf4ztNLE/fQAdDxxFL6CAAbDSHWs9vhrjFRMo yzWMsUeBO/7X0wWFL1agLcN+34rHGhLA+36Cl+vZswVpmqaZglKRpXSAlaruSeHJ4RTQ YLbOMcNj+uv0i+5WB9DXIIpHIxPbutAfhTS+jAg8honQVK3d43VgmqW3rxgHshbZ0lSD DRGA== X-Gm-Message-State: AOAM532eX7wqAT7Oew7g2BjJj45r/V3pUmR4yww7IppvobUBkx1+IF3k gBEz4UsakOCwwSDE84ANf6r6ehL+amsdFnvGzUTGh1x9ov9Ix0bvOTKpNBmq2RZ/WXx19NDCowr G+Q4HGLPRTW1UcW2P/uIB/VBV X-Received: by 2002:aa7:c384:: with SMTP id k4mr20307549edq.281.1635171393295; Mon, 25 Oct 2021 07:16:33 -0700 (PDT) X-Received: by 2002:aa7:c384:: with SMTP id k4mr20307513edq.281.1635171393133; Mon, 25 Oct 2021 07:16:33 -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 bx2sm3600770edb.44.2021.10.25.07.16.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 07:16:32 -0700 (PDT) Message-ID: <01b5edae-aaa9-e96d-daaa-197c0c3a0431@redhat.com> Date: Mon, 25 Oct 2021 16:16:30 +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 43/43] KVM: VMX: Don't do full kick when handling posted interrupt wakeup 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-44-seanjc@google.com> From: Paolo Bonzini In-Reply-To: <20211009021236.4122790-44-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:12, Sean Christopherson wrote: > When waking vCPUs in the posted interrupt wakeup handling, do exactly > that and no more. There is no need to kick the vCPU as the wakeup > handler just need to get the vCPU task running, and if it's in the guest > then it's definitely running. And more important, the transition from blocking to running will have gone through sync_pir_to_irr, thus checking ON and manually moving the vector from PIR to RVI. Paolo