summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMichal Orzel <michal.orzel@arm.com>2022-06-09 11:57:48 +0200
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-06-20 12:08:37 -0400
commitb9a94a5fb6f608d53ddbfe2a60cbc8a670922550 (patch)
tree0fad48003cd7ec5ed2e8b94635c662b37989ff3a /classes
parent17f3d28228341b5fc80ffcfa8847f4cfb74991bf (diff)
downloadmeta-virtualization-b9a94a5fb6f608d53ddbfe2a60cbc8a670922550.tar.gz
xen: Disable highmem on qemuarm
By default, highmem option is enabled for machine types later than virt-2.12. This allows qemu to place devices and RAM in physical address space above 32-bits. This can cause issues as according to the documentation Xen supports up to 12GiB of physical address space. Recently the issue was observed using runqemu, that was causing Linux running on top of Xen to stall when trying to access ECAM space placed by qemu at 256GiB mark. Even though this issue is most probably related to QEMU and not Xen (the investigation showed that it can map ECAM space correctly), it is best to avoid such issues by disabling highmem on qemuarm. Signed-off-by: Michal Orzel <michal.orzel@arm.com> Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com> Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/qemuboot-xen-defaults.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/qemuboot-xen-defaults.bbclass b/classes/qemuboot-xen-defaults.bbclass
index f1550ccc..460cbe6a 100644
--- a/classes/qemuboot-xen-defaults.bbclass
+++ b/classes/qemuboot-xen-defaults.bbclass
@@ -23,8 +23,10 @@ QB_DEFAULT_KERNEL:qemuarm = "xen-${MACHINE}"
23 23
24# 64-bit Arm: gic version 3 24# 64-bit Arm: gic version 3
25QB_MACHINE:qemuarm64 = "-machine virt,gic-version=3 -machine virtualization=true" 25QB_MACHINE:qemuarm64 = "-machine virt,gic-version=3 -machine virtualization=true"
26# 32-bit Arm 26# 32-bit Arm: highmem=off
27QB_MACHINE:qemuarm = "-machine virt -machine virtualization=true" 27# Disable highmem so that qemu does not use highmem IO regions that end up
28# being placed at the 256GiB mark (e.g. ECAM space) and can cause issues in Xen.
29QB_MACHINE:qemuarm = "-machine virt,highmem=off -machine virtualization=true"
28 30
29# Increase the default qemu memory allocation to allow for the hypervisor. 31# Increase the default qemu memory allocation to allow for the hypervisor.
30# Use a weak assignment to allow for change of default and override elsewhere. 32# Use a weak assignment to allow for change of default and override elsewhere.