[PATCH 4/6] kvm: ppc: booke: Add shared struct helpers of SPRN_ESR

2014-07-15 Thread Bharat Bhushan
Add and use kvmppc_set_esr() and kvmppc_get_esr() helper functions Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/kvm_ppc.h | 1 + arch/powerpc/kvm/booke.c | 24 +++- 2 files changed, 4 insertions(+), 21 deletions(-) diff

[PATCH 2/6] kvm: ppc: booke: Use the shared struct helpers of SRR0 and SRR1

2014-07-15 Thread Bharat Bhushan
Use kvmppc_set_srr0/srr1() and kvmppc_get_srr0/srr1() helper functions Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/kvm/booke.c

[PATCH 3/6] kvm: ppc: booke: Use the shared struct helpers of SPRN_DEAR

2014-07-15 Thread Bharat Bhushan
Uses kvmppc_set_dar() and kvmppc_get_dar() helper functions Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 24 +++- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c

Re: [PATCH 0/3] KVM: Make KVM_CHECK_EXTENSION a VM ioctl

2014-07-15 Thread Alexander Graf
Am 15.07.2014 um 08:50 schrieb Cornelia Huck cornelia.h...@de.ibm.com: On Mon, 14 Jul 2014 19:03:35 +0200 Alexander Graf ag...@suse.de wrote: On PowerPC we have a small problem :). We can run both HV and PR style VMs on the same kvm fd. While this is great, it means that anything that's

Re: [PATCH 6/6] kvm: ppc: Add SPRN_SPR get helper function

2014-07-15 Thread mihai.cara...@freescale.com
kvmppc_set_epr() is already defined in asm/kvm_ppc.h, So rename and move get_epr helper function to same file. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/kvm_ppc.h | 9 + arch/powerpc/kvm/booke.c | 11 +-- 2 files

RE: Re: [PATCH 6/6] kvm: ppc: Add SPRN_SPR get helper function

2014-07-15 Thread bharat.bhus...@freescale.com
-Original Message- From: Caraman Mihai Claudiu-B02008 Sent: Tuesday, July 15, 2014 10:20 PM To: Alexander Graf Cc: Bhushan Bharat-R65777; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 6/6] kvm: ppc: Add SPRN_SPR get helper function kvmppc_set_epr() is already defined in

[PATCH] kvm: ppc: bookehv: Save restore SPRN_SPRG9 on guest entry exit

2014-07-15 Thread Bharat Bhushan
SPRN_SPRG is used by debug interrupt handler, so this is required for debug support. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/kvm_host.h | 1 + arch/powerpc/kernel/asm-offsets.c | 1 + arch/powerpc/kvm/bookehv_interrupts.S | 4 3 files