-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Investigate boot freeze on AMD Zen #815
Comments
Does the AMD system have Recent Linux kernels refuse to boot if they don't get enough entropy. |
Yes, it has
|
Here is where it freezes: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/kernel/cpu/intel_cacheinfo.c?h=v4.14.91#n631 (line 631 - 636) . It gets stuck in an infinite loop |
The kernel expects to find a line where
I tried to bypass this problem and the guest booted successfully. |
I just realized that if the host runs kernel 4.14 the issue doesn't occur. Here is why: KVM wasn't enabling |
Another thing that seems to work is to set the I noticed that this is what KVM does natively for Intel CPUs: https://github.com/torvalds/linux/blob/4064e47c82810586975b4304b105056389beaa06/arch/x86/kvm/cpuid.c#L461 |
FYI: I ran into to the same problem and worked around it by overriding cpuid 0x0 to an Intel Processor, as most of the firecracker cpuid is intel only anyways (Multicore enumeration via x2apic, HT handling, Brand-string, all cpuids above 0x80000002)
As a user that's probably what i expect to see anyway when i select a intel based cpu-template. |
Thank you for the information ! It's interesting that this works. Anyway, while this is ok as a workaround I'm not sure what side effects it might have. As a long term fix we will emulate the extended cache topology from userspace. |
fixes firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
fixes firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
fixes firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
fixes firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
The helper methods are needed for adding AMD support firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
The helper methods are needed for adding AMD support firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
The helper methods are needed for adding AMD support firecracker-microvm#815 Signed-off-by: Serban Iorga <seriorga@amazon.com>
Here is the full boot log:
After
random: crng init done
the instance freezes without throwing any exception.The text was updated successfully, but these errors were encountered: