From patchwork Tue Apr 23 02:05:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 2475171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 797043FCA5 for ; Tue, 23 Apr 2013 02:05:07 +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 1UUSbN-00047b-7h; Tue, 23 Apr 2013 02:05:01 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UUSbK-0005iT-Kv; Tue, 23 Apr 2013 02:04:58 +0000 Received: from mail-pd0-f177.google.com ([209.85.192.177]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UUSbF-0005hn-FI for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2013 02:04:57 +0000 Received: by mail-pd0-f177.google.com with SMTP id p11so87556pdj.36 for ; Mon, 22 Apr 2013 19:04:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=LbHmexXejHo4ltjAcnhD5rDlnOCOo9CVkAbgy1wNmEE=; b=NjdgdolbD3NO0yg+sYrtOfzpoz80qY9qMKqfUZhE28xYII17ymmdGWDOt65L6WF7LC Nimy1rvECSduJCDxTsw6DfsvvZtp/Zpxzj3oIl/jtub4on7dorB5Wkdp+0OjSTEDooTg 5H9m1OWlU6gZw4RKud0Ae27tfr0KPPg9B8TxXi3bJZK+VyYL54fA8uo8fJBRfkSYgVaF Fv/9lANQBoIcA9Cq8IBz3u1oTwutcXBWogKE2zd7ExBsovY7LAPa8JxTu4MsGoOr4KEU elcLK31MLVY48Zyn4fJHqMfvfrdsCFhJ5xQxZugKvHFIc269sFzQka0OvwYgqSJsA97q Yviw== X-Received: by 10.68.196.231 with SMTP id ip7mr35249237pbc.61.1366682688418; Mon, 22 Apr 2013 19:04:48 -0700 (PDT) Received: from chazy.8.8.4.4 (c-174-62-74-11.hsd1.ca.comcast.net. [174.62.74.11]) by mx.google.com with ESMTPS id aj2sm27351281pbc.1.2013.04.22.19.04.47 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 19:04:47 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH] KVM: ARM: Fix API documentation for ONE_REG encoding Date: Mon, 22 Apr 2013 19:05:02 -0700 Message-Id: <1366682702-23947-1-git-send-email-cdall@cs.columbia.edu> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQl6yVuB4bgKuINR0BWbkdUkAIRKfXYa6RSFEzMhZIwQ+QOdM+OhStk4RjC1tXKZ+c2GdJQZ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130422_220453_600777_31324152 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Christoffer Dall , linux-arm-kernel@lists.infradead.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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Unless I'm mistaken, the size field was encoded 4 bits off and a wrong value was used for 64-bit FP registers. Signed-off-by: Christoffer Dall --- Documentation/virtual/kvm/api.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 976eb65..7145ee9 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt @@ -1797,22 +1797,22 @@ ARM registers are mapped using the lower 32 bits. The upper 16 of that is the register group type, or coprocessor number: ARM core registers have the following id bit patterns: - 0x4002 0000 0010 + 0x4020 0000 0010 ARM 32-bit CP15 registers have the following id bit patterns: - 0x4002 0000 000F + 0x4020 0000 000F ARM 64-bit CP15 registers have the following id bit patterns: - 0x4003 0000 000F + 0x4030 0000 000F ARM CCSIDR registers are demultiplexed by CSSELR value: - 0x4002 0000 0011 00 + 0x4020 0000 0011 00 ARM 32-bit VFP control registers have the following id bit patterns: - 0x4002 0000 0012 1 + 0x4020 0000 0012 1 ARM 64-bit FP registers have the following id bit patterns: - 0x4002 0000 0012 0 + 0x4030 0000 0012 0 4.69 KVM_GET_ONE_REG