Re: [Xen-devel] question about xl migrate

2016-05-17 Thread Zhang, Chunyu
hi Andrew > 2. line 125 in hvm mode,would not be a balloon page. gfn would not be INVALID_MFN. mfn would be INVALID_MFN. right? >>> I don't understand what you asking here. >> i think those code should delete: 125 /* Likely a ballooned page. */ >> if page is ba

Re: [Xen-devel] question about xl migrate

2016-05-17 Thread Zhang, Chunyu
hi Andrew >On 17/05/16 10:01, Zhang, Chunyu wrote: >> hi all >> >> i have two question about xl migrate >> >> write_batch >> 120 for ( i = 0; i < nr_pfns; ++i ) >> 121 { >> 122 typ

[Xen-devel] question about xl migrate

2016-05-17 Thread Zhang, Chunyu
...@cn.fujitsu.com ------ Zhang Chunyu Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China TEL:+86+25-86630566-9566 FUJITSU INTERNAL:7998-9566 FAX:+86+25-83317685 EMail:zhan...@cn.fujitsu.com -

Re: [Xen-devel] question about p2m_pod_demand_populate

2016-05-06 Thread Zhang, Chunyu
hi Jan On 06.05.16 at 08:55, wrote: >> in p2m_pod_demand_populate >> i see: >> p2m_pod_demand_populate >>- pod_eager_reclaim >>- pod_eager_record >> >> if gfn is pod, will get mfn from pod cache and set entry。 >> but i did not know why call pod_eager_reclaim、pod_eager_record in >> p

[Xen-devel] question about p2m_pod_demand_populate

2016-05-05 Thread Zhang, Chunyu
pod_eager_reclaim 、pod_eager_record ? -- -- A new email address of FJWAN is launched from Apr.1 2007. The updated address is: zhan...@cn.fujitsu.com -- Zhang Chunyu Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road

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

Re: [Xen-devel] question about ept_set_entry

2016-04-29 Thread Zhang, Chunyu
; iommu_unmap_page(d, gfn + i); >> } >> } >> >> >> -- >> -- >> A new email address of FJWAN is launched from Apr.1 2007. >> The updated address is: zhan...@cn.fujitsu.com >> -- >> Z

[Xen-devel] question about ept_set_entry

2016-04-29 Thread Zhang, Chunyu
rder); i++ ) iommu_unmap_page(d, gfn + i); } } -- -- A new email address of FJWAN is launched from Apr.1 2007. The updated address is: zhan...@cn.fujitsu.com ------ Zhang Chunyu Nanjing Fujitsu

Re: [Xen-devel] balloon question

2016-04-28 Thread Zhang, Chunyu
hi george >Please don't cross-post unless you need to. These are coding >questions, so xen-devel is the right place to ask this. > >On Thu, Apr 28, 2016 at 7:58 AM, Zhang, Chunyu wrote: >> >> hi all >> >> i have two question about ballon. >> >&g

[Xen-devel] balloon question

2016-04-27 Thread Zhang, Chunyu
delete ? -- -- A new email address of FJWAN is launched from Apr.1 2007. The updated address is: zhan...@cn.fujitsu.com -- Zhang Chunyu Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
[...] i think p2m_is_ram(t) , ram also from pod cache, >>> >>> No, that's memory from the guest's p2m table. The p2m table can have 1G >> right.. >> sorry , i did not write clearly. >> i mean: ram come like this: >> - pod cache is 4K or 2M >> - ram get from pod cache >> - set ram to p2m tabl

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
>On 26/04/16 11:49, Zhang, Chunyu wrote: >> >>> On 26/04/16 08:27, zhangcy wrote: >>>> PoD does not have cache list for 1GB pages. >>>> >>>> Signed-off-by: zhangcy >>> >>> Thanks for the patch. FYI we normally tag t

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
>On 26/04/16 08:27, zhangcy wrote: >> PoD does not have cache list for 1GB pages. >> >> Signed-off-by: zhangcy > >Thanks for the patch. FYI we normally tag the area in the title in a >structured way; I probably would have used something like the following: > >xen/pod: Remove code handling PAGE_

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
On 26.04.16 at 09:27, wrote: >> PoD does not have cache list for 1GB pages. > >But it might gain support in the future. Is there any harm in this code >being there? no harm in this code. when i read this code, i wonder why order == PAGE_ORDER_1G? this make me confuse. i just delete useless c

Re: [Xen-devel] Where and How the P2M table and M2P table create?

2016-04-17 Thread Zhang, Chunyu
hi this may help you。。。 hvm_vcpu_initialise - .vcpu_initialise = vmx_vcpu_initialise,   - vmx_create_vmcs    - construct_vmcs   - if ( paging_mode_hap(d) )    {    struct p2m_domain *p2m = p2m_get_hostp2m(d);    struct ept_data *ept = &p2m->ept;