From owner-freebsd-arm@FreeBSD.ORG Tue Dec 2 18:36:40 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05CFC45A for ; Tue, 2 Dec 2014 18:36:40 +0000 (UTC) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C4BD3F98 for ; Tue, 2 Dec 2014 18:36:39 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id p10so13702711pdj.11 for ; Tue, 02 Dec 2014 10:36:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=X5Op8ICs+XBRo0QRKJt9D4w6MuspzvQIWq3yN7h/cfw=; b=ZqlvcytjG8Ajz46LEWVaUTpHyhtfll18tnmKD/VX5DSYVIjALRs8cJae4F5kquBEHK 6rR5iYwOzL0ymOU1VUf6AX/+snTVNBrC/ld88vPGkXkZtcwGGMkURqvT7Q7vx9xscM5x 0rMC34ipWAtVTBy9xlHoNO+ys1dFAwgDv6Q6ZrstI4hwi+v28J7c6oJ1y9L72cGrP7im zcDWSWmA85lWHy7scCjRoPTFM+wSZoMyX4YW7JMae504CT0jin41w9lQMIh5AaQBYj73 HoUkt8JJNgrWpaN2GjxoWLLkc6vIKC2GOBGl4toDJvo3X0X0OlofMS+OHCl5jXuvNxio 9qjQ== X-Gm-Message-State: ALoCoQleHPJniT1twrm+mhL6SXg9NVwZRBerZ+yzN75AvtnsMTfbUMIQHae2J9E5goWf/zlCYG/j X-Received: by 10.66.221.168 with SMTP id qf8mr1192832pac.102.1417545018305; Tue, 02 Dec 2014 10:30:18 -0800 (PST) Received: from [10.64.24.134] ([69.53.236.236]) by mx.google.com with ESMTPSA id xk1sm12855272pab.13.2014.12.02.10.30.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 10:30:17 -0800 (PST) Sender: Warner Losh Subject: Re: [RFC v2] Add support for Xen ARM guest on FreeBSD Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_1310916B-3B53-4C5A-B293-E67B588CB60E"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b3 From: Warner Losh In-Reply-To: <547DDB4B.6060506@linaro.org> Date: Tue, 2 Dec 2014 11:30:14 -0700 Message-Id: References: <54726138.3090003@linaro.org> <20141128135737.23a71643@bender.lan> <547DDB4B.6060506@linaro.org> To: Julien Grall X-Mailer: Apple Mail (2.1993) X-Mailman-Approved-At: Tue, 02 Dec 2014 18:48:31 +0000 Cc: Ian Campbell , Stefano Stabellini , "xen-devel@lists.xen.org" , freebsd-xen@freebsd.org, freebsd-arm , Denis Schneider , gibbs@freebsd.org, roger.pau@citrix.com X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2014 18:36:40 -0000 --Apple-Mail=_1310916B-3B53-4C5A-B293-E67B588CB60E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hey Julien, Have you rebased your patch train after Andrew=E2=80=99s commits? Warner > On Dec 2, 2014, at 8:31 AM, Julien Grall = wrote: >=20 > Hello Andrew, >=20 > On 28/11/2014 13:57, Andrew Turner wrote: >> On Sun, 23 Nov 2014 22:35:36 +0000 >> Julien Grall wrote: >>> Major changes in this new version: >>> * Add Device Tree support via Linux Boot ABI >>> * Add zImage support >>> * Netfront support >>> * Blkfront fixes >>> * DOM0 support (separate branch see below) >>>=20 >>> The former item is very hackish. I was wondering if there is another >>> way to do it? Or maybe we should support FreeBSD Bootloader in ARM >>> guest? >>=20 >> I think using the loader is the correct way to handle booting in Xen. = It >> allows us to relocate the dtb as required. It look like a zImage then >> use the Xen console to interact with the user. >=20 > Thanks, I will give a look to this solution. >=20 >>>=20 >>> The patch series is divided in X parts: >>> * #1 - #14: Clean up and bug fixes for Xen. They can be >>> applied without the rest of the series >>> * #15 - #19: Update Xen interface to 4.4 and fix >>> compilation. It's required for ARM. >>> * #20 - #26: Update Xen code to support ARM >>> * #27 - #33: Rework the event channel code for supporting >>> ARM. I will work with Royger to come with a common interface with = x86 >>> * #34 - #36: Add support for ARM in Xen code >>> * #37 - #46: ARM bug fixes and new features. Some of thoses >>> patches (#37 - #40) could be applied without the rest of the series >>> * #47 - #48: Add Xen ARM platform >>=20 >> I have committed patches 30 and 40 as they look good. >=20 > Thanks! >=20 >> I'm not familiar >> with the code to review 37 or 38, however from my quick look at 38 I >> appears _bus_dmamap_load_buffer does take in to account buflen and >> dmat->maxsegsz when setting sgsize just not dmat->alignment. >=20 > Right, I guess I could just keep the roundup2. >=20 >>=20 >> ... >>>=20 >>> TODO: >>> * Add SMP/PSCI support in FreeBSD. Could be useful other >>> platform too >>=20 >> Adding PSCI support is on my TODO lost for arm64, however I don't >> expect to get on ti in until early next year. >=20 > BTW, what is the actual status of the ARM64 port? I plan to give a = look > for adding Xen support too. --Apple-Mail=_1310916B-3B53-4C5A-B293-E67B588CB60E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUfgU2AAoJEGwc0Sh9sBEAqIQP/Rx3lyiz1spiwso9X2aKl4qk RMCKlQPUsujqoNa29nEtzNjmRidzXbgm3VV/fBOXkLkKefZ8vwgVoPCHOBd/9zua qmnAGyfju+xDw5LPeRrsPOLXA4OctOPEG7vJy+52tdyKDYpB2F+P60Y8NuttL3wR sVrHbo7V9PzmoQBzFgmCWaMg1A86K6O50b9uRZREL8qX4x+cx/M97bUmH0AbaesE 5bA+Avn9RmN3lmaIWCcTFMDj6zkplLBOaB4pBMf5+JpDYw8Tm8kF7jWXkUgLqzRn 9HFLjJMlDDWSdyG0vOAzUeyaQBlg+u7LcpgIlkKk4awNcoLTc5uUvaDr+re8eYny eW1FBzyujK9N8Itc68m4k4CcYbBMlKLxzJHAnNt3Te+3JFrAIzI4H9cRX8Q1qmFC o+Nbr5h2S2rMZfl3qRtIj0JTtnRjs9PGug4Bv3vIVujBZ67rRepyMkuKjBrXfKBR lqTntSHnkD7jNEwyLBXxy50Mq9jJopI8uBEBmLWJ1RdEudcWlTSpxDEv5qiPjMhf XEeGg8CaEAY/vuixibDqzzM0MthX/XFAH3ubboAUPEGIPiAOXcMLMJOnw5JtrjZK zQ7UWQh2ie33Zb9LMrP3t6+71SN6G0ZbiDpRlD/RJ1neBpnsnQgwSkQBu7PPa+u/ gk/rYNoAnGOyvay0YYeV =gSrq -----END PGP SIGNATURE----- --Apple-Mail=_1310916B-3B53-4C5A-B293-E67B588CB60E--