Skip to content
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

edk2: set SMM_REQUIRE=FALSE #145

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

mihalicyn
Copy link
Member

@mihalicyn mihalicyn commented Sep 7, 2023

It was reported [1] that on VM with relatively large amount (>12) of vCPUs boot process get stuck just after BdsDxe: loading Boot000C "ubuntu" from HD(15,GPT,...)/\EFI\ubuntu\shimx64.efi BdsDxe: starting Boot000C "ubuntu" from HD(15,GPT,... is printed to the VM console.

Matthew Parkinson (topic starter) discovered that disabling SMM_REQUIRE helps to fix issue.

Currently we don't know where the bug is, it can be Linux Kernel KVM, Qemu or EDK2. I'm on the way to make a good report for upstream developers.

I was able to reproduce an analogical issue on my laptop with VM that has 15 vCPUs and can confirm that SMM_REQUIRE=FALSE fixes issue for me too. Reproducer rate on my environment is like 1/10.

I believe that it makes sense to disable SMM as it should not make any troubles for our users but instead make VMs work for some users.

[1] https://discourse.ubuntu.com/t/lxd-vm-agent-fails-to-come-online-with-lxd-5-15-and-large-vm-resource-requirements

@mihalicyn mihalicyn requested a review from tomponline September 7, 2023 13:16
It was reported [1] that on VM with relatively large
amount (>12) of vCPUs boot process get stuck just after
BdsDxe: loading Boot000C "ubuntu" from HD(15,GPT,...)/\EFI\ubuntu\shimx64.efi
BdsDxe: starting Boot000C "ubuntu" from HD(15,GPT,...
is printed to the VM console.

Matthew Parkinson (topic starter) discovered that disabling SMM_REQUIRE
helps to fix issue.

Currently we don't know where the bug is, it can be Linux Kernel KVM,
Qemu or EDK2. I'm on the way to make a good report for upstream developers.

I was able to reproduce an analogical issue on my laptop with VM
that has 15 vCPUs and can confirm that SMM_REQUIRE=FALSE fixes issue for me too.
Reproducer rate on my environment is like 1/10.

I believe that it makes sense to disable SMM as it should not make
any troubles for our users but instead make VMs work for some users.

[1] https://discourse.ubuntu.com/t/lxd-vm-agent-fails-to-come-online-with-lxd-5-15-and-large-vm-resource-requirements

Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

Thanks!

@mihalicyn mihalicyn force-pushed the edk2_smm_require_false branch from c76472e to e7a700c Compare September 7, 2023 13:18
@tomponline tomponline merged commit 3b072c1 into canonical:latest-edge Sep 7, 2023
2 checks passed
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.

2 participants