diff mbox

ia64 - expose registers in struct kvm_regs

Message ID 4965F888.5010906@sgi.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jes Sorensen Jan. 8, 2009, 12:58 p.m. UTC
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 <jes@sgi.com>

---
 arch/ia64/include/asm/kvm.h |   35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

Comments

Zhang, Xiantao Jan. 8, 2009, 1:50 p.m. UTC | #1
Avi can pickup it into kvm.git, and seems it is unnecessary to push into 2.6.29, right ? 
Xiantao

Jes Sorensen wrote:
> 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Avi Kivity Jan. 8, 2009, 2:01 p.m. UTC | #2
Jes Sorensen wrote:
> 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?

Applied, thanks.  It's a kvm file so kvm.git is the right path.
Jes Sorensen Jan. 8, 2009, 2:12 p.m. UTC | #3
Zhang, Xiantao wrote:
> Avi can pickup it into kvm.git, and seems it is unnecessary to push into 2.6.29, right ? 
> Xiantao

Yes, it's not urgent, if we get it in within a reasonable amount of
time, thats ok.

Thanks Avi!

Cheers,
Jes


> Jes Sorensen wrote:
>> 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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 {