[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <DS0PR11MB6373963DEA9B38DAAD38F7CBDCB4A@DS0PR11MB6373.namprd11.prod.outlook.com>
Date: Mon, 20 Nov 2023 12:01:21 +0000
From: "Wang, Wei W" <wei.w.wang@...el.com>
To: Isaku Yamahata <isaku.yamahata@...ux.intel.com>
CC: "Yamahata, Isaku" <isaku.yamahata@...el.com>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"isaku.yamahata@...il.com" <isaku.yamahata@...il.com>,
Paolo Bonzini <pbonzini@...hat.com>,
"Aktas, Erdem" <erdemaktas@...gle.com>,
"Christopherson,, Sean" <seanjc@...gle.com>,
"Shahar, Sagi" <sagis@...gle.com>,
David Matlack <dmatlack@...gle.com>,
"Huang, Kai" <kai.huang@...el.com>,
Zhi Wang <zhi.wang.linux@...il.com>,
"Chen, Bo2" <chen.bo@...el.com>,
"Yuan, Hang" <hang.yuan@...el.com>,
"Zhang, Tina" <tina.zhang@...el.com>,
"gkirkpatrick@...gle.com" <gkirkpatrick@...gle.com>
Subject: RE: [PATCH v16 059/116] KVM: TDX: Create initial guest memory
On Saturday, November 18, 2023 4:15 AM, Isaku Yamahata wrote:
> Please refer to
> static int tdx_sept_set_private_spte(struct kvm *kvm, gfn_t gfn,
> enum pg_level level, kvm_pfn_t pfn)
>
> The guest memfd provides the page of gfn which is different from kvm_tdx-
> >source_pa. The function calls tdh_mem_page_add().
>
> tdh_mem_page_add(kvm_tdx->tdr_pa, gpa, hpa, source_pa, &out);
> gpa: corresponds to the page from guest memfd
> source_pa: corresopnds to the page tdx_init_mem_region() pinned down.
>
> tdh_mem_page_add() copies the page contents from source_pa to gpa and
> gives gpa to the TD guest. not source_pa.
> --
Yes, that's right, thanks.
Powered by blists - more mailing lists