-
Notifications
You must be signed in to change notification settings - Fork 15
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
[some question] some question about build_save_area()
#2
Comments
Good questions. Some of this is from empirical attempt of launching an SEV-ES guest and looking at the VMSA that KVM sees before encrypting it. I'll look into this and add better documentation to the code. |
For cr0, AMD APM Vol 2 Table 14-1 (page 526 in PDF) says:
So if CD and NW are 0, and bit 4 is 1, you get |
Value of |
should we use the |
You're right, I'm not sure. But empirically this is the case (this is the CR0 value in the VMSA) when starting SEV-ES guests with QEMU and KVM. Maybe the documentation or git history there give some explanations for these choice. Let me know if you find anything. |
This is the PAT MSR reset value as documented in APM Volume 2, Section A.3. |
in
build_save_area()
cr0=0x10
, but based-on https://www.amd.com/system/files/TechDocs/24593.pdf (page 103, 526), it saidcr0=6000_0010h
, why ?g_pat=0x7040600070406
, i can not find where the value comes fromcs=VmcbSeg(0xf000, 0x9b, 0xffff, eip & 0xffff0000)
, whyeip & 0xffff0000
?thanks
The text was updated successfully, but these errors were encountered: