Performance problem about address translation
Hi,
For I want to translate the virtual address in HVM DomU to virtual address in Xen. But when I use the function paging_gva_to_gfn and get_gfn, I can feel the performance down quickly, the machine become very hot and then I have to force the machine shutting down.
The codes I used as below:
uint32_t pfec = PFEC_page_present; unsigned long gfn; unsigned long mfn; unsigned long virtaddr; struct vcpu *vcpu = current; struct domain *d = vcpu->domain;
gfn = paging_gva_to_gfn(current, 0xc0290000, &pfec); mfn = get_gfn(d, gfn, &t); virtaddr = map_domain_page(mfn_x(mfn));
I also use the dbg_hvm_va2mfn function in debug.c, performance problem still present.
I don't know why, could someone give me some advices.
Thanks for any advice and best regards!
xinyue
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 6 lines · xinyue
Hi,
For I want to translate the virtual address in HVM DomU to virtual
address in Xen. But when I use the functionpaging_gva_to_gfnandget_gfn, I can feel the performance down quickly, the machine become very hot and then I have to force the machine shutting down.
Your machine clearly isn't cooled sufficiently, which is the first problem.
Quoted 13 lines
The codes I used as below:
uint32_t pfec = PFEC_page_present; unsigned long gfn; unsigned long mfn; unsigned long virtaddr; struct vcpu *vcpu = current; struct domain *d = vcpu->domain; gfn = paging_gva_to_gfn(current, 0xc0290000, &pfec); mfn = get_gfn(d, gfn, &t); virtaddr = map_domain_page(mfn_x(mfn));
Quoted 2 lines
I also use the
dbg_hvm_va2mfnfunction indebug.c, performance problem still present.
Walking pagetables in software is slow. There is no getting around this.
Your performance problems will be caused by performing the operation far too often. You should find a way to reduce this.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel