meta-agl-jailhouse: Fix memmap command line parameter 84/26484/1
authorAnmol <anmol.karan123@gmail.com>
Mon, 5 Jul 2021 21:22:46 +0000 (23:22 +0200)
committerAnmol <anmol.karan123@gmail.com>
Mon, 5 Jul 2021 21:22:46 +0000 (23:22 +0200)
Jailhouse requires a contiguous piece of RAM for itself and additional
cells. This has to be preallocated during emulation of the image and
is typically done by adding `memmap=<size>$<memory_address>`, and here
escape sequencing before the dollar should only be added  when there is
a need to put this parameter in GRUB2 variables in /etc/default/grub.

Fix it by removing `\` escape sequence from memmap command line parameter
of the virtual machine's kernel.

Signed-off-by: Anmol <anmol.karan123@gmail.com>
Change-Id: I9981a359d1cb00900153e7692c6c1175cb0a3ce6

templates/feature/agl-jailhouse/50_local.conf.inc

index 565f961..081c53f 100644 (file)
@@ -14,7 +14,7 @@ QB_MACHINE_qemux86-64 = "-machine q35,kernel_irqchip=split -smp 4"
 QB_CPU_qemux86-64 = "-enable-kvm"
 QB_CPU_KVM_qemux86-64 = "-cpu host,-kvm-pv-eoi,-kvm-pv-ipi,-kvm-asyncpf,-kvm-steal-time,-kvmclock,-invpcid,-hypervisor"
 
-QB_KERNEL_CMDLINE_APPEND_append = " intel_iommu=off memmap=82M\$0x22000000"
+QB_KERNEL_CMDLINE_APPEND_append = " intel_iommu=off memmap=82M$0x22000000"
 
 QB_KERNEL_ROOT = "/dev/vda"
 QB_SERIAL_OPT = "-serial none -serial stdio -serial telnet:localhost:4321,server,nowait"
@@ -23,4 +23,4 @@ QB_SERIAL_OPT = "-serial none -serial stdio -serial telnet:localhost:4321,server
 # jailhouse needs ttyS1 in the agl-qemu.cell as debug console.
 # restrict the SERIAL_CONSOLES to ttyS0 only
 SERIAL_CONSOLES = "115200;ttyS0"
-KERNEL_CONSOLE = "ttyS0"
\ No newline at end of file
+KERNEL_CONSOLE = "ttyS0"