|
From: | David Hildenbrand |
Subject: | Re: [PATCH] mem/x86: add processor address space check for VM memory |
Date: | Mon, 18 Sep 2023 12:19:35 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 18.09.23 12:11, Ani Sinha wrote:
Ok hopefully my last question. I am still confused on something. Does the above mean that the hole64 will actually start from an address that is beyond maxram? Like basically if you added all of ram_below_4G, ram_above_4G, hot plug_mem and pci_hole64 then can it exceed maxram? I think it will. Does this not an issue?
If you'd have a 2 GiB VM, the device memory region and hole64 would always be placed >= 4 GiB address, yes.
As maxram is just a size, and not a PFN, I don't think there is any issue with that.
ms->maxram_size is usually only used in combination with ms->ram_size todetect if memory devices will be enabled, and to size that region for memory devices.
-- Cheers, David / dhildenb
[Prev in Thread] | Current Thread | [Next in Thread] |