Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1221904ybh; Sat, 3 Aug 2019 20:59:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw5WdaXTTyZO63KNOKz1U0XHdqUFEJZfIuNZB48q0iYvLRCcyfQudbG9BGsIr7Qgbcaulc X-Received: by 2002:a17:90a:d3d4:: with SMTP id d20mr12318671pjw.28.1564891162729; Sat, 03 Aug 2019 20:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564891162; cv=none; d=google.com; s=arc-20160816; b=YiwT4fQaECj9ULW37W1vnUNeliNDFdyeRwwH5yPKtWOKwZIrjB2jZC9o4mHxbPRiD5 oHDh5as00G8OyXNX7gMDYiFkSVcdxh5aEw4Q82HXUinU9b636xDp6IdcTb8Toipi4oNQ thotK7V/Q9L+59yDnXh0NwPM07qR8fO8KZn1lG0J8xWtw09svtK2+ETx2zgenObWcvBx H2bCJErlkRPagnsFok6vKSRfMfS0+PZA/WUNEBdJLlIvSxIrf9/euRrKQgjHEdTK3a6H 68FaTB2CpwSAWqxHtkNZje7CVsougHN57FZYWWznceuuxSH7mvA0hsjIelfS1kxmHJCT MVuA== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=YWHy1+MJocdmf5fCkWjR54SHBV7hmAuE2HMkcot/nFE=; b=hYUykC0RrQ0myn3/Ljrs7WfQWOL8HzXf1949hq7ihkAl2bvfxBDRhzXKFJz61wf3xF e4LimOxN7gwCjX3yAnPc+1nZXKqdYglGaw2IAavoIxySfinrkUWpJ2F/jQos46BpdGSt J/5xM201HbHjAyMIaDt6K5Spga1kiEiob9K3IISL6zd2KZWA2sM+vSALjaPw1jxPX2s6 NgZA8Hz2MuN0mC/C7Ek8jchbpqKRd5SlwlTncLyqpDGiqQ9qInYasZskuwNR1j/rNbR6 mHCyC1c/AcpQWnuwvBPrX/rmheZ62RUKZgi24ktDQ72W1/EtFgqY2GoHcSYoOJWOejsW oyaw== 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 n18si38663205plp.215.2019.08.03.20.59.08; Sat, 03 Aug 2019 20:59:22 -0700 (PDT) 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 S1728525AbfHCSFd (ORCPT + 99 others); Sat, 3 Aug 2019 14:05:33 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:48507 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHCSFd (ORCPT ); Sat, 3 Aug 2019 14:05:33 -0400 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1htyPF-0002A1-0t; Sat, 03 Aug 2019 20:05:25 +0200 Date: Sat, 3 Aug 2019 19:05:22 +0100 From: Marc Zyngier To: Steven Price Cc: Catalin Marinas , Paolo Bonzini , Radim =?UTF-8?B?S3LEjW3DocWZ?= , Russell King , Will Deacon , James Morse , Julien Thierry , Suzuki K Pouloze , kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/9] arm64: Stolen time support Message-ID: <20190803190522.5fec8f7d@why> In-Reply-To: <20190802145017.42543-1-steven.price@arm.com> References: <20190802145017.42543-1-steven.price@arm.com> Organization: Approximate X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: steven.price@arm.com, catalin.marinas@arm.com, pbonzini@redhat.com, rkrcmar@redhat.com, linux@armlinux.org.uk, will@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.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 Fri, 2 Aug 2019 15:50:08 +0100 Steven Price wrote: Hi Steven, > This series add support for paravirtualized time for arm64 guests and > KVM hosts following the specification in Arm's document DEN 0057A: > > https://developer.arm.com/docs/den0057/a > > It implements support for stolen time, allowing the guest to > identify time when it is forcibly not executing. > > It doesn't implement support for Live Physical Time (LPT) as there are > some concerns about the overheads and approach in the above > specification, and I expect an updated version of the specification to > be released soon with just the stolen time parts. Thanks for posting this. My current concern with this series is around the fact that we allocate memory from the kernel on behalf of the guest. It is the first example of such thing in the ARM port, and I can't really say I'm fond of it. x86 seems to get away with it by having the memory allocated from userspace, why I tend to like more. Yes, put_user is more expensive than a straight store, but this isn't done too often either. What is the rational for your current approach? Thanks, M. -- Without deviation from the norm, progress is not possible.