wsla: add support for ARM64 (#13762)

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
This commit is contained in:
Ben Hillis 2025-11-21 17:01:41 -08:00 committed by GitHub
parent e702db9d5c
commit 4017d23ac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,7 +250,9 @@ void WSLAVirtualMachine::Start()
auto kernelPath = std::filesystem::path(WSL_KERNEL_PATH);
#else
auto kernelPath = std::filesystem::path(basePath) / L"tools" / LXSS_VM_MODE_KERNEL_NAME;
#endif
if constexpr (!wsl::shared::Arm64)
@ -262,11 +264,9 @@ void WSLAVirtualMachine::Start()
}
else
{
// TODO
THROW_HR(E_NOTIMPL);
auto bootThis = hcs::UefiBootEntry{};
bootThis.DeviceType = hcs::UefiBootDevice::VmbFs;
// bootThis.VmbFsRootPath = m_rootFsPath.c_str();
bootThis.VmbFsRootPath = (basePath / L"tools").c_str();
bootThis.DevicePath = L"\\" LXSS_VM_MODE_KERNEL_NAME;
bootThis.OptionalData = kernelCmdLine;
hcs::Uefi uefiSettings{};