Re: [PATCH v4 2/2] kern/xen: Add Xen command line parsing

2025-08-13 Thread Aaron Rainbolt
On Wed, 13 Aug 2025 16:27:11 +0200 Daniel Kiper wrote: > On Tue, Aug 12, 2025 at 06:55:15PM -0500, Aaron Rainbolt wrote: > > On Tue, 12 Aug 2025 19:02:11 +0200 Daniel Kiper > > wrote: > > > On Mon, Aug 04, 2025 at 11:50:09PM -0500, Aaron Rainbolt wrote: > >

Re: [PATCH v4 2/2] kern/xen: Add Xen command line parsing

2025-08-12 Thread Aaron Rainbolt
On Tue, 12 Aug 2025 19:02:11 +0200 Daniel Kiper wrote: > On Mon, Aug 04, 2025 at 11:50:09PM -0500, Aaron Rainbolt wrote: > > Xen traditionally allows customizing guest behavior by passing > > arguments to the VM kernel via the kernel command line. This is no > > longer pos

Re: [PATCH v4 1/2] include/xen: Rename MAX_GUEST_CMDLINE to GRUB_XEN_MAX_GUEST_CMDLINE

2025-08-12 Thread Aaron Rainbolt
n in the tip of GRUB's master branch and the version in the tip of Xen's stable-4.20 branch is provided below. [1] -- Aaron > Regards > Vladimir 'phcoder' Serbinenko > > Le mar. 5 août 2025, 07:49, Aaron Rainbolt a > écrit : > > > The xen.h header was

Re: [PATCH v4 2/2] kern/xen: Add Xen command line parsing

2025-08-07 Thread Aaron Rainbolt
On Mon, 4 Aug 2025 23:50:09 -0500 Aaron Rainbolt wrote: > Xen traditionally allows customizing guest behavior by passing > arguments to the VM kernel via the kernel command line. This is no > longer possible when using GRUB with Xen, as the kernel command line > is decided

[PATCH v4 2/2] kern/xen: Add Xen command line parsing

2025-08-04 Thread Aaron Rainbolt
cores are permitted in variable names, and all variable names must start with the string "xen_grub_env_". This also allows room for expanding the command line arguments accepted by GRUB in the future, should other arguments end up becoming desirable in the future. Signed-off-by: Aaron Rain

[PATCH v4 1/2] include/xen: Rename MAX_GUEST_CMDLINE to GRUB_XEN_MAX_GUEST_CMDLINE

2025-08-04 Thread Aaron Rainbolt
The xen.h header was using an overly generic name to refer to the maximum length of the command line passed from Xen to a guest. Rename it to avoid confusion or conflicts in the future. Signed-off-by: Aaron Rainbolt --- include/xen/xen.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v4 0/2] kern/xen: Add Xen command line parsing

2025-08-04 Thread Aaron Rainbolt
to ensure that boot still worked. [1] https://github.com/QubesOS/qubes-linux-pvgrub2/pull/16 [2] https://bpa.st/3SBQ Aaron Rainbolt (2): include/xen: Rename MAX_GUEST_CMDLINE to GRUB_XEN_MAX_GUEST_CMDLINE kern/xen: Add Xen command line parsing docs/grub.texi| 51 + gr

Re: [RESEND PATCH v3 1/1] kern/xen: Add Xen command line parsing

2025-08-04 Thread Aaron Rainbolt
On Mon, 4 Aug 2025 17:17:43 +0200 Daniel Kiper wrote: > On Sun, Aug 03, 2025 at 10:57:03AM -0500, Aaron Rainbolt wrote: > > On Fri, 1 Aug 2025 14:55:36 +0200 Daniel Kiper > > wrote: > > > On Fri, Jul 25, 2025 at 03:31:12PM -0500, Aaron Rainbolt wrote: > >

Re: [RESEND PATCH v3 1/1] kern/xen: Add Xen command line parsing

2025-08-03 Thread Aaron Rainbolt
On Fri, 1 Aug 2025 14:55:36 +0200 Daniel Kiper wrote: > On Fri, Jul 25, 2025 at 03:31:12PM -0500, Aaron Rainbolt wrote: > > Xen traditionally allows customizing guest behavior by passing > > arguments to the VM kernel via the kernel command line. This is no > > longer pos

[RESEND PATCH v3 0/1] kern/xen: Add Xen command line parsing

2025-07-25 Thread Aaron Rainbolt
ion (one memory leak and a couple of places where an extra byte was allocated that didn't need to be). [1] https://github.com/QubesOS/qubes-linux-pvgrub2/pull/16 [2] https://lists.gnu.org/archive/html/grub-devel/2025-06/msg00011.html Aaron Rainbolt (1): kern/xen: Add Xen command line

[RESEND PATCH v3 1/1] kern/xen: Add Xen command line parsing

2025-07-25 Thread Aaron Rainbolt
cores are permitted in variable names, and all variable names must start with the string "xen_grub_env_". This also allows room for expanding the command line arguments accepted by GRUB in the future, should other arguments end up becoming desirable in the future. Signed-off-by: Aaron Rain

Re: [RESEND PATCH v3 0/1] kern/xen: Add Xen command line parsing

2025-07-25 Thread Aaron Rainbolt
rub-devel ML on it so as to avoid excessive noise). [1] https://lists.xenproject.org/archives/html/xen-devel/2025-06/msg00298.html [2] https://lists.xenproject.org/archives/html/xen-devel/2025-06/msg00299.html -- Aaron > Daniel > > On Mon, Jul 21, 2025 at 06:42:25PM -0500, Aaron Rainbol

