From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: Use PCI ROMs from EFI boot services Date: Wed, 05 Dec 2012 16:21:32 -0800 Message-ID: <50BFE50C.8030008@zytor.com> References: <1345739803-21017-1-git-send-email-mjg@redhat.com> <20121203200241.GG5906@thinkpad-t410> <20121206001819.GA30527@srcf.ucam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20121206001819.GA30527@srcf.ucam.org> Sender: linux-pci-owner@vger.kernel.org To: Matthew Garrett Cc: Yinghai Lu , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-efi@vger.kernel.org, mfleming@intel.com, dwmw2@infradead.org, "Eric W. Biederman" List-Id: linux-efi@vger.kernel.org On 12/05/2012 04:18 PM, Matthew Garrett wrote: > On Wed, Dec 05, 2012 at 04:15:56PM -0800, Yinghai Lu wrote: > >> at the same time we should export setup_data into /sys, so kexec could >> append this pointer to command of >> second kernel, just like kexec append acpi_rsdp. >> That should address DavidW's concern. > > Why should the kernel export data to userspace just so that that data > can be passed back into the kernel? > Because it also needs to modify it. Right now kexec userspace synthesizes struct boot_params from scratch, and does so incorrectly to boot. I think we have setup_data exported via debugfs but IIRC we never got a strong enough use case for sysfs. -hpa