Hi Avi, would you apply this patch? Looks like the corresponding qemu
patch went in a while ago, so the qemu build has been broken for some
time.

Signed-off-by: Hollis Blanchard <holl...@us.ibm.com>

-- 
Hollis Blanchard
IBM Linux Technology Center

On Thu, 2009-07-16 at 15:29 +0200, Alexander Graf wrote:
> Right now sregs is unused on PPC, so we can use it for initialization
> of the CPU.
> 
> KVM on BookE always virtualizes the host CPU. On Book3s we go a step further
> and take the PVR from userspace that tells us what kind of CPU we are supposed
> to virtualize, because we support Book3s_32 and Book3s_64 guests.
> 
> In order to get that information, we use the sregs ioctl, because we don't
> want to reset the guest CPU on every normal register set.
> 
> Signed-off-by: Alexander Graf <ag...@suse.de>
> ---
>  arch/powerpc/include/asm/kvm.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/kvm.h b/arch/powerpc/include/asm/kvm.h
> index bb2de6a..b82bd68 100644
> --- a/arch/powerpc/include/asm/kvm.h
> +++ b/arch/powerpc/include/asm/kvm.h
> @@ -46,6 +46,8 @@ struct kvm_regs {
>  };
> 
>  struct kvm_sregs {
> +     __u64 pvr;
> +     char pad[1016];
>  };
> 
>  struct kvm_fpu {

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to