summaryrefslogtreecommitdiffstats
path: root/classes/qemuboot-xen-defaults.bbclass
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2022-05-09 11:57:05 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-05-09 12:22:11 -0400
commit27e5ade0abc2660226389b8b62ef07d85f4b8758 (patch)
tree3d37ab6e263c0cc6c4290e3c85e5f1b5a79a794e /classes/qemuboot-xen-defaults.bbclass
parentbd66956ceb4f13fae1dd67a16c4f310e1c860210 (diff)
downloadmeta-virtualization-27e5ade0abc2660226389b8b62ef07d85f4b8758.tar.gz
Revert "qemuboot, xen-image-minimal: enable runqemu for qemuarm Xen images"
This reverts commit 1c746a976830ebaf85c7c8c25612bea349b0a7c5. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'classes/qemuboot-xen-defaults.bbclass')
-rw-r--r--classes/qemuboot-xen-defaults.bbclass26
1 files changed, 5 insertions, 21 deletions
diff --git a/classes/qemuboot-xen-defaults.bbclass b/classes/qemuboot-xen-defaults.bbclass
index 62bbf8fd..c7e74c3e 100644
--- a/classes/qemuboot-xen-defaults.bbclass
+++ b/classes/qemuboot-xen-defaults.bbclass
@@ -10,37 +10,21 @@ DOM0_KERNEL ??= "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}"
10DOM0_KERNEL_LOAD_ADDR ??= "0x45000000" 10DOM0_KERNEL_LOAD_ADDR ??= "0x45000000"
11QB_XEN_DOMAIN_MODULES ??= "${DOM0_KERNEL}:${DOM0_KERNEL_LOAD_ADDR}:multiboot,kernel" 11QB_XEN_DOMAIN_MODULES ??= "${DOM0_KERNEL}:${DOM0_KERNEL_LOAD_ADDR}:multiboot,kernel"
12 12
13# Qemuboot for 32-bit Arm loads Xen via device loader parameter rather than
14# kernel and boots using u-boot as bios
15XEN_BINARY ??= "${DEPLOY_DIR_IMAGE}/xen-${MACHINE}"
16QB_XEN_LOAD_ADDR ??= "0x46000000"
17QB_OPT_APPEND:append:qemuarm = " \
18 -device loader,file=${XEN_BINARY},addr=${QB_XEN_LOAD_ADDR},force-raw=on \
19 -device loader,file=${DOM0_KERNEL},addr=${DOM0_KERNEL_LOAD_ADDR} \
20 -bios ${DEPLOY_DIR_IMAGE}/u-boot.bin \
21 "
22QB_DEFAULT_KERNEL:qemuarm = "none"
23
24# Qemuboot for 64-bit Arm uses the QB_DEFAULT_KERNEL method to load Xen 13# Qemuboot for 64-bit Arm uses the QB_DEFAULT_KERNEL method to load Xen
25# and the device loader option for the dom0 kernel: 14# and the device loader option for the dom0 kernel:
26QB_OPT_APPEND:append:qemuarm64 = " \ 15QB_OPT_APPEND:append:aarch64 = " \
27 -device loader,file=${DOM0_KERNEL},addr=${DOM0_KERNEL_LOAD_ADDR} \ 16 -device loader,file=${DOM0_KERNEL},addr=${DOM0_KERNEL_LOAD_ADDR} \
28 " 17 "
29QB_DEFAULT_KERNEL:qemuarm64 = "xen-${MACHINE}" 18QB_DEFAULT_KERNEL:aarch64 = "xen-${MACHINE}"
30 19
31# 32-bit Arm: gic version 2
32QB_MACHINE:qemuarm = "-machine virt -machine virtualization=true"
33# 64-bit Arm: gic version 3 20# 64-bit Arm: gic version 3
34QB_MACHINE:qemuarm64 = "-machine virt,gic-version=3 -machine virtualization=true" 21QB_MACHINE:aarch64 = "-machine virt,gic-version=3 -machine virtualization=true"
35 22
36# Increase the default qemu memory allocation to allow for the hypervisor. 23# Increase the default qemu memory allocation to allow for the hypervisor.
37# Use a weak assignment to allow for change of default and override elsewhere. 24# Use a weak assignment to allow for change of default and override elsewhere.
38QB_MEM_VALUE ??= "512" 25QB_MEM_VALUE ??= "512"
39QB_MEM = "-m ${QB_MEM_VALUE}" 26QB_MEM = "-m ${QB_MEM_VALUE}"
40 27
41# 32-bit Arm: qemuboot with a u-boot script image
42QB_XEN_U_BOOT_SCR:qemuarm = "boot.scr.uimg"
43
44# 64-bit Arm: qemuboot with a device tree binary 28# 64-bit Arm: qemuboot with a device tree binary
45QB_DTB:qemuarm64 = "${IMAGE_NAME}.qemuboot.dtb" 29QB_DTB:aarch64 = "${IMAGE_NAME}.qemuboot.dtb"
46QB_DTB_LINK:qemuarm64 = "${IMAGE_LINK_NAME}.qemuboot.dtb" 30QB_DTB_LINK:aarch64 = "${IMAGE_LINK_NAME}.qemuboot.dtb"