Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7612169ybl; Tue, 24 Dec 2019 05:47:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxg+SDRtsSXpMV2SotpzlpPjGJpl1byiD8DXvYFBOeJpItVcZr0lb1Ax93vIZ413lgPDeXW X-Received: by 2002:a05:6830:1401:: with SMTP id v1mr8505033otp.360.1577195229117; Tue, 24 Dec 2019 05:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577195229; cv=none; d=google.com; s=arc-20160816; b=Y/IhhC8vnha/L6j5YTLABrYyKeBRnN+qNeyknDcjGXGwV6IZeDYrDujoJpAk5NCGtm MaxmLftvw2+tzGMWiQNxte2MTkjDlzetv/vbJDRfln+ZHlKC1C2smilKyqztw47/tQUN 5ppYUyc9km1XszZfMYwC9kZlFnuUz+o+2HvD/oLCC9yOvpGBZtvZ1WO6g6isSPyvDiLh j0PGvHD/46umpRsex1s/jdVeylYOBTshEivT5emR2q4eO917+f88LUyAxb2WDr5/caD9 GjDPdUcjR3dUUgA2A/OpKD44OYCqOlbzthzfswKT47NEpXRLxOyvEK0s2Ce+PBL7xxqM QThQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to; bh=6On0YpKP8qE9aNErd0XQ5JmN6FJ+1oDReSeYrmdlyPM=; b=UfG+1D6R49hge1tbT1gEiqq4PE2X+bd0sbz4pQTNMu4e0ACQwNBEfsGtC9UxNqavo2 f+QK0Ku9BMaTqMI+J6QgwHtESmzn2xRSdQgiyZzqDY0KXuOwn8h6e1pvCy+Dz0OVcTQm F1wvVav1TdBJ5FTG02V0rvr1zBGa/zN1nzeVnbq3KlrxF2RWW+EK46MO3cZnViAOwXlw z6FFdVx5BeRrNDYW0QI5VJVDRDK3KXSfIcAGYOb396TFG953CF5wQfNQNc8jrLkKacGJ KPPm0igNb44+NmSkk8yZAgWhFStUBeXZRtxw84U+g66PmUE6iBEuNLH2Oz5LNZrWRxKU ue8w== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si12502979oti.234.2019.12.24.05.46.57; Tue, 24 Dec 2019 05:47:09 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726216AbfLXNqR (ORCPT + 99 others); Tue, 24 Dec 2019 08:46:17 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:34561 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbfLXNqR (ORCPT ); Tue, 24 Dec 2019 08:46:17 -0500 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1ijkVo-0003p4-RU; Tue, 24 Dec 2019 14:46:12 +0100 To: Andrew Murray Subject: Re: [PATCH v2 14/18] KVM: arm64: spe: Provide guest virtual interrupts for SPE X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 24 Dec 2019 13:46:12 +0000 From: Marc Zyngier Cc: Marc Zyngier , Catalin Marinas , Will Deacon , , , Sudeep Holla , , In-Reply-To: <20191224133647.GO42593@e119886-lin.cambridge.arm.com> References: <20191220143025.33853-1-andrew.murray@arm.com> <20191220143025.33853-15-andrew.murray@arm.com> <867e2oimw9.wl-maz@kernel.org> <20191224115031.GG42593@e119886-lin.cambridge.arm.com> <1f3fbff6c9db0f14c92a6e3fb800fa0f@www.loen.fr> <20191224130853.GN42593@e119886-lin.cambridge.arm.com> <20191224133647.GO42593@e119886-lin.cambridge.arm.com> Message-ID: X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: andrew.murray@arm.com, marc.zyngier@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-12-24 13:36, Andrew Murray wrote: > On Tue, Dec 24, 2019 at 01:22:46PM +0000, Marc Zyngier wrote: >> On 2019-12-24 13:08, Andrew Murray wrote: [...] >> > This does feel like the pragmatic approach - a larger black hole >> in >> > exchange >> > for performance. I imagine the blackhole would be naturally >> reduced on >> > machines with high workloads. >> >> Why? I don't see the relation between how busy the vcpu is and the >> size >> of the blackhole. It is strictly a function of the frequency of >> exits. > > Indeed, my assumption being that the busier a system is the more > interrupts, thus leading to more exits and so an increased frequency > of > SPE interrupt evaluation and thus smaller black hole. On a GICv4-enabled system, this isn't true anymore. My bet is that people won't use SPE to optimize IO-oriented workloads, but more CPU intensive workloads (that don't necessarily exit at all). But never mind. Let's start with this approach, as it is simple and easy to verify. If the black hole aspect becomes problematic, we know how to reduce it (at the expense of entry/exit performance). M. -- Jazz is not dead. It just smells funny...