Firecracker injects virtio-mmio device descriptors to the command line
using the Linux format. Enable VIRTIO_MMIO_LINUX_COMPAT_CMDLINE for
Firecracker.
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Rares Miculescu <miculescur@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1116
libvirtio_mmio.device = <size>@<base>:<irq>[:<id>]
-
endif
*sz = strtoull(size_str, &endptr, 0);
switch (*endptr) {
- case 'k':
- case 'K':
+ case 'g':
+ case 'G':
*sz *= 1024;
- ++endptr;
- break;
+ __fallthrough;
case 'm':
case 'M':
- *sz *= 1024 * 1024;
- ++endptr;
- break;
- case 'g':
- case 'G':
- *sz *= 1024 * 1024 * 1024;
+ *sz *= 1024;
+ __fallthrough;
+ case 'k':
+ case 'K':
+ *sz *= 1024;
++endptr;
break;
default:
bool "Firecracker"
select KVM_BOOT_PROTO_LXBOOT
select HAVE_MMIO
+ select VIRTIO_MMIO_LINUX_COMPAT_CMDLINE
imply LIBUKINTCTLR_GICV3 if ARCH_ARM_64
depends on ARCH_X86_64 || ARCH_ARM_64