Re: [RFC FIX PATCH] x86/e820: Stop kernel boot when RAM resource reservation fails

From: Bharata B Rao
Date: Mon Jul 18 2022 - 10:54:26 EST




On 7/18/2022 4:12 PM, Boris Petkov wrote:
> On July 18, 2022 8:58:15 AM UTC, Bharata B Rao <bharata@xxxxxxx> wrote:
>> Currently it is possible to start a guest with memory that
>> is beyond the addressable range of CPU. This can typically
>> be done by using QEMU without explicilty specifying the max
>> physical addressable bits (via phys-bits or host-phys-bits
>> options). In such cases QEMU will start the guest with more
>> than 1TB memory but would implicitly limit the phys-bits to 40.
>
> Why does the upstream kernel care about some weird qemu guest configurations?

It may be a weird guest configuration, but it looks like
a kernel bug exposed by QEMU.

Regards,
Bharata