Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1354839ybx; Tue, 5 Nov 2019 14:48:50 -0800 (PST) X-Google-Smtp-Source: APXvYqytEZfn5OWVph+bUss0MeBK0l8SfaDxibQx8rvz+BVJXq/RoOXiZdOXn/qpFrm8Tw/VxluA X-Received: by 2002:a17:906:2d49:: with SMTP id e9mr31475491eji.240.1572994130787; Tue, 05 Nov 2019 14:48:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572994130; cv=none; d=google.com; s=arc-20160816; b=p5nWT1510AUWi5mj7S2VRaAzT0RDUFVZWwhkGJ31xsqnMjTEdMnxO3KhkvWwQE5DUP /Msttj8r4tkVlt5QXLZmN5prbk19uwH0KlmA1J4cLXooEppztCN+m+nkTBs6XGsC+YCD 8cIq3nIGPIZBnZdt0mqUf79XvUTon0PUcCkf7Yoo6/qiCQ20Tp6d2jHrVeCNgbdDf4Mm NdDBlUqsjc8f6gpjaQ7oCZeO78DToYr8rtY00r4M/sG+5hsMLcNSRDgDPeRGXLmughnD N0uKNnxprjSaNph/gojh+BzCqDyNdxDtnl+n4o2ahXnhxRy5wKzKXrL+xeuhqdfRTMaR UAhg== 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:openpgp:from:references:to:subject; bh=wcmDWg9yuhKKv0L3oJXn41fVzC0MNDFjqyIzi0LiKTI=; b=HgyG4CME5nLJoTEOkGO07OipKGvp9uTKzkR70WJ4Zo4szM9mAlTc6m6myu+H816hOu iQUwJXwVMUywhp2y22DV0DXRwFIqPHB2PqVQV9/WL3f676eE9HzuSqf75tH2THSlKt+t 4VDF2PyjavdgmLJyQWn6aaGYlu4IdVTtegI6NpVLDwLdaaXAO3OS81YDn7871Qie910x mwYyJT5BaDbbsKdxsjoaFBehIZOhFjVPhHfU1v4N2xONetUrfBjD1jFzE3obanzVbIe1 Ql6ZsaxzKrjlIdrF2YXTS3HyqBleP3A8qzK+lisuvxlbetUX+51LJvW06stpGa6Y3aCs CM4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si15454531eja.294.2019.11.05.14.48.26; Tue, 05 Nov 2019 14:48:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730510AbfKEWrv (ORCPT + 99 others); Tue, 5 Nov 2019 17:47:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45368 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730370AbfKEWrv (ORCPT ); Tue, 5 Nov 2019 17:47:51 -0500 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1625C85539 for ; Tue, 5 Nov 2019 22:47:51 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id g5so96420wrb.2 for ; Tue, 05 Nov 2019 14:47:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wcmDWg9yuhKKv0L3oJXn41fVzC0MNDFjqyIzi0LiKTI=; b=rQ5aEpt+uzNezeFNw4x1+4K+X3kgHhUO1bpK1hhyazjop8MYFzkzQ2pta4ZmZbxovB cX70+WJ5pScyYqTEmxBkcOdRTQsjBvv0sqBjuANidFBWije663j6MG89IVS2kzKZEPuT eHY9GIcTkup6Kg08WMCCqaUvvQk0xHIbw3X0o6XsPSusxyt912uCn7P8H5tTtNV9LvW2 hOLwCbVtKoBjoahZvgYQDkzqP9zHKo46CmVrllR/5IPDE1pWgqsZFPGtyFU/49sGOBft XHLEOSMx+44LdsLp8azWOuOjNGja0tYTNls7/FXzKZgIGWgvbC9krwWqrHbSdEMwuR5w syqA== X-Gm-Message-State: APjAAAXCPZhvmAi2Q2UwTZlOeOXrejRUCl/zpnTi40xSaTMX2b4K7r8X u5kYZWTDnbSMewa1q8S9oMEcH2XG8zckVU56JS3h6aVcQqn7vKGairfCXCldThphQkWqDz9Hf4G Km3+0zJnkmPxQ+DOOB9MuKA1o X-Received: by 2002:adf:d18b:: with SMTP id v11mr31907200wrc.308.1572994069737; Tue, 05 Nov 2019 14:47:49 -0800 (PST) X-Received: by 2002:adf:d18b:: with SMTP id v11mr31907185wrc.308.1572994069442; Tue, 05 Nov 2019 14:47:49 -0800 (PST) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id 205sm1175250wmb.3.2019.11.05.14.47.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Nov 2019 14:47:48 -0800 (PST) Subject: Re: [PATCH v4 13/17] kvm: i8254: Deactivate APICv when using in-kernel PIT re-injection mode. To: "rkagan@virtuozzo.com" , "Suthikulpanit, Suravee" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "rkrcmar@redhat.com" , "joro@8bytes.org" , "vkuznets@redhat.com" , "graf@amazon.com" , "jschoenh@amazon.de" , "karahmed@amazon.de" , "rimasluk@amazon.com" , "Grimm, Jon" References: <1572648072-84536-1-git-send-email-suravee.suthikulpanit@amd.com> <1572648072-84536-14-git-send-email-suravee.suthikulpanit@amd.com> <70fb2b49-2198-bde4-a38b-f37bc8bc9847@redhat.com> <20191104231712.GD23545@rkaganb.lan> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Tue, 5 Nov 2019 23:47:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191104231712.GD23545@rkaganb.lan> Content-Type: text/plain; charset=utf-8 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 05/11/19 00:17, Roman Kagan wrote: >> This is not too nice for Intel which does support (through the EOI exit >> mask) APICv even if PIT reinjection active. > Hmm, it's tempting to just make svm_load_eoi_exitmap() disable AVIC when > given a non-empty eoi_exit_bitmap, and enable it back on a clear > eoi_exit_bitmap. This may remove the need to add special treatment to > PIT etc. That is a very nice idea---we can make that a single disable reason, like APICV_DEACTIVATE_REASON_EOI, and Intel can simply never use it. Paolo