From patchwork Tue Apr 30 14:49:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 2505171 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BE528E01D4 for ; Tue, 30 Apr 2013 14:50:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932465Ab3D3Ou3 (ORCPT ); Tue, 30 Apr 2013 10:50:29 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36701 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932433Ab3D3OuK (ORCPT ); Tue, 30 Apr 2013 10:50:10 -0400 Received: by mail-pa0-f44.google.com with SMTP id rl6so391137pac.31 for ; Tue, 30 Apr 2013 07:50:09 -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 :in-reply-to:references:x-gm-message-state; bh=PlPTs5RppCre2xISz1ShmpwICRL+lndsyqSQFePu5Mk=; b=aDNM17iOZQK7EV5zQ4Rr+N5vIsFcCtCd+rMSZVvgZ/GRYf1FA+IuZE6hqlabcZrDg6 lEMbK+fx4lUIviYIkpiC25MFLumN+Nq03CZ1IhM4zOZH3Dk5Basbo7wTOiEPTlP7ImUr mhpyc85Dck1YHnIV1NWDxEpUIZ3ZmozSBmlcQr7dDcIy9opbvc7EXN7doPzsrEnb+jOy 00drC7RjJ/HO9dGLBbkjcT2G+R96pHHoSJWlabn9VEt/1W/xIoRNwvDXikmR3VsozIsG YSjOxB0U3Jb8jNHijPxNCcOZ5z7AIGV2m45OsZbaFSxsLFFksaMivHHzDsrf5Vul4Oc5 ryBA== X-Received: by 10.68.230.66 with SMTP id sw2mr78876104pbc.85.1367333409635; Tue, 30 Apr 2013 07:50:09 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id cq1sm28799244pbc.13.2013.04.30.07.50.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Apr 2013 07:50:09 -0700 (PDT) From: Christoffer Dall To: kvm@vger.kernel.org Cc: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, Christoffer Dall Subject: [PATCH 12/15] KVM: ARM: Fix API documentation for ONE_REG encoding Date: Tue, 30 Apr 2013 07:49:33 -0700 Message-Id: <1367333376-30983-13-git-send-email-cdall@cs.columbia.edu> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367333376-30983-1-git-send-email-cdall@cs.columbia.edu> References: <1367333376-30983-1-git-send-email-cdall@cs.columbia.edu> X-Gm-Message-State: ALoCoQnPZ0ATqg2HUmUi6PtMNwJqlxsm94CVERDG1mg48DQs4SJ+NKsLOWBsdzd/uS3kzqonEicD 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 c09d183..59fd9e6 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt @@ -1814,22 +1814,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