From patchwork Thu Sep 5 14:46:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 19776 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0CFC124692 for ; Thu, 5 Sep 2013 14:47:03 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id f11sf1994682yha.8 for ; Thu, 05 Sep 2013 07:47:02 -0700 (PDT) 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:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=atZPAy4vKA77d9MgOqXLoTxStZKhiNagwFvaIxzMQ8g=; b=VETNYlz3HdeWglgGvO3FRVrnqnM+5+vfhYGnWvPbsXw6mqdtaWWfOfDGvohpsotbce qaWXLt8HDNTq2iqyBxI8iNb/Ya5LqJL/x2sQPZjL67y9zDRYKukk0QO9gFjpZVOopYJ1 OdPHBthadqC9kDo9ijG5vBtJnzcBEcprnjMn9A9KRrthUH6fEmmYLvNH3Juhj9iMw5mx EX6GDgoQAoTvsYWDvVRieH2zdDvzX9bISek0dodwfKeeG8dTuxrk6p9ah4AymTeve6w0 MMYGmeax4aOb5NavONaVpAcZKSZVuzzerqeRBCFl+ai1E9QfiyIlS2zriE/wVbLBCIZX s3uA== X-Received: by 10.236.87.232 with SMTP id y68mr3226419yhe.19.1378392422853; Thu, 05 Sep 2013 07:47:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.177 with SMTP id gf17ls473913qeb.4.gmail; Thu, 05 Sep 2013 07:47:02 -0700 (PDT) X-Received: by 10.58.127.202 with SMTP id ni10mr932784veb.27.1378392422764; Thu, 05 Sep 2013 07:47:02 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id gq10si7319946vdc.30.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 07:47:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id w16so1188376vbf.21 for ; Thu, 05 Sep 2013 07:47:02 -0700 (PDT) X-Gm-Message-State: ALoCoQml1z4qHTbwAQCTIr334bxcg7X1P/+TbdJDSEVnl4vA/rorchRQ0+Fs0Y5XsQrDquM6qbYm X-Received: by 10.58.161.116 with SMTP id xr20mr8186677veb.2.1378392422685; Thu, 05 Sep 2013 07:47:02 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp284250vcz; Thu, 5 Sep 2013 07:47:02 -0700 (PDT) X-Received: by 10.66.162.167 with SMTP id yb7mr9875480pab.16.1378392421640; Thu, 05 Sep 2013 07:47:01 -0700 (PDT) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by mx.google.com with ESMTPS id zu9si23893683pbc.38.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 07:47:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.176 is neither permitted nor denied by best guess record for domain of anup.patel@linaro.org) client-ip=209.85.192.176; Received: by mail-pd0-f176.google.com with SMTP id q10so1883268pdj.7 for ; Thu, 05 Sep 2013 07:47:01 -0700 (PDT) X-Received: by 10.66.192.8 with SMTP id hc8mr9591576pac.66.1378392421247; Thu, 05 Sep 2013 07:47:01 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id xs1sm38485325pac.7.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 07:47:00 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, marc.zyngier@arm.com, christoffer.dall@linaro.org, pranavkumar@linaro.org, Anup Patel Subject: =?UTF-8?q?=5BRFC=20PATCH=203/3=5D=20KVM=3A=20ARM=3A=20Update=20documentation=20for=20KVM=5FARM=5FVCPU=5FINIT=20ioctl?= Date: Thu, 5 Sep 2013 20:16:02 +0530 Message-Id: <1378392362-6773-4-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378392362-6773-1-git-send-email-anup.patel@linaro.org> References: <1378392362-6773-1-git-send-email-anup.patel@linaro.org> MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anup.patel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , To implement target type KVM_ARM_TARGET_HOST we make the KVM_ARM_VCPU_INIT ioctl bi-direction so that KVM ARM/ARM64 can return appropriate target type to user space via struct kvm_vcpu_init. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar --- Documentation/virtual/kvm/api.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index ef925ea..c0a3a05 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt @@ -2283,7 +2283,7 @@ current state. "addr" is ignored. Capability: basic Architectures: arm, arm64 Type: vcpu ioctl -Parameters: struct struct kvm_vcpu_init (in) +Parameters: struct kvm_vcpu_init (in/out) Returns: 0 on success; -1 on error Errors:  EINVAL:    the target is unknown, or the combination of features is invalid. @@ -2303,6 +2303,9 @@ Possible features: - KVM_ARM_VCPU_EL1_32BIT: Starts the CPU in a 32bit mode. Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only). +This ioctl returns updated struct kvm_vcpu_init showing VCPU target +type and VCPU features that will be available. + 4.83 KVM_GET_REG_LIST