-
Notifications
You must be signed in to change notification settings - Fork 40
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
stage2: add TD Partitioning support #419
base: main
Are you sure you want to change the base?
Commits on Aug 23, 2024
-
igvmbuilder: Insert a zero CPUID page for TDP platforms
Since both the stage2 bootloader and the SVSM kernel dump the CPUID page, there needs to be a page present at the respective GPA on TDP platforms. Insert a normal zero page at the CPUID page location so that dump_cpuid_table() can work as expected. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eef05c7 - Browse repository at this point
Copy the full SHA eef05c7View commit details -
igvmbuilder: Insert a zero secrets page for TDP platforms
Since the SVSM kernel touches the secrets page in svsm_start(), there needs to be a page present at the respective GPA on TDP platforms. Insert a normal zero page at the secrets page location so that the SVSM kernel can touch it without issues. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1ca685d - Browse repository at this point
Copy the full SHA 1ca685dView commit details -
Clean up formatting and crate ordering. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6ee8487 - Browse repository at this point
Copy the full SHA 6ee8487View commit details -
Cargo.toml: Add tdx-tdcall crate
Add the tdx-tdcall crate in preparation for the upcoming TDX enabling changes. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ed379fe - Browse repository at this point
Copy the full SHA ed379feView commit details -
stage1: Fix stage2 launch info size
Stage2LaunchInfo has been increased to 48 bytes. Make the according changes in stage1 trampoline. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a1e7391 - Browse repository at this point
Copy the full SHA a1e7391View commit details -
Setting the initial location counter has no effect since all of the addresses before edata are derived based on the subsequent locations. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bea3392 - Browse repository at this point
Copy the full SHA bea3392View commit details -
svsm_console: Add SvsmTdIOPort
Add the TDX implementation of IOPort. This implementation translates all of the in/out operations to TDVMCALL operations as required by the GHCI spec. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 60076fa - Browse repository at this point
Copy the full SHA 60076faView commit details -
svsm_console: Rename SVSMIOPort to SvsmSevIOPort
Rename struct SVSMIOPort for clarity and distinction from the TDX implementation. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a50cd4f - Browse repository at this point
Copy the full SHA a50cd4fView commit details -
platform: tdp: Fix phys_addr_sizes
phys_addr_sizes should be the entirety of CPUID leaf 0x80000008.EAX, not just the Physical Address Bits field. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b03a387 - Browse repository at this point
Copy the full SHA b03a387View commit details -
platform: Add GPA to validate_page_range()
validate_page_range() currently takes GVA due to the design of PVALIDATE. In the case of TDX, GPA is required for page acceptance. Add an additional input, paddr (PhysAddr), to validate_page_range(). An explicit input for GPA is required because virt_to_phys() is not always available. The input region may be out of range for the current FIXED_MAPPING. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for db49993 - Browse repository at this point
Copy the full SHA db49993View commit details -
platform: tdp: Implement validate_page_range()
On TDP platforms, validate_page_range() means page acceptance. Use the tdx-tdcall crate for this TDCALL operation. Signed-off-by: Peter Fang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c70ec34 - Browse repository at this point
Copy the full SHA c70ec34View commit details