[Xen-devel] question about ept_set_entry

2016-04-29 Thread Zhang, Chunyu
hi all in - p2m-ept.c - ept_set_entry i see code about iommu, those code for what? - if ( rc == 0 && p2m_is_hostp2m(p2m) && need_iommu(d) && need_modify_vtd_table ) { if ( iommu_hap_pt_share ) iommu_pte_flush(d, gfn, &ept_entry->epte, order, vtd_pte_p

Re: [Xen-devel] question about ept_set_entry

2016-04-29 Thread Jan Beulich
>>> On 29.04.16 at 11:14, wrote: > hi all > > in > - p2m-ept.c > - ept_set_entry > > i see code about iommu, > those code for what? For keeping the IOMMU translation tables in sync with the CPU ones? But perhaps I'm simply not understanding what you try to get at... Jan > - > > if

Re: [Xen-devel] question about ept_set_entry

2016-04-29 Thread Zhang, Chunyu
hi jan On 29.04.16 at 11:14, wrote: >> hi all >> >> in >> - p2m-ept.c >> - ept_set_entry >> >> i see code about iommu, >> those code for what? > >For keeping the IOMMU translation tables in sync with the CPU ones? got it, thanks. i will check IOMMU translation. >But perhaps I'm simply no

Re: [Xen-devel] question about ept_set_entry

2016-04-29 Thread Xu, Quan
On April 29, 2016 5:24 PM, Jan Beulich wrote: > >>> On 29.04.16 at 11:14, wrote: > > hi all > > > > in > > - p2m-ept.c > > - ept_set_entry > > > > i see code about iommu, > > those code for what? Maybe Chunyu's question is -- why EPT update is along with IOMMU page table update. I guess :(

Re: [Xen-devel] question about ept_set_entry

2016-04-29 Thread Zhang, Chunyu
>On April 29, 2016 5:24 PM, Jan Beulich wrote: >> >>> On 29.04.16 at 11:14, wrote: >> > hi all >> > >> > in >> > - p2m-ept.c >> > - ept_set_entry >> > >> > i see code about iommu, >> > those code for what? > >Maybe Chunyu's question is -- why EPT update is along with IOMMU page table >upda