Re: [PATCH 4/6] kvmppc: magic page hypercall - host part

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 23, 2008 at 10:36:45AM +0200, ehrhardt@xxxxxxxxxxxxxxxxxx wrote:

Hi Christian,

>  long kvm_arch_dev_ioctl(struct file *filp,
>                          unsigned int ioctl, unsigned long arg)
>  {
> -	return -EINVAL;
> +	long r = -EINVAL;
> +
> +	switch (ioctl) {
> +	case KVM_GET_PPCPV_MAGICPAGE_SIZE:
> +		r = -EINVAL;

Not needed you set it on the declaration.

> +		if (arg)
> +			goto out;
> +		r = 1024;

Ummm what does 1024 represent? can it me #defined? or at least add a
comment.

> +		break;
> +	default:
> +		r = -EINVAL;

Not needed you set it on the declaration.

> +	}
> +out:
> +	return r;
>  }

Yours Tony

  linux.conf.au    http://www.marchsouth.org/
  Jan 19 - 24 2009 The Australian Linux Technical Conference!

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

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux