From: "Jan Beulich" Subject: Re: [PATCH v2 1/6] xen: xensyms support Date: Tue, 10 Jun 2014 15:51:19 +0100 Message-ID: <539737870200007800019964@mail.emea.novell.com> References: <1402076686-26586-1-git-send-email-boris.ostrovsky@oracle.com> <1402076686-26586-2-git-send-email-boris.ostrovsky@oracle.com> <539708A0.1020604@citrix.com> <53971B05.6020107@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53971B05.6020107@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel , Boris Ostrovsky Cc: kevin.tian@intel.com, dietmar.hahn@ts.fujitsu.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 10.06.14 at 16:49, wrote: > On 06/10/2014 09:31 AM, David Vrabel wrote: >> >>> --- /dev/null >>> +++ b/drivers/xen/xenfs/xensyms.c >>> @@ -0,0 +1,124 @@ >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include "xenfs.h" >>> + >>> + >>> +#define XEN_KSYM_NAME_LEN 127 /* Hypervisor may have different name length > */ >> Shouldn't this be exported in the hypervisor headers then? > > > Jan objected to having this as part of the interface so now we pass this > as a parameter to the hypervisor. I may return Xen's symbol length and, > if it is larger than XEN_KSYM_NAME_LEN, do a WARN_ONCE() (in the next > spin of the patch). The result of my objection should be you not hardcoding any number... Jan