[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v4 21/36] i386/tdx: Track mem_ptr for each firmware entry
From: |
Gerd Hoffmann |
Subject: |
Re: [RFC PATCH v4 21/36] i386/tdx: Track mem_ptr for each firmware entry of TDVF |
Date: |
Tue, 24 May 2022 09:11:49 +0200 |
On Thu, May 12, 2022 at 11:17:48AM +0800, Xiaoyao Li wrote:
> For each TDVF sections, QEMU needs to copy the content to guest
> private memory via KVM API (KVM_TDX_INIT_MEM_REGION).
>
> Introduce a field @mem_ptr for TdxFirmwareEntry to track the memory
> pointer of each TDVF sections. So that QEMU can add/copy them to guest
> private memory later.
>
> TDVF sections can be classified into two groups:
> - Firmware itself, e.g., BFV and CFV, that locates separated from guest
> RAM. It's memory pointer is the bios pointer.
>
> - Sections located at guest RAM, e.g., TEMP_MEM and TD_HOB.
> mmap a new memory range for them.
>
> Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
- Re: [RFC PATCH v4 18/36] i386/tdx: Skip BIOS shadowing setup, (continued)
- [RFC PATCH v4 19/36] i386/tdx: Don't initialize pc.rom for TDX VMs, Xiaoyao Li, 2022/05/11
- [RFC PATCH v4 15/36] i386/tdx: Set kvm_readonly_mem_enabled to false for TDX VM, Xiaoyao Li, 2022/05/11
- [RFC PATCH v4 20/36] i386/tdx: Register a machine_init_done callback for TD, Xiaoyao Li, 2022/05/11
- [RFC PATCH v4 17/36] i386/tdx: Parse TDVF metadata for TDX VM, Xiaoyao Li, 2022/05/11
- [RFC PATCH v4 21/36] i386/tdx: Track mem_ptr for each firmware entry of TDVF, Xiaoyao Li, 2022/05/11
- Re: [RFC PATCH v4 21/36] i386/tdx: Track mem_ptr for each firmware entry of TDVF,
Gerd Hoffmann <=
- [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Xiaoyao Li, 2022/05/11
- Re: [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Gerd Hoffmann, 2022/05/24
- Re: [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Xiaoyao Li, 2022/05/26
- Re: [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Isaku Yamahata, 2022/05/26
- Re: [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Xiaoyao Li, 2022/05/27
- Re: [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Gerd Hoffmann, 2022/05/30
- Re: [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Xiaoyao Li, 2022/05/30
- Re: [RFC PATCH v4 22/36] i386/tdx: Track RAM entries for TDX VM, Xiaoyao Li, 2022/05/27
[RFC PATCH v4 24/36] i386/tdx: Add TDVF memory via KVM_TDX_INIT_MEM_REGION, Xiaoyao Li, 2022/05/11