From: Ian Jackson Subject: Re: [PATCH OSSTEST] Configure the Calxeda fabric on host boot Date: Wed, 12 Feb 2014 11:45:59 +0000 Message-ID: <21243.24311.41722.641547@mariner.uk.xensource.com> References: <1392201770-14927-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1392201770-14927-1-git-send-email-ian.campbell@citrix.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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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. 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"); Or replace this extensive code with something more condensed, e.g.: + my @debs = map { "iproute2_${ver}_${_}.deb" } qw(all armhf); + target_putfile_root($ho, 10, "$images/$_", $_) foreach @debs; + target_cmd_root($ho, "dpkg -i @debs"); Ian.