Skip to content

Commit

Permalink
snp.sh Fix for SNP launch guest memory issue on 6.11-rc3 host
Browse files Browse the repository at this point in the history
qemu option roms are no longer supported from kerenel 6.11-rc3,
so updated qemu command options to add romfile to the guest storage controller (virtio-scsi), and modify guest video graphic controllerto none

Signed-off-by: Harika Nittala <lnittala@amd.com>
  • Loading branch information
LakshmiSaiHarika authored and ryansavino committed Sep 12, 2024
1 parent 33e1b6c commit 4419036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/snp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ build_base_qemu_cmdline() {
add_qemu_cmdline_opts "-smp ${GUEST_SMP}"
add_qemu_cmdline_opts "-m ${GUEST_MEM_SIZE_MB}M"
add_qemu_cmdline_opts "-no-reboot"
add_qemu_cmdline_opts "-vga std"
add_qemu_cmdline_opts "-vga none"
add_qemu_cmdline_opts "-monitor pty"
add_qemu_cmdline_opts "-daemonize"

Expand All @@ -594,7 +594,7 @@ build_base_qemu_cmdline() {
add_qemu_cmdline_opts "-device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile="

# Storage
add_qemu_cmdline_opts "-device virtio-scsi-pci,id=scsi0,disable-legacy=on,iommu_platform=true"
add_qemu_cmdline_opts "-device virtio-scsi-pci,id=scsi0,disable-legacy=on,iommu_platform=true,romfile="
add_qemu_cmdline_opts "-device scsi-hd,drive=disk0"
add_qemu_cmdline_opts "-drive if=none,id=disk0,format=qcow2,file=${IMAGE}"

Expand Down

0 comments on commit 4419036

Please sign in to comment.