Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

2015-08-04 Thread David Gibson
On Tue, Aug 04, 2015 at 09:54:44AM +0200, Andrew Jones wrote: > On Tue, Aug 04, 2015 at 02:11:30PM +1000, David Gibson wrote: > > On Mon, Aug 03, 2015 at 04:41:28PM +0200, Andrew Jones wrote: > > > Add enough RTAS support to support power-off, and apply it to > > > exit(). > > > > > > Signed-off-b

Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

2015-08-04 Thread David Gibson
On Tue, Aug 04, 2015 at 09:47:59AM +0200, Andrew Jones wrote: > On Tue, Aug 04, 2015 at 02:09:52PM +1000, David Gibson wrote: > > On Mon, Aug 03, 2015 at 07:08:17PM +0200, Paolo Bonzini wrote: > > > > > > > > > On 03/08/2015 16:41, Andrew Jones wrote: > > > > Add enough RTAS support to support po

Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

2015-08-04 Thread Paolo Bonzini
On 04/08/2015 09:47, Andrew Jones wrote: >> > In early development we did have a hypercall mediated virtio model, >> > but it was abandoned once we got PCI working. > So I think by yours and Alex's responses, if we want testdev support > then we should target using pci to expose it. I'm ok with t

Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

2015-08-04 Thread Andrew Jones
On Tue, Aug 04, 2015 at 03:15:25PM +0200, Paolo Bonzini wrote: > > > On 04/08/2015 09:47, Andrew Jones wrote: > >> > In early development we did have a hypercall mediated virtio model, > >> > but it was abandoned once we got PCI working. > > So I think by yours and Alex's responses, if we want te

Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

2015-08-04 Thread Andrew Jones
On Tue, Aug 04, 2015 at 02:11:30PM +1000, David Gibson wrote: > On Mon, Aug 03, 2015 at 04:41:28PM +0200, Andrew Jones wrote: > > Add enough RTAS support to support power-off, and apply it to > > exit(). > > > > Signed-off-by: Andrew Jones > > --- > > lib/powerpc/asm/rtas.h | 27 +++

Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

2015-08-04 Thread Andrew Jones
On Tue, Aug 04, 2015 at 02:03:24PM +1000, David Gibson wrote: > On Mon, Aug 03, 2015 at 04:41:28PM +0200, Andrew Jones wrote: > > Add enough RTAS support to support power-off, and apply it to > > exit(). > > > > Signed-off-by: Andrew Jones > > --- > > lib/powerpc/asm/rtas.h | 27 +++

Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

2015-08-04 Thread Andrew Jones
On Tue, Aug 04, 2015 at 02:09:52PM +1000, David Gibson wrote: > On Mon, Aug 03, 2015 at 07:08:17PM +0200, Paolo Bonzini wrote: > > > > > > On 03/08/2015 16:41, Andrew Jones wrote: > > > Add enough RTAS support to support power-off, and apply it to > > > exit(). > > > > > > Signed-off-by: Andrew

Re: [kvm-unit-tests PATCH 10/14] powerpc/ppc64: relocate linker VMAs

2015-08-04 Thread Andrew Jones
On Tue, Aug 04, 2015 at 01:53:24PM +1000, David Gibson wrote: > On Mon, Aug 03, 2015 at 04:41:27PM +0200, Andrew Jones wrote: > > QEMU loads the unit test, but due to the way it translates the > > unit test's linker VMA to the LMA, we can't just link such that > > VMA == LMA. Thus, we link with VMA

Re: [kvm-unit-tests PATCH 08/14] powerpc/ppc64: add HV putchar

2015-08-04 Thread Andrew Jones
On Tue, Aug 04, 2015 at 01:50:39PM +1000, David Gibson wrote: > On Mon, Aug 03, 2015 at 04:41:25PM +0200, Andrew Jones wrote: > > Add the hvcall for putchar and use it in puts. That, along with a > > couple more lines in start to prepare for C code, and a branch to > > main(), gets us "hello world"