]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch: Refine fwcfg memory map
authorBibo Mao <maobibo@loongson.cn>
Wed, 15 May 2024 09:39:24 +0000 (17:39 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 23 May 2024 01:30:41 +0000 (09:30 +0800)
commit3cc451cbcec746f2736bdc6b14acaf4936c83371
tree0686dbf80aae9718fcc9677099a1ad7520d00d69
parent09ec65794f8e1a344ccb231b53e7c39b664f4fa8
hw/loongarch: Refine fwcfg memory map

Memory map table for fwcfg is used for UEFI BIOS, UEFI BIOS uses the first
entry from fwcfg memory map as the first memory HOB, the second memory HOB
will be used if the first memory HOB is used up.

Memory map table for fwcfg does not care about numa node, however in
generic the first memory HOB is part of numa node0, so that runtime
memory of UEFI which is allocated from the first memory HOB is located
at numa node0.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240515093927.3453674-4-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/loongarch/virt.c