From patchwork Thu Nov 27 18:40:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 41645 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AE1692486D for ; Thu, 27 Nov 2014 18:43:23 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id y19sf3352808wgg.3 for ; Thu, 27 Nov 2014 10:43:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=P0ncjthp1BDnYXnaU3ILbQECg/sgxdUrmH7ySbnMyGo=; b=j62W/Gp1fFCIJHOGDglswjhYCyj4TrBW+W5Uoz1cTEeFQrsTAcmIeXndK/Lt0gif6L jHCpzYtI53csERrH1Evtpsl/YaCE1kJAREtL+khcgq+qPiO7CujuAxpyh+MI6tihzgMz r0RDHh/QUTULnAH0AUJ6oqNihCRcWz4QdF1826rjkQpgzhnNtK7zk2uZmw6xjO1iverx UZN8/dCVNXh+oUFDA1s9nkNBNpOeyg91HnXOTKomrORZxm/Nc7PLp6oAT+58MnrwDcyB 1J/uPfUoXbyEWXpfAMDfaoKIZAalVM1tTsVGBvhMKPlc6LW2tn3CWZISgV4bSiu+06nU nlsA== X-Gm-Message-State: ALoCoQnm0DsKi8tT1GAmFYloAc65j0lfnBwQJv2xxj1HiDaqkUIihnEyKjdgM4Ah0LUkgBHBKFmQ X-Received: by 10.181.13.147 with SMTP id ey19mr8882817wid.2.1417113802698; Thu, 27 Nov 2014 10:43:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.33 with SMTP id j1ls295786lam.59.gmail; Thu, 27 Nov 2014 10:43:22 -0800 (PST) X-Received: by 10.152.115.230 with SMTP id jr6mr40534400lab.2.1417113802255; Thu, 27 Nov 2014 10:43:22 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id vu8si7977395lbb.84.2014.11.27.10.43.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 10:43:22 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id f15so4978323lbj.27 for ; Thu, 27 Nov 2014 10:43:22 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr39806603lbc.23.1417113802173; Thu, 27 Nov 2014 10:43:22 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp838044lbc; Thu, 27 Nov 2014 10:43:21 -0800 (PST) X-Received: by 10.70.126.194 with SMTP id na2mr13842349pdb.39.1417113800532; Thu, 27 Nov 2014 10:43:20 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id p5si12940835pdb.8.2014.11.27.10.43.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Nov 2014 10:43:20 -0800 (PST) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xu40i-00012b-56; Thu, 27 Nov 2014 18:41:48 +0000 Received: from mail-lb0-f171.google.com ([209.85.217.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xu3zr-0000ed-1J for linux-arm-kernel@lists.infradead.org; Thu, 27 Nov 2014 18:40:56 +0000 Received: by mail-lb0-f171.google.com with SMTP id n15so4603951lbi.30 for ; Thu, 27 Nov 2014 10:40:32 -0800 (PST) X-Received: by 10.152.5.38 with SMTP id p6mr29303291lap.64.1417113632402; Thu, 27 Nov 2014 10:40:32 -0800 (PST) Received: from localhost.localdomain (188-178-240-98-static.dk.customer.tdc.net. [188.178.240.98]) by mx.google.com with ESMTPSA id x1sm1682425lae.42.2014.11.27.10.40.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Nov 2014 10:40:31 -0800 (PST) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] arm/arm64: KVM: Clarify KVM_ARM_VCPU_INIT ABI Date: Thu, 27 Nov 2014 19:40:58 +0100 Message-Id: <1417113660-23610-4-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty In-Reply-To: <1417113660-23610-1-git-send-email-christoffer.dall@linaro.org> References: <1417113660-23610-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141127_104055_283585_EE3B4C34 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.171 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.217.171 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record Cc: Marc Zyngier , Peter Maydell , Christoffer Dall , kvm@vger.kernel.org, Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 It is not clear that this ioctl can be called multiple times for a given vcpu. Userspace already does this, so clarify the ABI. Signed-off-by: Christoffer Dall --- Documentation/virtual/kvm/api.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index bb82a90..fc12b4f 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt @@ -2453,6 +2453,9 @@ return ENOEXEC for that vcpu. Note that because some registers reflect machine topology, all vcpus should be created before this ioctl is invoked. +Userspace can call this function multiple times for a given VCPU, which will +reset the VCPU to its initial states. + Possible features: - KVM_ARM_VCPU_POWER_OFF: Starts the CPU in a power-off state. Depends on KVM_CAP_ARM_PSCI. If not set, the CPU will be powered on