Re: [PATCH v5 2/7] powerpc/kernel: Add ucall_norets() ultravisor call handler

2019-08-21 Thread Claudio Carvalho
On 8/14/19 3:34 PM, Segher Boessenkool wrote: > On Wed, Aug 14, 2019 at 08:46:15PM +1000, Michael Ellerman wrote: >> Claudio Carvalho writes: >>> +_GLOBAL(ucall_norets) >>> +EXPORT_SYMBOL_GPL(ucall_norets) >>> + mfcrr0 >>> + stw r0,8(r1) >>> + >>> + sc 2 /*

Re: [PATCH v5 2/7] powerpc/kernel: Add ucall_norets() ultravisor call handler

2019-08-21 Thread Claudio Carvalho
On 8/14/19 7:46 AM, Michael Ellerman wrote: > Claudio Carvalho writes: >> diff --git a/arch/powerpc/kernel/ucall.S b/arch/powerpc/kernel/ucall.S >> new file mode 100644 >> index ..de9133e45d21 >> --- /dev/null >> +++ b/arch/powerpc/kernel/ucall.S >> @@ -0,0 +1,20 @@ >> +/*

Re: [PATCH v5 2/7] powerpc/kernel: Add ucall_norets() ultravisor call handler

2019-08-14 Thread Segher Boessenkool
On Wed, Aug 14, 2019 at 08:46:15PM +1000, Michael Ellerman wrote: > Claudio Carvalho writes: > > +_GLOBAL(ucall_norets) > > +EXPORT_SYMBOL_GPL(ucall_norets) > > + mfcrr0 > > + stw r0,8(r1) > > + > > + sc 2 /* Invoke the ultravisor */ > > + > > + lwz r0,8(r1)

Re: [PATCH v5 2/7] powerpc/kernel: Add ucall_norets() ultravisor call handler

2019-08-14 Thread Michael Ellerman
Claudio Carvalho writes: > diff --git a/arch/powerpc/kernel/ucall.S b/arch/powerpc/kernel/ucall.S > new file mode 100644 > index ..de9133e45d21 > --- /dev/null > +++ b/arch/powerpc/kernel/ucall.S > @@ -0,0 +1,20 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Generic code to