[PATCH 1/1] Add Xen command line parsing

2025-04-23 Thread Aaron Rainbolt
Enable GRUB to parse the Xen command line for parameters, and expose certain of those parameters to the GRUB config file (or rescue shell) as environment variables. --- grub-core/Makefile.core.def | 2 + grub-core/kern/i386/xen/pvh.c | 16 ++ grub-core/kern/main.c | 12 ++ grub-core/

[PATCH 0/1] Add Xen command line parsing

2025-04-23 Thread Aaron Rainbolt
The purpose of this patch is to allow the Xen hypervisor to pass extra data to GRUB in the form of a kernel command line, allowing the host to customize the boot process of the guest. The command line from Xen is parsed, and any variables within that start with the string `xen_grub_env_` are expose

Re: [PATCH 1/2] Include function name on debug traces

2025-04-23 Thread Leo Sandoval via Grub-devel
On Wed, Apr 23, 2025 at 10:30 AM Vladimir 'phcoder' Serbinenko < phco...@gmail.com> wrote: > > > Le mer. 23 avr. 2025, 01:39, Leo Sandoval a écrit : > >> >> >> On Tue, Apr 15, 2025 at 9:28 AM Vladimir 'phcoder' Serbinenko < >> phco...@gmail.com> wrote: >> >>> What is the code size increase on i38

Re: [PATCH] Disable gfxterm_menu and cmdline_cat tests

2025-04-23 Thread Glenn Washburn
On Tue, 8 Apr 2025 18:51:38 + Vladimir Serbinenko wrote: > Those tests fail depending on the version of unifont. As we don't distribute > our own unifont it fails for most users. Disable them so that they don't mask > real failures. They can be reinstated once we solve unifont problem > > S

Re: [PATCH 1/3] Use ET_DYN instead of ET_REL modules

2025-04-23 Thread Glenn Washburn
On Tue, 8 Apr 2025 15:16:23 + Vladimir Serbinenko wrote: > ET_DYN also known as .so files are actually meant to be loaded dynamically. > Most of the work of linking is done by normal linker and we need to do > only simple relocation by offset. This significantly simplifies our > dynamic load

Re: [PATCH 1/2] Include function name on debug traces

2025-04-23 Thread Vladimir 'phcoder' Serbinenko
Le mer. 23 avr. 2025, 01:39, Leo Sandoval a écrit : > > > On Tue, Apr 15, 2025 at 9:28 AM Vladimir 'phcoder' Serbinenko < > phco...@gmail.com> wrote: > >> What is the code size increase on i386-pc? Did you test it? This is >> likely to result in a big one >> > > I did not test the binary size imp

Re: Testing for specific PCI devices

2025-04-23 Thread Vladimir 'phcoder' Serbinenko
Hello. Such a functionality would be beneficial for GRUB. For more details I'd have to see at least the proposed interface if not the actual patches Regards Vladimir 'phcoder' Serbinenko Le mer. 23 avr. 2025, 11:56, Yair Yarom a écrit : > Hi, > > We have a netboot environment, and for some mach

Testing for specific PCI devices

2025-04-23 Thread Yair Yarom
Hi, We have a netboot environment, and for some machines we need to add different kernel parameters (or different initrd) according to specific devices - usually network devices, iommu, etc. things that cannot be tuned after the kernel is up. For this we developed a 'testpci' grub command that ca