WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] Re: [rfc][patch] privcmp from user and kernel

To: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Subject: [XenPPC] Re: [rfc][patch] privcmp from user and kernel
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Tue, 06 Jun 2006 16:30:22 -0500
Cc: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 06 Jun 2006 14:29:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1Fnhqa-0003pf-Cv@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <E1Fnhqa-0003pf-Cv@xxxxxxxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-06-06 at 16:08 -0400, Jimi Xenidis wrote:
> Hollis,
> I think I got this right, I need to make the priv hcall available for
> the kernel as well. Does this look right to you?

Looks good, except this one part:

...
> +     case XENMEM_populate_physmap:
> +     case XENMEM_current_reservation:
> +     case XENMEM_maximum_reservation:
> +     case XENMEM_machphys_mfn_list:
> +     case XENMEM_add_to_physmap:
> +     case XENMEM_translate_gpfn_list:

Did you mean to let all these fall through to default? Why not just omit
them, and add them later as we handle them?

> +     default:
> +             printk("%s: unknown grant table op %d\n", __func__, cmd);
>               ret = -ENOSYS;
> -             goto out;
> -     }
...

-- 
Hollis Blanchard
IBM Linux Technology Center


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>