Kernel KVM-PPC virtualization development
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Alexander Graf <agraf@suse.de>, kvm-ppc@vger.kernel.org
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH 6/7] KVM: PPC: Book3S HV: Fix ABIv2 on LE
Date: Wed, 18 Jun 2014 15:33:46 +0000	[thread overview]
Message-ID: <87ha3ickfp.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <1403021847-57177-7-git-send-email-agraf@suse.de>

Alexander Graf <agraf@suse.de> writes:

> We use ABIv2 on Little Endian systems which gets rid of the dotted function
> names. Branch to the actual functions when we see such a system.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>

As per patches sent by anton we don't need this. We can branch to the
function rathen than the dot symbol

http://article.gmane.org/gmane.linux.ports.ppc.embedded/68925
http://article.gmane.org/gmane.linux.ports.ppc.embedded/71005

-aneesh

> ---
>  arch/powerpc/kvm/book3s_hv_rmhandlers.S | 22 ++++++++++++++--------
>  1 file changed, 14 insertions(+), 8 deletions(-)
>
> diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> index 1a71f60..1ff3ebd 100644
> --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> @@ -36,6 +36,12 @@
>  #define NAPPING_CEDE	1
>  #define NAPPING_NOVCPU	2
>  
> +#if defined(_CALL_ELF) && _CALL_ELF = 2
> +#define FUNC(name) 		name
> +#else
> +#define FUNC(name) 		GLUE(.,name)
> +#endif
> +
>  /*
>   * Call kvmppc_hv_entry in real mode.
>   * Must be called with interrupts hard-disabled.
> @@ -668,9 +674,9 @@ END_FTR_SECTION_IFCLR(CPU_FTR_TM)
>  
>  	mr	r31, r4
>  	addi	r3, r31, VCPU_FPRS_TM
> -	bl	.load_fp_state
> +	bl	FUNC(load_fp_state)
>  	addi	r3, r31, VCPU_VRS_TM
> -	bl	.load_vr_state
> +	bl	FUNC(load_vr_state)
>  	mr	r4, r31
>  	lwz	r7, VCPU_VRSAVE_TM(r4)
>  	mtspr	SPRN_VRSAVE, r7
> @@ -1414,9 +1420,9 @@ END_FTR_SECTION_IFCLR(CPU_FTR_TM)
>  
>  	/* Save FP/VSX. */
>  	addi	r3, r9, VCPU_FPRS_TM
> -	bl	.store_fp_state
> +	bl	FUNC(store_fp_state)
>  	addi	r3, r9, VCPU_VRS_TM
> -	bl	.store_vr_state
> +	bl	FUNC(store_vr_state)
>  	mfspr	r6, SPRN_VRSAVE
>  	stw	r6, VCPU_VRSAVE_TM(r9)
>  1:
> @@ -2405,11 +2411,11 @@ END_FTR_SECTION_IFSET(CPU_FTR_VSX)
>  	mtmsrd	r8
>  	isync
>  	addi	r3,r3,VCPU_FPRS
> -	bl	.store_fp_state
> +	bl	FUNC(store_fp_state)
>  #ifdef CONFIG_ALTIVEC
>  BEGIN_FTR_SECTION
>  	addi	r3,r31,VCPU_VRS
> -	bl	.store_vr_state
> +	bl	FUNC(store_vr_state)
>  END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
>  #endif
>  	mfspr	r6,SPRN_VRSAVE
> @@ -2441,11 +2447,11 @@ END_FTR_SECTION_IFSET(CPU_FTR_VSX)
>  	mtmsrd	r8
>  	isync
>  	addi	r3,r4,VCPU_FPRS
> -	bl	.load_fp_state
> +	bl	FUNC(load_fp_state)
>  #ifdef CONFIG_ALTIVEC
>  BEGIN_FTR_SECTION
>  	addi	r3,r31,VCPU_VRS
> -	bl	.load_vr_state
> +	bl	FUNC(load_vr_state)
>  END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
>  #endif
>  	lwz	r7,VCPU_VRSAVE(r31)

-aneesh


  reply	other threads:[~2014-06-18 15:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-17 16:17 [PATCH 0/7] KVM: PPC: Book3S HV: Enable on little endian hosts Alexander Graf
2014-06-17 16:17 ` [PATCH 1/7] PPC: Add asm helpers for BE 32bit load/store Alexander Graf
2014-06-17 16:17 ` [PATCH 2/7] KVM: PPC: Book3S HV: Make HTAB code LE host aware Alexander Graf
2014-06-17 16:17 ` [PATCH 3/7] KVM: PPC: Book3S HV: Access guest VPA in BE Alexander Graf
2014-06-17 16:17 ` [PATCH 4/7] KVM: PPC: Book3S HV: Access host lppaca and shadow slb " Alexander Graf
2014-06-17 16:17 ` [PATCH 5/7] KVM: PPC: Book3S HV: Access XICS " Alexander Graf
2014-06-17 16:17 ` [PATCH 6/7] KVM: PPC: Book3S HV: Fix ABIv2 on LE Alexander Graf
2014-06-18 15:33   ` Aneesh Kumar K.V [this message]
2014-06-18 15:23     ` Alexander Graf
2014-06-24 13:34       ` [PATCH v3 " Alexander Graf
2014-06-17 16:17 ` [PATCH 7/7] KVM: PPC: Book3S HV: Enable for little endian hosts Alexander Graf
2014-07-04  7:41 ` [PATCH 0/7] KVM: PPC: Book3S HV: Enable on " Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ha3ickfp.fsf@linux.vnet.ibm.com \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=agraf@suse.de \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox