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: 2854152 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B1A8E9F557 for ; Thu, 5 Sep 2013 14:48:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 79D3A2046F for ; Thu, 5 Sep 2013 14:48:44 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3ACA20465 for ; Thu, 5 Sep 2013 14:48:39 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHaqb-00015I-Pu; Thu, 05 Sep 2013 14:47:50 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHaqM-0003qQ-1N; Thu, 05 Sep 2013 14:47:34 +0000 Received: from mail-pb0-f44.google.com ([209.85.160.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHaqA-0003mH-WA for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2013 14:47:24 +0000 Received: by mail-pb0-f44.google.com with SMTP id xa7so1887017pbc.3 for ; Thu, 05 Sep 2013 07:47:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=atZPAy4vKA77d9MgOqXLoTxStZKhiNagwFvaIxzMQ8g=; b=BNhdBPsG5lgzkP/nbsneMfHhNmSlN04oec0iMCSJYoz30jWlI0ObXnU6/7eayioRuw D1KcyNbSj2igBpBD/diCv5uUFKZDspb2ycmpxrlSx6rLp9AzaoG3qTXS84gAP0O+70O3 /TTVDN54aJwJ4hCoVdHMszdYBETUM83C5iTFYL+YK+J3Cw6wtzSYSshBeANqfdPM5nlI deOZ4P4/84KReWRiPJka9s45fJkyBgyj1y5KqS3Aj6K8/94g6+ZgXhNgkZrKxtYrLvMr H0+X4L/woXhKkb/wEO4o/MG715jAdXsKBk47IqpHiZ6IPOTVoqqu5XAKlcYBx64dZeex RRWQ== X-Gm-Message-State: ALoCoQnLs6USlxg9SgnZGMnLzMelG5DyMvMyK7bUys5ZsVhSD6BKSR0dr7CE3wbx5wDCfq5pCzdz 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130905_104723_849387_0277CF2C X-CRM114-Status: UNSURE ( 7.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, Anup Patel , patches@linaro.org, marc.zyngier@arm.com, linux-arm-kernel@lists.infradead.org, christoffer.dall@linaro.org, pranavkumar@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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