From: Tej Subject: Re: Explicit return type for Hypercall Date: Thu, 9 Apr 2009 17:58:37 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Thu, Apr 9, 2009 at 4:50 PM, Keir Fraser wro= te: > On 09/04/2009 11:38, "Tej" wrote: > >> eg in GCOV case, I issued hypercall, when there is no corresponding >> entry in Hypervisor, it gives -38<3> as return type. and Kernel Send a >> message to userspace (in case of kernel module) as Kernel does not >> have module support, which is total misleading. > > The return code is ENOSYS, which is appropriate for an unimplemented > hypercall. Still it could be misleading, because in case of kernel modules "module-uti"l packages overrides ENOSYS with message as "Kernel does not have module support" an explicit return type could be useful here. > > =A0-- Keir > > >