Skip to content

Commit

Permalink
examples: add nvme-cortext-a57.conf
Browse files Browse the repository at this point in the history
nvme-aarch64 configuration example is now intented to be used as
virtualization. Add cortex-a57 emulation example with had before but
with a separate configuration file overwriting the GUEST_CPU.

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
  • Loading branch information
dkruces committed Aug 29, 2024
1 parent ae462a2 commit 731a9fb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/vm/nvme-cortex-a57.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

GUEST_BOOT_BASE="img/debian-13-genericcloud-arm64.qcow2"
GUEST_CPU="cortex-a57"

source "aarch64-virt-base.conf"

_setup_nvme_aarch64() {
# setup basevm
_setup_aarch64_virt_base

# pcie root port
qemu_pcie_add_root_port "pcie_root_port0" \
--chassis 1 --slot 0

# nvme controller
qemu_nvme_add_ctrl "nvme0" \
--serial "deadbeef" \
--port "pcie_root_port0" \
--extra "mdts=7"

# nvme namespace
qemu_nvme_add_ns "nvm" \
--nsid "1" \
--ctrl "nvme0" \
--size "1G" \
--extra "$default_nvme_ns_extra"
}

0 comments on commit 731a9fb

Please sign in to comment.