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: how to define the initial vCPU state in IGVM and how to apply them in QEMU #2

Open
ymjing opened this issue Aug 15, 2024 · 1 comment

Comments

@ymjing
Copy link

ymjing commented Aug 15, 2024

Hi Roy,

Great work! And would you mind pointing me to the code in your QEMU patch where the vCPU registers are set? As I understand it, the construct_vmsa() method in src/vmsa.rs is just to setup the VMSA page which is to be copied by QEMU into the guest memory? Does QEMU read from the page and set the vCPU states?

Thanks in advance.

@ymjing
Copy link
Author

ymjing commented Aug 16, 2024

buildigvm --firmware /path/to/OVMF.fd --output sev-snp.igvm \
              --cpucount 4 sev-snp

Why is the generated sev-snp.igvm file smaller than OVMF.fd?

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

1 participant