Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3783806ybl; Mon, 13 Jan 2020 02:33:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyiTcW7297PWlHSNL1WAKBFc/JBGdAfYOFUGSYbxYyTNK2O2ftTHrTQi/PqOQG3baAOCGAN X-Received: by 2002:aca:568f:: with SMTP id k137mr12421852oib.63.1578911615982; Mon, 13 Jan 2020 02:33:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578911615; cv=none; d=google.com; s=arc-20160816; b=ty+F4ITUR14OUo/ce4+gdHnTppPsgIUw845XwjWyXh2qB4rFESCMN/Z/A+RVt/MGw2 o2lMiwXM5GA/fSM1JCgyhzqIhxQqVA5mzt6TxlJNEokc1EMkAGVnOMuahYV5ZGQg0cZ0 IKuJRiirpkD2DUBlbpvGzpZyuBdQAZYX4kr40QhjMSREqwSY5j0F9GktLsMmCE2NzusD xTtpUzDf+c9AJeN4730lpW0uvbkNDc/8wkIOPtQtVLfX4QYmlJfHRQZUs058symSmTY6 4nz3JixDrWeZMB5E0rQ1zVmHYLlvyZWg7KGhoBlGwEX+yL/ZykPHRL+fKxqO5I+1ppBx /v8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YodIxvHhbiWx6MmfmOV33YkRUqAMfUz7Yap14chOaBU=; b=pDCjR4jiUzjt3nu0BtzBsQszHkuFueUiivm5ppMirBwFvFObfKu3VQNqlOIKq5HKvY GVEXisyd7IvQgZyrYgOOZDQBCm3j4qpGhuU5Jdn+LcpglGnnVo4SZZ7twmQANWtzGgI4 UF4G0ZtCpJOLn77SsnuyUwGe8tQ+ZnC+VGM7+Zo9bBTG2gC6LqLSZk2bJN4+SUxRJWnt DNUMj8FHya7zyHSFsiGHBUBe6DwIoh+O3FHwb65OaOikcpxA4GIocfkIzs+GqiM/x4an hLakSZ4fOMhtxHL7ZZcJ+fUKg3YsvHPQo2fj1Q4uJ45bCulFIpsCTfJVjBO9siPvVUK3 rNsA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si6866361otp.164.2020.01.13.02.33.22; Mon, 13 Jan 2020 02:33:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728674AbgAMKb0 (ORCPT + 99 others); Mon, 13 Jan 2020 05:31:26 -0500 Received: from foss.arm.com ([217.140.110.172]:37300 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgAMKb0 (ORCPT ); Mon, 13 Jan 2020 05:31:26 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6DFF713D5; Mon, 13 Jan 2020 02:31:25 -0800 (PST) Received: from arm.com (e112269-lin.cambridge.arm.com [10.1.194.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 571363F534; Mon, 13 Jan 2020 02:31:23 -0800 (PST) Date: Mon, 13 Jan 2020 10:31:18 +0000 From: Steven Price To: yezengruan Cc: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , "linux-doc@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "maz@kernel.org" , James Morse , "linux@armlinux.org.uk" , Suzuki Poulose , "julien.thierry.kdev@gmail.com" , Catalin Marinas , Mark Rutland , "will@kernel.org" , "daniel.lezcano@linaro.org" , "Wanghaibin (D)" Subject: Re: [PATCH v2 3/6] KVM: arm64: Support pvlock preempted via shared structure Message-ID: <20200113103117.GA44375@arm.com> References: <20191226135833.1052-1-yezengruan@huawei.com> <20191226135833.1052-4-yezengruan@huawei.com> <468e2bb4-8986-5e1e-8c4a-31aa56a9ae4f@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 11, 2020 at 07:30:42AM +0000, yezengruan wrote: > Hi Steve, > > On 2020/1/9 23:02, Steven Price wrote: > > On 26/12/2019 13:58, Zengruan Ye wrote: > >> Implement the service call for configuring a shared structure between a > >> VCPU and the hypervisor in which the hypervisor can tell the VCPU is > >> running or not. > >> > >> The preempted field is zero if 1) some old KVM deos not support this filed. > > > > NIT: s/deos/does/ > > Thanks for posting this. > > > > > However, I would hope that the service call will fail if it's an old KVM not simply return zero. > > Sorry, I'm not sure what you mean. The service call will fail if it's an old KVM, and the Guest will use __native_vcpu_is_preempted. You previously said the "field is zero if [...] some old KVM does not support this field". This seems a bit of an odd statement, because the field just doesn't exist (it's an old KVM so won't have allocated it), and if the guest attempts to find the field using the service call then the call will fail. So I'm not sure in what situation you are expecting the field to be zero on an old KVM. Steve