Skip to content

Fixes to simplify VTL1 boot sequence#652

Merged
tgopinath-microsoft merged 2 commits intomainfrom
user/thara/simplify-vtl1-boot
Apr 22, 2026
Merged

Fixes to simplify VTL1 boot sequence#652
tgopinath-microsoft merged 2 commits intomainfrom
user/thara/simplify-vtl1-boot

Conversation

@tgopinath-microsoft
Copy link
Copy Markdown
Contributor

Simplify VTL1 boot sequence by

  1. Removing the need for cmdline and bootparams pages
  2. Removing the need for boot signal page to bring up secondary processors

@tgopinath-microsoft
Copy link
Copy Markdown
Contributor Author

This need corresponding VTL0 Linux changes. Do not merge till that is ready. This was done as part of clean up for submitting the initial set of VTL0 patches upstream

@tgopinath-microsoft tgopinath-microsoft changed the title [DO NOT MERGE YET] User/thara/simplify vtl1 boot [DO NOT MERGE YET] Fixes to simplify VTL1 boot sequence Feb 9, 2026
@jaybosamiya-ms jaybosamiya-ms added the must-not-merge:blocked-on-other-changes Other changes/PRs to be handled first. Label not needed for non-main changes. label Feb 9, 2026
Comment thread litebox_platform_lvbs/src/host/bootparam.rs Outdated
@tgopinath-microsoft tgopinath-microsoft force-pushed the user/thara/simplify-vtl1-boot branch 2 times, most recently from 7c96da8 to 3575a94 Compare April 19, 2026 20:00
@tgopinath-microsoft tgopinath-microsoft changed the title [DO NOT MERGE YET] Fixes to simplify VTL1 boot sequence Fixes to simplify VTL1 boot sequence Apr 19, 2026
@tgopinath-microsoft tgopinath-microsoft removed the must-not-merge:blocked-on-other-changes Other changes/PRs to be handled first. Label not needed for non-main changes. label Apr 19, 2026
@tgopinath-microsoft tgopinath-microsoft force-pushed the user/thara/simplify-vtl1-boot branch from 3575a94 to 92772aa Compare April 20, 2026 21:56
Copy link
Copy Markdown
Contributor

@sangho2 sangho2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Overall, looks good to me. There is one uncertain change; let me test it as well.

Comment thread litebox_platform_lvbs/src/host/bootparam.rs
Comment thread litebox_runner_lvbs/src/main.rs
Comment thread litebox_runner_lvbs/src/main.rs Outdated
The need for bootparams and cmdline came from having a Linux secure kernel in
VTL1. With rust based Litebox as secure kernel, we no longer need these pages.
Instead pass the require boot info as arguments when primary cpu enters VTL1 the
first time to boot.
@tgopinath-microsoft tgopinath-microsoft force-pushed the user/thara/simplify-vtl1-boot branch from 92772aa to f8d9520 Compare April 21, 2026 12:16
@tgopinath-microsoft
Copy link
Copy Markdown
Contributor Author

Thanks! Overall, looks good to me. There is one uncertain change; let me test it as well.

Thanks for the review ! If you want to test it , use the thara/project/lvbs/6.6/main branch in https://dev.azure.com/msazure/LSG-linux/_git/LSG-linux-rolling?_a=history . And use azl3_lvbs_main_config to build the config

Copy link
Copy Markdown
Contributor

@sangho2 sangho2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Seems that we need to revert or change the default COM port number.

Comment thread litebox_platform_lvbs/src/arch/x86/ioport.rs Outdated
@sangho2
Copy link
Copy Markdown
Contributor

sangho2 commented Apr 21, 2026

Thanks! Overall, looks good to me. There is one uncertain change; let me test it as well.

Thanks for the review ! If you want to test it , use the thara/project/lvbs/6.6/main branch in https://dev.azure.com/msazure/LSG-linux/_git/LSG-linux-rolling?_a=history . And use azl3_lvbs_main_config to build the config

