-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiboot2: Switch to using SLRT interface #14
Conversation
12f3a3e
to
87f124a
Compare
87f124a
to
94c7f4f
Compare
94c7f4f
to
d702cf5
Compare
Just extract grub_slaunch_add_slrt_policy_entry() calls into separate functions to be able to call them in needed order. Signed-off-by: Sergii Dmytruk <[email protected]>
GRUB_MULTIBOOT(get_mbi_size) doesn't look like an accurate source of the final size, more like a minimal memory buffer size. Signed-off-by: Sergii Dmytruk <[email protected]>
d702cf5
to
d6cd478
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With these changes I can boot into Xen, however it still doesn't fully work. Depending on whether I comment out grub_multiboot2_set_video_mode()
(to get final lines printed on VGA) Xen either hangs somewhere (if not commented out) or reboots with TXT.ERRORCODE set to 0x8000000a (commented out).
d6cd478
to
03579a7
Compare
Which commit of TrenchBoot/xen#7 was used? 0x8000000a is that "catch all" error code which doesn't mean much. I guess this also tests changes from #13. |
03579a7
to
e1bdaf2
Compare
The code makes sure that MBI entry goes first in DRTM, so the payload can measure it first on launch. SLRT table is allocated on the heap first, size for it is reserved inside TXT heap by TXT code and data is later copied into its final place. Signed-off-by: Sergii Dmytruk <[email protected]>
e1bdaf2
to
b293777
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that GRUB side works, but Xen still triple-faults. I'm approving this PR but I'll hold with merging until I can confirm that only Xen needs changes.
No description provided.