[RESEND PATCH v3 1/1] kern/xen: Add Xen command line parsing

2025-07-21 Thread Aaron Rainbolt
cores are permitted in variable names, and all variable names must start with the string "xen_grub_env_". This also allows room for expanding the command line arguments accepted by GRUB in the future, should other arguments end up becoming desirable in the future. Signed-off-by: Aaron Rain

[RESEND PATCH v3 0/1] kern/xen: Add Xen command line parsing

2025-07-21 Thread Aaron Rainbolt
ion (one memory leak and a couple of places where an extra byte was allocated that didn't need to be). [1] https://github.com/QubesOS/qubes-linux-pvgrub2/pull/16 [2] https://lists.gnu.org/archive/html/grub-devel/2025-06/msg00011.html Aaron Rainbolt (1): kern/xen: Add Xen command line

[PATCH v3 1/1] kern/xen: Add Xen command line parsing

2025-06-04 Thread Aaron Rainbolt
cores are permitted in variable names, and all variable names must start with the string "xen_grub_env_". This also allows room for expanding the command line arguments accepted by GRUB in the future, should other arguments end up becoming desirable in the future. Signed-off-by: Aaron Rain

[PATCH v3 0/1] kern/xen: Add Xen command line parsing

2025-06-04 Thread Aaron Rainbolt
s://bpa.st/5C7A Aaron Rainbolt (1): kern/xen: Add Xen command line parsing docs/grub.texi| 50 + grub-core/Makefile.core.def | 2 + grub-core/kern/i386/xen/pvh.c | 14 ++ grub-core/kern/main.c | 12 ++ grub-core/kern/xen/cmdline.c | 343

[PATCH v2 1/1] kern/xen: Add Xen command line parsing

2025-05-30 Thread Aaron Rainbolt
cores are permitted in variable names, and all variable names must start with the string "xen_grub_env_". This also allows room for expanding the command line arguments accepted by GRUB in the future, in case additional APIs using the Xen kernel command line need to be introduced. Signe

[PATCH v2 0/1] Xen: Add Xen command line parsing

2025-05-30 Thread Aaron Rainbolt
6 [2] https://bpa.st/Z45A Aaron Rainbolt (1): kern/xen: Add Xen command line parsing docs/grub.texi| 50 + grub-core/Makefile.core.def | 2 + grub-core/kern/i386/xen/pvh.c | 14 ++ grub-core/kern/main.c | 12 ++ grub-core/

Re: [PATCH 0/1] Add Xen command line parsing

2025-05-28 Thread Aaron Rainbolt
h. > Regards > Vladimir 'phcoder' Serbinenko > > Le jeu. 24 avr. 2025, 05:47, Aaron Rainbolt a > écrit : > > > 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 > > t

Re: [PATCH 1/1] Add Xen command line parsing

2025-05-28 Thread Aaron Rainbolt
On Wed, 28 May 2025 17:12:19 +0200 Daniel Kiper wrote: > First of all, next time please add Xen-devel ML to recipients too... Apologies, didn't realize that list would be appropriate. I will add them in the next version of the patch. > On Wed, Apr 23, 2025 at 09:47:48PM -0500, Aar

[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
features are added to GRUB that use the Xen-provided kernel command line. * Testing has been done as described above. [1] https://github.com/QubesOS/qubes-linux-pvgrub2/pull/16 [2] https://lists.gnu.org/archive/html/grub-devel/2025-04/msg00050.html Aaron Rainbolt (1): Add Xen command line

[DRAFT PATCH 0/1] Add Xen command line parsing

2025-04-04 Thread Aaron Rainbolt
9000 instead of 0x10: ld.gold bug? This issue occurs using the BFD and LLD linkers, gold ends up placing the start address at 0x9072. Aaron Rainbolt (1): Add Xen command line parsing grub-core/Makefile.core.def | 4 +- grub-core/kern/i386/xen/p

[DRAFT PATCH 1/1] Add Xen command line parsing

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

Determining when paging is and isn't enabled in GRUB

2025-03-31 Thread Aaron Rainbolt
I'm currently writing a patch for GRUB intended for the Qubes OS project (though I may later try to upstream it if it proves to work well downstream). [1] The patch's goal is to allow Xen hypervisor users to pass data to GRUB via command line arguments. This data is exposed as environment variables

Make it possible to hide error messages in GRUB configuration files

2024-12-14 Thread Aaron Rainbolt
Currently GRUB spits out quite a bit of information if a command fails for whatever reason. This is useful for sure, but in some instances it can be quite annoying. For instance, Debian's live-build project has GRUB configuration code in it that basically tries to load a font blindly, if it works i

loadenv.c - How to check if a file is writable or not?

2024-03-15 Thread Aaron Rainbolt
Good morning/evening, and thanks for your time. I'm currently attempting to implement a patch in the GRUB that will allow the `load_env` command to set an environment variable in the event the grubenv file can be read from but cannot be written to (for instance, if the file is on a BTRFS files