I did not have a SEV system around to try for real.
But what I was trying is if the following (your second example but without SEV) 
works:

$ qemu-system-x86_64 -name real-qemu   -machine
pc-q35-3.0,accel=kvm,usb=off,vmport=off,dump-guest-core=off   -display
none   -monitor none   -nographic   -nodefaults   -m 16384.0M   -serial
mon:stdio   -smp 2   -cpu host   -device sga   -device pcie-root-
port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2
-netdev user,id=net0,net=192.168.100.0/24,dhcpstart=192.168.100.1
-device virtio-net-
pci,netdev=net0,id=net0,mac=52:54:00:cc:56:90,bus=pci.1,addr=0x0,romfile=,iommu_platform=on
-drive if=pflash,format=raw,readonly,file=/tmp/OVMF_CODE.fd   -drive
if=pflash,format=raw,file=/tmp/OVMF_VARS.fd

That was just to ensure that the other args are fine and without SEV the 
arguments work.
I doubt that it is mutually exclusive with virtio, but it might need other 
tweaks we are not aware about yet.


I know you will try with newer qemu (thanks), when doing so please also give 
the much newer qemu 5.2 in Hirsute a chance.

Also - especially once you are on Hirsute with all the new bits - could
you give ti a chance also driving it through libvirt instead of just
commandline. Maybe libvirt is aware and applies the right prep/quirks
that we could learn of?

Finally - if you have no hard reason for it - could you try to bump up
"pc-q35-3.0" or just use the q35 or ubuntu-q35 defaults. The virtio-
iommu device will need non legacy devices - and there are (small)
chances that the old type can't provide all that.

This almost feels more like an upstream call for help - once you have
re-checked with 5.2 as the last version you might ask there as well -
maybe the SEV experts could easily answer?

Looking forward for all your further info,
Christian

** Changed in: qemu (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915509

Title:
  QEMU 1:4.2-3ubuntu6.12 : Unable to start SEV enabled VM using virtio
  driver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1915509/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to