On Mon, Apr 16, 2012 at 06:54:50PM +0200, Alexander Graf wrote:
>
> Yeah :(. I already have this patch in my tree to fix that:
...
> case KVM_REG_PPC_HIOR:
> - r = put_user(to_book3s(vcpu)->hior,
> -(u64 __user *)(long)reg->addr);
> +
On 01.04.2012, at 21:51, Andreas Schwab wrote:
> Alexander Graf writes:
>
>> @@ -662,6 +668,13 @@ static int kvm_vcpu_ioctl_set_one_reg(struct kvm_vcpu
>> *vcpu,
>> int r = -EINVAL;
>>
>> switch (reg->id) {
>> +#ifdef CONFIG_PPC_BOOK3S
>> +case KVM_ONE_REG_PPC_HIOR:
>> +
Alexander Graf writes:
> @@ -662,6 +668,13 @@ static int kvm_vcpu_ioctl_set_one_reg(struct kvm_vcpu
> *vcpu,
> int r = -EINVAL;
>
> switch (reg->id) {
> +#ifdef CONFIG_PPC_BOOK3S
> + case KVM_ONE_REG_PPC_HIOR:
> + r = get_user(to_book3s(vcpu)->hior, (u64 __user *)re
On 01/05/2012 09:59 PM, Alexander Graf wrote:
> diff --git a/arch/powerpc/include/asm/kvm.h b/arch/powerpc/include/asm/kvm.h
> index 25964ee..7e9e24d 100644
> --- a/arch/powerpc/include/asm/kvm.h
> +++ b/arch/powerpc/include/asm/kvm.h
> @@ -327,4 +327,6 @@ struct kvm_book3e_206_tlb_params {
>