Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-22 Thread Kumar Gala
On Aug 19, 2008, at 5:36 AM, [EMAIL PROTECTED] wrote: From: Christian Ehrhardt [EMAIL PROTECTED] This adds the guest portion of the hypercall infrastructure, basically an illegal instruction with a defined layout. See http://kvm.qumranet.com/kvmwiki/PowerPC_Hypercall_ABI for more detail

Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-21 Thread Hollis Blanchard
On Tue, 2008-08-19 at 13:28 +0200, Arnd Bergmann wrote: On Tuesday 19 August 2008, [EMAIL PROTECTED] wrote: +static inline long kvm_hypercall1(unsigned int nr, unsigned long p1) +{ + register unsigned long hcall asm (r0) = nr; + register unsigned long arg1 asm (r3) = p1; +

Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-20 Thread Christian Ehrhardt
Arnd Bergmann wrote: On Tuesday 19 August 2008, [EMAIL PROTECTED] wrote: +static inline long kvm_hypercall1(unsigned int nr, unsigned long p1) +{ + register unsigned long hcall asm (r0) = nr; + register unsigned long arg1 asm (r3) = p1; + register long ret asm (r11); + +

[PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-19 Thread ehrhardt
From: Christian Ehrhardt [EMAIL PROTECTED] This adds the guest portion of the hypercall infrastructure, basically an illegal instruction with a defined layout. See http://kvm.qumranet.com/kvmwiki/PowerPC_Hypercall_ABI for more detail on the hypercall ABI for powerpc. Signed-off-by: Christian

Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-19 Thread Arnd Bergmann
On Tuesday 19 August 2008, [EMAIL PROTECTED] wrote: +static inline long kvm_hypercall1(unsigned int nr, unsigned long p1) +{ +   register unsigned long hcall asm (r0) = nr; +   register unsigned long arg1 asm (r3) = p1; +   register long ret asm (r11); + +   asm