[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [RFC] UEFI Secure Boot on Xen Hosts
On Tue, 5 May 2020 at 23:58, Bobby Eshleman <bobbyeshleman@xxxxxxxxx> wrote: > > On Thu, Apr 30, 2020 at 01:41:12PM +0200, Ard Biesheuvel wrote: > > On Thu, 30 Apr 2020 at 13:15, Daniel Kiper <daniel.kiper@xxxxxxxxxx> wrote: > > > Anyway, the advantage of this new protocol is that it uses UEFI API to > > > load and execute PE kernel and its modules. This means that it will be > > > architecture independent. However, IIRC, if we want to add new modules > > > types to the Xen then we have to teach all bootloaders in the wild about > > > new GUIDs. Ard, am I correct? > > > > > > > Well, if you are passing multiple files that are not interchangeable, > > each bootloader will need to do something, right? It could be another > > GUID, or we could extend the initrd media device path to take > > discriminators. > > > > So today, we have > > > > VendorMedia(5568e427-68fc-4f3d-ac74-ca555231cc68) > > > > which identifies /the/ initrd on Linux. As long as this keeps working > > as intended, I have no objections extending this to > > > > VendorMedia(5568e427-68fc-4f3d-ac74-ca555231cc68)/File(...) > > > > etc, if we can agree that omitting the File() part means the unnamed > > initrd, and that L"initrd" is reserved as a file name. That way, you > > can choose any abstract file name you want, but please note that the > > loader still needs to provide some kind of mapping of how these > > abstract file names relate to actual files selected by the user. > > This seems reasonable to me and I can't think of any good reason right > now, if we go down this path, to not just extend the initrd media device > path (as opposed to creating one that is Xen-specific). It definitely > beats having a GUID per boot module since the number of modules changes > per Xen deployment, so there would need to be some range of GUIDs > representing modules specifically for Xen, and some rules as to how they > are mapped to real files. > > It does seem simpler to ask the loader for "dom0's kernel" or "dom1's > initrd" and to have the loader use these references to grab real files. > Yes. And note that using a single GUID + File component is easier on the implementation too: the protocol implementation has to be registered only once, and the single callback that exists will be invoked with different values for 'FilePath', corresponding with different values for File(). For example, in [0], this maps to the check at line 120, where we currently only consider the 'end-of-device-path' terminator type to be valid, but this could easily be extended to parse the contents of a subsequent file node and resolve it to grab some actual contents. [0] https://github.com/u-boot/u-boot/commit/ec80b4735a593961fe701cc3a5d717d4739b0fd0 > > One thing to keep in mind, though, is that this protocol goes away > > after ExitBootServices(). > > > > Roger that. > > > Thanks, > > -Bobby
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |