Re: [PATCH v8 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Scott Wood
On 03/07/2012 04:31 PM, Stuart Yoder wrote: > @@ -888,6 +891,10 @@ out: > > static int kvm_vm_ioctl_get_pvinfo(struct kvm_ppc_pvinfo *pvinfo) > { > +#ifdef CONFIG_KVM_BOOKE_HV > + u32 inst_sc1 = 0x4422; > + pvinfo->hcall[0] = inst_sc1; > +#else > u32 inst_lis = 0x3c00; >

[PATCH v8 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 And add a new flag definition in kvm_ppc_pvinfo to indicate whether host support EV_IDLE hcall. Signed-off-by: Liu Yu [stuart.yo...@freescale.com: fixes for conditions allowing idle] Signed-off-by: Stuart Yoder --- -v8: updated hcall instruction for e500mc to be sc 1 arc