aboutsummaryrefslogtreecommitdiffstats
path: root/launch-qemu.sh
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2020-05-14 07:46:07 -0500
committerBrijesh Singh <brijesh.singh@amd.com>2020-05-14 07:46:07 -0500
commit2b47fe6f961044f41a6427ea65ab2ce8da0115e9 (patch)
tree87b217893935e370fa8f022798669f77e311e007 /launch-qemu.sh
parent654f67300bdf847d5b16f3a75e4b1714c36e1e35 (diff)
downloadcachepc-amdsev-2b47fe6f961044f41a6427ea65ab2ce8da0115e9.tar.gz
cachepc-amdsev-2b47fe6f961044f41a6427ea65ab2ce8da0115e9.zip
Multiple fixes
1) SEV-SNP spec says the BIT17 must be 1 in the policy 2) Source the /etc/os-release to get the distro information
Diffstat (limited to 'launch-qemu.sh')
-rwxr-xr-xlaunch-qemu.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/launch-qemu.sh b/launch-qemu.sh
index a2c4c53..b396af2 100755
--- a/launch-qemu.sh
+++ b/launch-qemu.sh
@@ -191,8 +191,8 @@ add_opts "-drive if=pflash,format=raw,unit=0,file=${UEFI_CODE},readonly"
# add network support and fwd port 22 to 8000
echo "guest port 22 is fwd to host 8000..."
#add_opts "-netdev user,id=vmnic,hostfwd=tcp::8000-:22 -device e1000,netdev=vmnic,romfile="
-add_opts "-netdev user,id=vmnic,hostfwd=tcp::8000-:22"
-add_opts " -device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile="
+#add_opts "-netdev user,id=vmnic,hostfwd=tcp::8000-:22"
+#add_opts " -device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile="
# If harddisk file is specified then add the HDD drive
if [ -n "${HDA}" ]; then
@@ -220,7 +220,7 @@ if [ ${SEV} = "1" ]; then
[ "${ALLOW_DEBUG}" = "1" ] && POLICY=$((POLICY & ~0x01))
[ "${SEV_ES}" = "1" ] && POLICY=$((POLICY | 0x04))
SEV_POLICY=$(printf ",policy=%#x" $POLICY)
- SEV_POLICY=",policy=0x90000"
+ SEV_POLICY=",policy=0xB0000"
fi
if [ "${SEV_SNP}" = 1 ]; then
@@ -250,11 +250,6 @@ fi
# start monitor on pty and named socket 'monitor'
add_opts "-monitor pty -monitor unix:monitor,server,nowait"
-# add virtio ring
-if [ "$USE_VIRTIO" = "1" ]; then
- add_opts "-device virtio-rng-pci,disable-legacy=on,iommu_platform=true"
-fi
-
# log the console output in stdout.log
QEMU_CONSOLE_LOG=`pwd`/stdout.log