Re: [PATCH] bookehv: Handle debug exception on guest exit

2013-04-11 Thread Kumar Gala
On Apr 5, 2013, at 2:53 AM, Bhushan Bharat-R65777 wrote: > Hi Kumar/Benh, > > After further looking into the code I think that if we correct the vector > range below in DebugDebug handler then we do not need the change I provided > in this patch. > > Here is the snapshot for 32 bit (head_book

Re: [PATCH][v4] PPC: add paravirt idle loop for 64-bit book E

2013-03-13 Thread Kumar Gala
On Feb 8, 2013, at 1:22 PM, Stuart Yoder wrote: > From: Stuart Yoder > > Signed-off-by: Stuart Yoder > --- > > -removed KVM prefix to patch subject, patch is not KVM specific > > arch/powerpc/kernel/epapr_hcalls.S |2 ++ > arch/powerpc/kernel/idle_book3e.S | 32

Re: [PATCH 2/4] powerpc/booke: Merge the 32 bit e5500/e500mc cpu setup code.

2012-08-06 Thread Kumar Gala
On Aug 4, 2012, at 1:31 PM, Sethi Varun-B16395 wrote: > > >> -Original Message----- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Friday, August 03, 2012 10:04 PM >> To: Sethi Varun-B16395 >> Cc: ag...@suse.de; b...@kernel.crashing.org

Re: [PATCH 3/4] powerpc/booke: Separate out restore_e5500/setup_e5500 routines.

2012-08-04 Thread Kumar Gala
On Jul 9, 2012, at 8:01 AM, Varun Sethi wrote: > For the 64 bit case separate out e5500 cpu_setup and cpu_restore functions. > The cpu_setup function (for the primary core) is passed the cpu_spec pointer, > which is not there in case of the cpu_restore function. Also, in our case > we will have t

Re: [PATCH 2/4] powerpc/booke: Merge the 32 bit e5500/e500mc cpu setup code.

2012-08-04 Thread Kumar Gala
On Jul 9, 2012, at 7:58 AM, Varun Sethi wrote: > Merge the 32 bit cpu setup code for e500mc/e5500 and define the "cpu_restore" > routine (for e5500/e6500) only for the 64 bit case. The cpu_restore routine > is used in the 64 bit case for setting up the secondary cores. > > Signed-off-by: Varun S

Re: [PATCH 1/4] powepc/booke: Separate out E.HV check and ivor setup code.

2012-08-04 Thread Kumar Gala
On Jul 9, 2012, at 7:55 AM, Varun Sethi wrote: > Move the E.HV check and CPU_FTR_EMB_HV flag manipulation to the cpu setup > code. > Create a separate routine for E.HV ivors setup. > > Signed-off-by: Varun Sethi > --- > arch/powerpc/kernel/cpu_setup_fsl_booke.S | 29 +

Re: [PATCH 4/4] powerpc/booke: Add CPU_FTR_EMB_HV check for e5500.

2012-08-03 Thread Kumar Gala
On Jul 9, 2012, at 8:04 AM, Varun Sethi wrote: > Added CPU_FTR_EMB_HV feature check for e550. > > Signed-off-by: Varun Sethi > Signed-off-by: Mihai Caraman > --- > arch/powerpc/kernel/cpu_setup_fsl_booke.S |6 ++ > 1 files changed, 6 insertions(+), 0 deletions(-) [ fixed typo e550 -> e

Re: [PATCH v2 1/2] powerpc/e500: make load_up_spe a normal fuction

2012-07-10 Thread Kumar Gala
On Feb 29, 2012, at 7:20 PM, Olivia Yin wrote: > From: Liu Yu > > So that we can call it when improving SPE switch like book3e did for fp > switch. > > Signed-off-by: Liu Yu > Signed-off-by: Olivia Yin > --- > v2: add Signed-off-by > > arch/powerpc/kernel/head_fsl_booke.S | 23 ++--

Re: [PATCH] powerpc/e6500: add CPU_FTR_EMB_HV to CPU table

2012-04-13 Thread Kumar Gala
c support") collided during merge, leaving e6500's CPU > table entry missing CPU_FTR_EMB_HV. > > Signed-off-by: Scott Wood > --- > Fixup patch for the KVM merge as requested by Marcelo. > > arch/powerpc/include/asm/cputable.h |2 +- > 1 files changed, 1 in

Re: [PATCH 12/38] powerpc/booke: Provide exception macros with interrupt name

2012-03-21 Thread Kumar Gala
On Mar 21, 2012, at 1:19 PM, Scott Wood wrote: > On 03/21/2012 01:04 PM, Kumar Gala wrote: >> >> On Feb 28, 2012, at 6:09 PM, Alexander Graf wrote: >> >>> From: Scott Wood >>> >>> DO_KVM will need to identify the particular exception type

Re: [PATCH 02/13] powerpc/e500: SPE register saving: take arbitrary struct offset

2011-05-18 Thread Kumar Gala
booke.S |6 +++--- > 2 files changed, 19 insertions(+), 15 deletions(-) Acked-by: Kumar Gala [ Alex, let me know if you want this via my powerpc.git tree or your kvm tree ] - k -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to ma

Re: [PATCH 01/13] powerpc/e500: Save SPEFCSR in flush_spe_to_thread()

2011-05-18 Thread Kumar Gala
booke.S |2 -- > arch/powerpc/kernel/process.c|1 + > arch/powerpc/kernel/traps.c |5 +---- > 3 files changed, 2 insertions(+), 6 deletions(-) Acked-by: Kumar Gala [ Alex, let me know if you want this via my powerpc.git tree or your kvm tree ] - k-- To unsubscr

Re: [linuxppc-release] [PATCH v4 2/4] powerpc/e500: SPE register saving: take arbitrary struct offset

2011-03-30 Thread Kumar Gala
On Mar 30, 2011, at 5:00 PM, Scott Wood wrote: > This allows reuse for saving/restoring KVM SPE state. Can you update commit comment to include a little about how we accomplish that. (something about the macro change is all I'm looking for) [otherwise ACK] > > Signed-off-by: Scott Wood > -

Re: [PATCH] powerpc: remove fpscr use from [kvm_]cvt_{fd,df}

2010-08-23 Thread Kumar Gala
On Aug 22, 2010, at 7:23 PM, Michael Neuling wrote: >> Neither lfs nor stfs touch the fpscr, so remove the restore/save of it >> around them. > > Do some 32 bit processors need this? > > In 32 bit before the merge, we use to have code that did: > > #if defined(CONFIG_4xx) || defined(CONFIG_E

Re: [PATCH 00/27] KVM PPC PV framework v3

2010-08-06 Thread Kumar Gala
On Jul 29, 2010, at 7:47 AM, Alexander Graf wrote: > [without] > > debian-powerpc:~# time for i in {1..1000}; do /bin/echo hello > /dev/null; > done > > real0m14.659s > user0m8.967s > sys 0m5.688s > > [with] > > debian-powerpc:~# time for i in {1..1000}; do /bin/echo hello > /dev

info registers working?

2009-11-05 Thread Kumar Gala
Should 'info registers' work? I'm getting a segfault: (qemu) info registers NIP c000ca38 LR c040290c CTR c004a290 XER 2000 MSR 00029002 HID0 HF idx 1 Segmentation fault This is w/top of qemu. I'm trying to use the mpc8544 target. - k -- To unsubscribe from this list:

Re: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file

2009-01-07 Thread Kumar Gala
/arch/powerpc/include/asm/mmu-fsl-booke.h +++ b/arch/powerpc/include/asm/mmu-fsl-booke.h @@ -73,6 +73,8 @@ #ifndef __ASSEMBLY__ +extern unsigned int tlbcam_index; + typedef struct { unsigned long id; unsigned long vdso_base; -- 1.5.4 Acked-by: Kumar Gala (Hollis will you deal

Re: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file

2009-01-05 Thread Kumar Gala
I'll pick this up, but wondering about this patch vs Trent's changes to remove this. How is KVM on fsl-booke using this value? - k On Jan 4, 2009, at 12:57 AM, Liu Yu wrote: Hi Kumar, Can I get your ack? So that I can submit this patch through KVM tree. -Original Message- From:

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

2008-10-13 Thread Kumar Gala
On Oct 13, 2008, at 12:29 PM, Hollis Blanchard wrote: On Mon, 2008-10-13 at 11:42 -0500, Kumar Gala wrote: + +/* Hypercalls use the beat ABI */ +#define KVM_HYPERCALL_BIN 0x4422 Any reason this isn't 'sc' ? Also, can we make this "sc 1" so its works when we h

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

2008-10-13 Thread Kumar Gala
On Sep 16, 2008, at 1:27 AM, [EMAIL PROTECTED] wrote: From: Christian Ehrhardt <[EMAIL PROTECTED]> This adds the guest portion of the hypercall infrastructure. Version 3 now follows the beat ABI, but proposes a new implementation style as static inline asm functions instead of pure assemble

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 4/4] kvmppc: convert wrteei to wrtee as kvm guest optimization

2008-08-22 Thread Kumar Gala
On Aug 22, 2008, at 3:08 AM, Christian Ehrhardt wrote: Scott Wood wrote: On Thu, Aug 21, 2008 at 09:21:39AM -0500, Kumar Gala wrote: Where is the other discussion? I'd like to understand what's going on here.. (especially since I added the wrtee[i] changes to kernel way

Re: [PATCH 4/4] kvmppc: convert wrteei to wrtee as kvm guest optimization

2008-08-21 Thread Kumar Gala
On Aug 21, 2008, at 9:13 AM, Christian Ehrhardt wrote: Kumar Gala wrote: On Aug 19, 2008, at 5:36 AM, [EMAIL PROTECTED] wrote: From: Christian Ehrhardt <[EMAIL PROTECTED]> Dependent on the already existing CONFIG_KVM_GUEST config option this patch changes wrteei to wrtee allowi

Re: [PATCH 4/4] kvmppc: convert wrteei to wrtee as kvm guest optimization

2008-08-21 Thread Kumar Gala
On Aug 19, 2008, at 5:36 AM, [EMAIL PROTECTED] wrote: From: Christian Ehrhardt <[EMAIL PROTECTED]> Dependent on the already existing CONFIG_KVM_GUEST config option this patch changes wrteei to wrtee allowing the hypervisor to rewrite those to nontrapping instructions. Maybe we should split