lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <55F16DF5.1080705@citrix.com>
Date:	Thu, 10 Sep 2015 12:48:05 +0100
From:	Julien Grall <julien.grall@...rix.com>
To:	Andrew Turner <andrew@...ar.geek.nz>,
	Shannon Zhao <zhaoshenglong@...wei.com>
CC:	<devicetree@...r.kernel.org>, <linux-efi@...r.kernel.org>,
	<ian.campbell@...rix.com>, <ard.biesheuvel@...aro.org>,
	<stefano.stabellini@...citrix.com>, <linux-doc@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>, <leif.lindholm@...aro.org>,
	<xen-devel@...ts.xen.org>, <freebsd-arm@...ebsd.org>,
	<matt.fleming@...el.com>, <christoffer.dall@...aro.org>,
	<jbeulich@...e.com>, <peter.huangpeng@...wei.com>,
	<linux-arm-kernel@...ts.infradead.org>, <shannon.zhao@...aro.org>,
	Roger Pau Monne <roger.pau@...rix.com>
Subject: Re: [PATCH] efi/libstub/fdt: Standardize the names of EFI stub parameters

On 10/09/15 12:32, Andrew Turner wrote:
> On Thu, 10 Sep 2015 16:41:56 +0800
> Shannon Zhao <zhaoshenglong@...wei.com> wrote:
> 
>> From: Shannon Zhao <shannon.zhao@...aro.org>
>>
>> These EFI stub parameters are used to internal communication between
>> EFI stub and Linux kernel and EFI stub creates these parameters. But
>> for Xen on ARM when booting with UEFI, Xen will create a minimal DT
>> providing these parameters for Dom0 and Dom0 is not only Linux
>> kernel, but also other OS (such as FreeBSD) which will be used in the
>> future. So here we plan to standardize the names by dropping the
>> prefix "linux," and make them common to other OS. Also this will not
>> break the compatibility since these parameters are used to internal
>> communication between EFI stub and kernel.
> 
> It is unlikely FreeBSD will use this property when booting ad Xen dom0.
> The kernel expects to be passed a data structure to find boot this
> information.
> 
> My preference would be to have the FreeBSD loader load the xen binary,
> the FreeBSD kernel, and set up these data structs before passing
> control to Xen, with the information it needs to boot the kernel. My
> understanding is this is how it is done on x86.

Well, AFAICT, there is no FreeBSD specific code in Xen for x86. We are
faking a multiboot module which contains all the informations.

I know that the bootloader is at least involved, I don't remember if
there is some code in FreeBSD to read this boot module. I've CCed Roger
to confirm.

> I can see a few issues with this where, for example, the device tree or
> ACPI tables need to be modified, but these should be solvable.

Xen has to modify the firmware table in order to remove everything that
it's used by itself (UART, virtual GIC...).

So we would need to modify the FreeBSD data structure to pass the new
DT/ACPI. Does the metadata are standardize? I.e is it stable from
accross FreeBSD version?

Anyway, I'd like to avoid any FreeBSD specific code in Xen, and even any
OS specific code in Xen. It's better if we keep a common interface for
everyone.

Regards,

-- 
Julien Grall
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