Thanks! Let me test it. One question: does this branch have OP-TEE support you've made as well?

@tgopinath-microsoft
Copy link
Copy Markdown
Contributor Author

No. though Angelina has a PR against this branch. Once this gets checked in, I will check in the other branch as well and then push in Angelina's PR

@tgopinath-microsoft tgopinath-microsoft force-pushed the user/thara/simplify-vtl1-boot branch from 6c607b8 to 12a1ddb Compare April 21, 2026 20:42
@github-actions
Copy link
Copy Markdown

🤖 SemverChecks 🤖 ⚠️ Potential breaking API changes detected ⚠️

Click for details
--- failure enum_missing: pub enum removed or renamed ---

Description:
A publicly-visible enum cannot be imported by its prior path. A `pub use` may have been removed, or the enum itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_missing.ron

Failed in:
  enum litebox_platform_lvbs::mshv::vtl1_mem_layout::VtlMemoryError, previously in file /home/runner/work/litebox/litebox/target/semver-checks/git-main/e218c7cc0b39b6a0402839f2d17ffb4c681921c3/litebox_platform_lvbs/src/mshv/vtl1_mem_layout.rs:123

--- failure function_missing: pub fn removed or renamed ---

Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/function_missing.ron

Failed in:
  function litebox_platform_lvbs::host::bootparam::parse_boot_info, previously in file /home/runner/work/litebox/litebox/target/semver-checks/git-main/e218c7cc0b39b6a0402839f2d17ffb4c681921c3/litebox_platform_lvbs/src/host/bootparam.rs:178

--- failure function_parameter_count_changed: pub fn parameter count changed ---

Description:
A publicly-visible function now takes a different number of parameters.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#fn-change-arity
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/function_parameter_count_changed.ron

Failed in:
  litebox_platform_lvbs::mshv::vsm::mshv_vsm_boot_aps now takes 1 parameters instead of 2, in /home/runner/work/litebox/litebox/litebox_platform_lvbs/src/mshv/vsm.rs:115

--- failure pub_module_level_const_missing: pub module-level const is missing ---

Description:
A public const is missing or renamed
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/pub_module_level_const_missing.ron

Failed in:
  VTL1_CMDLINE_PAGE in file /home/runner/work/litebox/litebox/target/semver-checks/git-main/e218c7cc0b39b6a0402839f2d17ffb4c681921c3/litebox_platform_lvbs/src/mshv/vtl1_mem_layout.rs:58
  HV_SECURE_VTL_BOOT_TOKEN in file /home/runner/work/litebox/litebox/target/semver-checks/git-main/e218c7cc0b39b6a0402839f2d17ffb4c681921c3/litebox_platform_lvbs/src/mshv/mod.rs:114
  VTL1_TOTAL_MEMORY_SIZE in file /home/runner/work/litebox/litebox/target/semver-checks/git-main/e218c7cc0b39b6a0402839f2d17ffb4c681921c3/litebox_platform_lvbs/src/mshv/vtl1_mem_layout.rs:16
  VTL1_BOOT_PARAMS_PAGE in file /home/runner/work/litebox/litebox/target/semver-checks/git-main/e218c7cc0b39b6a0402839f2d17ffb4c681921c3/litebox_platform_lvbs/src/mshv/vtl1_mem_layout.rs:57

@sangho2
Copy link
Copy Markdown
Contributor

sangho2 commented Apr 21, 2026

No. though Angelina has a PR against this branch. Once this gets checked in, I will check in the other branch as well and then push in Angelina's PR

That sounds like a chicken-and-egg problem because I need the OP-TEE support for adding features and fixing some bugs. Anyway, seems that I need to maintain my own branch for a while.

@tgopinath-microsoft tgopinath-microsoft added this pull request to the merge queue Apr 22, 2026
Merged via the queue into main with commit 23de1e9 Apr 22, 2026
14 checks passed
@tgopinath-microsoft tgopinath-microsoft deleted the user/thara/simplify-vtl1-boot branch April 22, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants