From patchwork Thu Jan 8 12:58:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 1367 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n08CtsxE031066 for ; Thu, 8 Jan 2009 04:55:54 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759178AbZAHM6z (ORCPT ); Thu, 8 Jan 2009 07:58:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757614AbZAHM6z (ORCPT ); Thu, 8 Jan 2009 07:58:55 -0500 Received: from relay3.sgi.com ([192.48.171.31]:56842 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755584AbZAHM6x (ORCPT ); Thu, 8 Jan 2009 07:58:53 -0500 Received: from eye3.emea.sgi.com (eye3.emea.sgi.com [144.253.156.24]) by relay3.corp.sgi.com (Postfix) with ESMTP id AEE25AC002; Thu, 8 Jan 2009 04:58:51 -0800 (PST) Message-ID: <4965F888.5010906@sgi.com> Date: Thu, 08 Jan 2009 13:58:48 +0100 From: Jes Sorensen User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: Avi Kivity , "kvm-ia64@vger.kernel.org" , "kvm@vger.kernel.org" Subject: [patch] ia64 - expose registers in struct kvm_regs Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi, I think this one got lost in the battle. Would you mind sticking it in or do you want me to send it to Tony? Cheers, Jes Provided register layout for struct kvm_regs exposed to userland. Signed-off-by: Jes Sorensen --- arch/ia64/include/asm/kvm.h | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) Index: linux-2.6.git/arch/ia64/include/asm/kvm.h =================================================================== --- linux-2.6.git.orig/arch/ia64/include/asm/kvm.h +++ linux-2.6.git/arch/ia64/include/asm/kvm.h @@ -162,7 +162,40 @@ unsigned long vcpuid[5]; unsigned long vpsr; unsigned long vpr; - unsigned long vcr[128]; + union { + unsigned long vcr[128]; + struct { + unsigned long dcr; + unsigned long itm; + unsigned long iva; + unsigned long rsv1[5]; + unsigned long pta; + unsigned long rsv2[7]; + unsigned long ipsr; + unsigned long isr; + unsigned long rsv3; + unsigned long iip; + unsigned long ifa; + unsigned long itir; + unsigned long iipa; + unsigned long ifs; + unsigned long iim; + unsigned long iha; + unsigned long rsv4[38]; + unsigned long lid; + unsigned long ivr; + unsigned long tpr; + unsigned long eoi; + unsigned long irr[4]; + unsigned long itv; + unsigned long pmv; + unsigned long cmcv; + unsigned long rsv5[5]; + unsigned long lrr0; + unsigned long lrr1; + unsigned long rsv6[46]; + }; + }; }; struct kvm_regs {