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: 2475161 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 997AE40208 for ; Tue, 23 Apr 2013 02:04:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753498Ab3DWCEu (ORCPT ); Mon, 22 Apr 2013 22:04:50 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:55234 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751248Ab3DWCEt (ORCPT ); Mon, 22 Apr 2013 22:04:49 -0400 Received: by mail-pa0-f49.google.com with SMTP id kp14so146687pab.22 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=XxLiruTbzpgXenejNnBtLictWAAYTf43h6xRISJyAyz/c8Aa7h3m4CP/KY5Q7fnihs dRCrHNVyt/zhYoE4mhyVPEc/fSxHx+OMxDVajpiy4wKAgthJFnyiEqqidGlKtCvBZZ0+ QNkqj5x08BbEoz/rzPHD0d2d8vVODHdmzdjNYKhEg6BhbdKTjGYCz013QfvAToazgGsu dY4ZegNVP8YbJ6/nBDcQ2MOFoyLOJvQN7QQjto8g0R21NI/NuR94y1OEqwVNw2nU4Rhj h8rNwrvrQOopltOeJGp5liXJgKh/UBBPsZRHuPDITVK0Ctb5bnhgkR/qUyeIcFOSrl8Z Hblw== 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 Cc: linux-arm-kernel@lists.infradead.org, Christoffer Dall 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: ALoCoQlLPLYYzU6/6LkZ40/ODFFgQQ806A7HaHXJEf9pFhrNdz3t/DHJvW9Ok7ooiAOCSjANi08H Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.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