From owner-freebsd-xen@FreeBSD.ORG Tue Dec 2 15:31:36 2014 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CAAA1C16 for ; Tue, 2 Dec 2014 15:31:36 +0000 (UTC) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) (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 83F1C940 for ; Tue, 2 Dec 2014 15:31:36 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id j7so8966144qaq.15 for ; Tue, 02 Dec 2014 07:31:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=C5dSbRjt6cnv5aVYpi9MVPWQgb1Eqa3N/plkAxL9zyQ=; b=QoE7BEESwEF93+g2kC66zQJbpqDhqbWZZ8ljyOSVmMtXyf36XHRiWYmPz/sRVSpGKd BUnv5/zMNXGeXF7TZm/s5u/erYIqnvTdtiu3H9gif8dQ9WZ0NCdeAatQ4RttqkfluUXD gjrJ0DhR6zR2dX9fHCF8yMBH7RPn1nGqZBr3tlqgH6+p/bE+cIHOw6lTbc5qbSoFrRkz 2uhHDlP31wXKBGcOzn2bCl9CJkOfdktNYqtSevmFd0wH0bPHovsY/jLSG56pqorP/iPv I5DJKUiPb8SHFxPzToi3u9nqm6pA84ywVenLZGgAnvodQ/LBcQANkYGSZxr+FNadGzQ6 5bOg== X-Gm-Message-State: ALoCoQn/dwS8vNxqDbxLqwEQnjqyJl/6eqzi97rmOteNieKMGfs0GEloahoi9rQevLOqUa14xK+R X-Received: by 10.229.97.73 with SMTP id k9mr75283408qcn.15.1417534288818; Tue, 02 Dec 2014 07:31:28 -0800 (PST) Received: from Juliens-MacBook-Pro.local ([185.25.64.249]) by mx.google.com with ESMTPSA id k4sm20686774qaf.0.2014.12.02.07.31.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Dec 2014 07:31:28 -0800 (PST) Message-ID: <547DDB4B.6060506@linaro.org> Date: Tue, 02 Dec 2014 15:31:23 +0000 From: Julien Grall User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Andrew Turner Subject: Re: [RFC v2] Add support for Xen ARM guest on FreeBSD References: <54726138.3090003@linaro.org> <20141128135737.23a71643@bender.lan> In-Reply-To: <20141128135737.23a71643@bender.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Ian Campbell , Stefano Stabellini , "xen-devel@lists.xen.org" , freebsd-xen@freebsd.org, freebsd-arm@freebsd.org, Denis Schneider , gibbs@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2014 15:31:37 -0000 Hello Andrew, 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) >> >> 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? > > 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. Thanks, I will give a look to this solution. >> >> 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 > > I have committed patches 30 and 40 as they look good. Thanks! > 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. Right, I guess I could just keep the roundup2. > > ... >> >> TODO: >> * Add SMP/PSCI support in FreeBSD. Could be useful other >> platform too > > Adding PSCI support is on my TODO lost for arm64, however I don't > expect to get on ti in until early next year. BTW, what is the actual status of the ARM64 port? I plan to give a look for adding Xen support too. Regards, -- Julien Grall