diff options
| author | Chao Peng <chao.p.peng@linux.intel.com> | 2025-05-08 10:59:22 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-28 19:01:41 +0200 |
| commit | 0dd5fe5ebeabefc7b3d7f043991b1edfe6b8eda9 (patch) | |
| tree | 7b3d3f6fc56563abdd233af1d4938a291f6815f1 /python | |
| parent | 0e73b843616e52882940ab89e1b0e86e22be2162 (diff) | |
| download | focaccia-qemu-0dd5fe5ebeabefc7b3d7f043991b1edfe6b8eda9.tar.gz focaccia-qemu-0dd5fe5ebeabefc7b3d7f043991b1edfe6b8eda9.zip | |
i386/tdx: load TDVF for TD guest
TDVF(OVMF) needs to run at private memory for TD guest. TDX cannot support pflash device since it doesn't support read-only private memory. Thus load TDVF(OVMF) with -bios option for TDs. Use memory_region_init_ram_guest_memfd() to allocate the MemoryRegion for TDVF because it needs to be located at private memory. Also store the MemoryRegion pointer of TDVF since the shared ramblock of it can be discared after it gets copied to private ramblock. Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com> Co-developed-by: Xiaoyao Li <xiaoyao.li@intel.com> Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250508150002.689633-17-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions