From patchwork Wed Sep 11 12:59:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 2872541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4C7E2BF43F for ; Wed, 11 Sep 2013 13:07:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C740201B9 for ; Wed, 11 Sep 2013 13:07:00 +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 DB43320378 for ; Wed, 11 Sep 2013 13:06:58 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJk7e-0001qW-7i; Wed, 11 Sep 2013 13:06:18 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJk2l-00055V-HE; Wed, 11 Sep 2013 13:01:15 +0000 Received: from mail-pb0-f42.google.com ([209.85.160.42]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJk2i-00052T-O5 for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2013 13:01:13 +0000 Received: by mail-pb0-f42.google.com with SMTP id un15so9040453pbc.29 for ; Wed, 11 Sep 2013 06:00:49 -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=SXEx6hDTtcXq7Ym2UoezG8DL7ng+Ig2GvOWgU21BReQ=; b=CgV5pIjonlk/0IK4oUJKhkHzZc5Ebq992Fl5IZ4hdD5nV6TrzD0NGX6A6SHIYTYkGA lSjbgyCuTRKaPAc7NtGVHx29L4bEFFRn4CjN/GeN3qxIWJiF93l9IRHbt/dcesatdJ3x /G5cWP9IR4e+AbW3Xklyf3A8bTxwpAWuUriWYLqbOvjGoVq7x3lxbZiBuxTzlELmHjlE 6c2bPchIpwrAyg/qde9bt0YsRi0fj/yxuDA9IUelN+rM1RSjD6MjirLiqLf4K7n4KW5L jeMgWUjcBgDslrmRuByBVGEoJ4Icii2yFMDRH1ee7OJLgj5W14nKvewMpLSdxEKC2gk6 yEMQ== X-Gm-Message-State: ALoCoQn56vVFkgoXWBLs0qXOGytmXURG5QJrdp8umdSSqLftS0tzSZzSAMLM9VYe8Nl42S5uFFni X-Received: by 10.67.4.197 with SMTP id cg5mr3534651pad.10.1378904449743; Wed, 11 Sep 2013 06:00:49 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id ef10sm3494780pac.1.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 06:00:48 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: =?UTF-8?q?=5BPATCH=202/2=5D=20KVM=3A=20Add=20documentation=20for=20KVM=5FARM=5FSUITABLE=5FTARGET=20ioctl?= Date: Wed, 11 Sep 2013 18:29:53 +0530 Message-Id: <1378904393-29101-3-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378904393-29101-1-git-send-email-anup.patel@linaro.org> References: <1378904393-29101-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-20130911_090112_899838_8DD3923A X-CRM114-Status: GOOD ( 10.44 ) 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 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=-5.0 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 CPU=Host we have added KVM_ARM_SUITABLE_TARGET ioctl which provides a CPU target type to user space for creating VCPU matching underlying Host. This patch adds info related to this new KVM_ARM_SUITABLE_TARGET ioctl in the KVM API documentation. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar + --- Documentation/virtual/kvm/api.txt | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index ef925ea..1ae9721 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) Returns: 0 on success; -1 on error Errors:  EINVAL:    the target is unknown, or the combination of features is invalid. @@ -2303,8 +2303,24 @@ Possible features: - KVM_ARM_VCPU_EL1_32BIT: Starts the CPU in a 32bit mode. Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only). +4.83 KVM_ARM_SUITABLE_TARGET -4.83 KVM_GET_REG_LIST +Capability: basic +Architectures: arm, arm64 +Type: vcpu ioctl +Parameters: None +Returns: 0 on success; -1 on error +Errors: +  EINVAL:    no suitable target available for the host + +This queries KVM for suitable CPU target type which can be emulated by +KVM on underlying host. This is not a mandatory API and could be used +to create VCPUs matching underlying host. + +The ioctl returns a target type which can be directly passed-back to +the KVM_ARM_VCPU_INIT ioctl. + +4.84 KVM_GET_REG_LIST Capability: basic Architectures: arm, arm64 @@ -2323,8 +2339,7 @@ struct kvm_reg_list { This ioctl returns the guest registers that are supported for the KVM_GET_ONE_REG/KVM_SET_ONE_REG calls. - -4.84 KVM_ARM_SET_DEVICE_ADDR +4.85 KVM_ARM_SET_DEVICE_ADDR Capability: KVM_CAP_ARM_SET_DEVICE_ADDR Architectures: arm, arm64 @@ -2362,7 +2377,7 @@ must be called after calling KVM_CREATE_IRQCHIP, but before calling KVM_RUN on any of the VCPUs. Calling this ioctl twice for any of the base addresses will return -EEXIST. -4.85 KVM_PPC_RTAS_DEFINE_TOKEN +4.86 KVM_PPC_RTAS_DEFINE_TOKEN Capability: KVM_CAP_PPC_RTAS Architectures: ppc