Closed pw0rld closed 5 months ago
I also encountered a similar problem
Be sure that your Qemu and Linux are kept in sync. If you recently updated the kernel without updating Qemu or vice versa, you're probably running into a KVM_SEV_INIT vs KVM_SEV_INIT2 usage issue.
Be sure that your Qemu and Linux are kept in sync. If you recently updated the kernel without updating Qemu or vice versa, you're probably running into a KVM_SEV_INIT vs KVM_SEV_INIT2 usage issue.
Indeed, you were correct. Thank you! Because of my oversight, I had not rebuilt my qemu success since the conflict issue to my local workspace. Now, having merged the latest version, everything is functionally smoothly. 👍 :)
I'm currently encountering a persistent issue when attempting to boot up SEV-SNP and could not figure out what the cause might be. During boot-up, an error message appears signifying a failure in the process.
The error message indicated that the return value was -22, which, as I discovered from this previous issue here, implies 'EINVAL'.
I have made several attempts to troubleshoot this error by also considering the Linux kernel, Qemu version, OVMF, and BIOS, but it seems like the issue is still present. Here's a detail of the host environment I am currently operating on:
Host kernel version: Linux sev-snp 6.9.0-rc1-1-snp+, patched from link, branch snp-latest Qemu version: QEMU emulator version 8.0.0, build from link, branch: snp-latest Ovmf: link branch: snp-latest Dmesg information:
Additionally, I'd like to point out that initial SEV-SNP initialization seems successful according to the dmesg information, however the subsequent steps still yield the same boot-up error. I've noticed that in the same environment, SEV-ES and SEV setup executes without any problems, only SEV-SNP seems to be affected.
I suspect that the problem I am experiencing could be related to the SEV firmware. This presumption arises from the fact that, following the recent update to the latest kernel, my SEV firmware was also automatically upgraded. Previously, the firmware version was 1.51, but it has since been updated to 1.55. Despite my efforts to understand and resolve this problem, it persists. Any guidance or suggestions on how to troubleshoot and rectify this issue would be greatly appreciated.