From: Ian Campbell Subject: Re: [PATCH OSSTEST] Configure the Calxeda fabric on host boot Date: Wed, 12 Feb 2014 11:50:09 +0000 Message-ID: <1392205809.13563.61.camel@kazak.uk.xensource.com> References: <1392201770-14927-1-git-send-email-ian.campbell@citrix.com> <21243.24311.41722.641547@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21243.24311.41722.641547@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-02-12 at 11:45 +0000, Ian Jackson wrote: > Ian Campbell writes ("[PATCH OSSTEST] Configure the Calxeda fabric on host boot"): > > The fabric on the Calxeda midway boxes (marilith-* in osstest) does > > not learn mac address (at least not with the firmware we have, and > > with Calxeda folding this seems unlikely to get fixed). This means > > that guests do not get network connectivity unless their mac > > addresses explicitly registered with the fabric. > > This looks mostly fine (well, FSVO "fine"!) to me, but: > > > + my $nr = get_host_property($ho, 'NRCXFabricMACs', 0); > > This shouldn't be a host property, but a global config option (or even > hardcoded). There should be a host flag for the bodge, probably > "need-calxeda-bridge-fixup" or something. equiv-marilith isn't suitable I take it? > And you could wrap these lines, while you're at it: > > > + target_putfile_root($ho, 10, "$images/iproute_${ver}_all.deb", "iproute_${ver}_all.deb"); > > + target_putfile_root($ho, 10, "$images/iproute2_${ver}_armhf.deb", "iproute2_${ver}_armhf.deb"); Sure. > Or replace this extensive code with something more condensed, e.g.: > > + my @debs = map { "iproute2_${ver}_${_}.deb" } qw(all armhf); This misses the iproute vs iproute2 distinction in the names, but I'll see if I can get something like this to work. > + target_putfile_root($ho, 10, "$images/$_", $_) foreach @debs; > + target_cmd_root($ho, "dpkg -i @debs"); > > Ian.