Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding QEMU #380

Open
Sabanic-P opened this issue Jun 13, 2024 · 1 comment
Open

Question regarding QEMU #380

Sabanic-P opened this issue Jun 13, 2024 · 1 comment

Comments

@Sabanic-P
Copy link

Hello,

I am trying to use the igvm branch of QEMU for SVSM and regular AMD SEV-SNP virtual machines. SVSM works fine with the igvm file. But with regular CVM without igvm:

  sudo {{QEMU_COCONUT}} \
        -cpu EPYC-v4,host-phys-bits=true \
        -smp {{smp}} \
        -m {{mem}} \
        -machine q35,confidential-guest-support=sev0,memory-backend=ram1 \
        -object memory-backend-memfd,id=ram1,size={{mem}},share=true,prealloc=false \
        -object sev-snp-guest,id=sev0,cbitpos=51,reduced-phys-bits=1 \
        -enable-kvm \
        -nographic \
        -kernel {{LINUX_DIR}}/arch/x86/boot/bzImage \
        -append "root=/dev/vda console=hvc0" \
        -blockdev qcow2,node-name=q2,file.driver=file,file.filename={{GUEST_FS}} \
        -device virtio-blk-pci,drive=q2 \
        -drive if=pflash,format=raw,unit=0,file={{OVMF_COCONUT}},readonly=on \
        -serial null \

Qemu only returns with:

qemu-system-x86_64: Failed to put registers after init: Invalid argument

I was wondering if it is possible to boot this version of Qemu without SVMS?

@roy-hopkins
Copy link
Collaborator

I've just tried this myself and it I get the same results - SEV-SNP without SVSM does not seem to work. I'll investigate a bit further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants