From: Christoph Egger <Christoph.Egger@amd.com>
To: Gianni Tedesco <gianni.tedesco@citrix.com>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>,
Xen Devel <xen-devel@lists.xensource.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: [PATCH,v2] xl: randomly generate UUID's
Date: Fri, 20 Aug 2010 17:44:21 +0200 [thread overview]
Message-ID: <201008201744.22093.Christoph.Egger@amd.com> (raw)
In-Reply-To: <1282316999.3731.64.camel@qabil.uk.xensource.com>
On Friday 20 August 2010 17:09:59 Gianni Tedesco wrote:
> On Mon, 2010-08-16 at 16:05 +0100, Christoph Egger wrote:
> > On Monday 16 August 2010 16:48:56 Gianni Tedesco wrote:
> > > This patch converts xl to randomly generate UUID's rather than using a
> > > dodgy time-seeded PRNG. I have incorporated Cristoph Eggers suggestions
> > > wrt. portability so I would be grateful for an ACK on the NetBSD side
> > > of things. This also folds in the "v2: xl: make libxl_uuid2string
> > > internal to libxenlight" patch since it couldn't be avoided in fixing
> > > up xl printfs() which grok around in the uuid type directly.
> > >
> > > I have ignored various suggestions so far on auto-generation of MAC
> > > addresses and left it as a topic for a future patch to solve. In other
> > > words the behaviour stays the same it's just using a true random
> > > source.
> > >
> > > This will probably conflict horribly with "libxl: autogenerate type
> > > definitions and destructor functions" so if it's acked in principle I
> > > can re-base and re-send on top of that.
> >
> > Please do. The patch looks almost good to me - see line comments -
> > I would like to compile-test it at least on NetBSD before acknowledging
> > the patch.
> >
> > Christoph
> >
> > > Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
> > >
> > > diff -r 85bd0f6e8fed tools/libxl/Makefile
> > > --- a/tools/libxl/Makefile Fri Aug 13 13:55:51 2010 +0100
> > > +++ b/tools/libxl/Makefile Mon Aug 16 15:39:13 2010 +0100
> > > @@ -16,6 +16,9 @@ CFLAGS += -I. -fPIC
> > > CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest)
> > > $(CFLAGS_libxenstore) $(CFLAGS_libblktapctl)
> > >
> > > LIBS = $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest)
> > > $(LDLIBS_libxenstore) $(LDLIBS_libblktapctl) $(UTIL_LIBS)
> > > +ifeq ($(CONFIG_Linux),y)
> > > +LIBS += -luuid
> > > +endif
> >
> > This is not needed because $(UTIL_LIBS) already covers that case.
>
> Not sure what you mean by this, if I omit that linen the I get link
> errors. That's the way it's done in tools/blktap2/ and I just copied
> that.
Oh, sorry. I mixed up -lutil with -luuid and thought we have UUID_LIBS.
Maybe we should add to config/StdGNU.mk
UUID_LIBS = -luuid
and to config/NetBSD.mk
UUID_LIBS =
and then use $(UUID_LIBS).
Christoph
> Am about to re-base and re-send this patch so please clarify if this is
> indeed wrong for some reason.
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
next prev parent reply other threads:[~2010-08-20 15:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-16 14:48 [PATCH,v2] xl: randomly generate UUID's Gianni Tedesco
2010-08-16 15:05 ` Christoph Egger
2010-08-20 15:09 ` Gianni Tedesco
2010-08-20 15:44 ` Christoph Egger [this message]
2010-08-20 15:43 ` Gianni Tedesco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008201744.22093.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=gianni.tedesco@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.