How to measure guest memory access (qemu_ld/qemu_st) time?
Hi all,
I suspect that guest memory access (qemu_ld/qemu_st) account for the major of
time spent in system mode. I would like to know precisely how much (if possible). We use tools like perf [1] before, but since the logic of guest memory access aslo embedded in the host binary not only helper functions, the result cannot be relied. The current idea is adding helper functions before/after guest memory access logic. Take ARM guest on x86_64 host for example, should I add the helper functions before/after tcg_gen_qemu_{ld,st} in target-arm/translate.c or tcg_out_qemu_{ld,st} in tcg/i386/tcg-target.c? Or there is a better way to know how much time QEMU spend on handling guest memory access?
Any suggestion/comment is welcomed. Thanks!
Regards,
chenwj
[1] https://perf.wiki.kernel.org/index.php/Main_Page
Signature · 5 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Quoted 9 lines · 陳韋任 (Wei-Ren Chen)
I suspect that guest memory access (qemu_ld/qemu_st) account for the major of time spent in system mode. I would like to know precisely how much (if possible). We use tools like perf [1] before, but since the logic of guest memory access aslo embedded in the host binary not only helper functions, the result cannot be relied. The current idea is adding helper functions before/after guest memory access logic. Take ARM guest on
x86_64host for example, should I add the helper functions before/after tcg_gen_qemu_{ld,st} intarget-arm/translate.cor tcg_out_qemu_{ld,st} intcg/i386/tcg-target.c? Or there is a better way to know how much time QEMU spend on handling guest memory access?
Lluís: Can the instrumentation you've been working on do this?
Stefan
Quoted 12 lines · Stefan Hajnoczi
Quoted 9 lines · 陳韋任 (Wei-Ren Chen)
I suspect that guest memory access (qemu_ld/qemu_st) account for the major of time spent in system mode. I would like to know precisely how much (if possible). We use tools like perf [1] before, but since the logic of guest memory access aslo embedded in the host binary not only helper functions, the result cannot be relied. The current idea is adding helper functions before/after guest memory access logic. Take ARM guest on
x86_64host for example, should I add the helper functions before/after tcg_gen_qemu_{ld,st} intarget-arm/translate.cor tcg_out_qemu_{ld,st} intcg/i386/tcg-target.c? Or there is a better way to know how much time QEMU spend on handling guest memory access?
Quoted 1 line
Lluís: Can the instrumentation you've been working on do this?
Sure. I have tracepoints for memory accesses before they are actually performed. It would just be a matter of adding another tracepoint after the memory access operation has been performed (I had plans for adding this together with physical memory address information, but I'm on other tasks for the time being).
Given that memory access tracepoints are added through macros (by redefining the memory access routine), it's trivial to add a tracepoint after the memory access itself.
Unfortunately, I had the bad idea of rebasing all my series on top of the latest makefile changes, and I'll have to go through each patch to check it's still working (I'm sure some of them broke).
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
Quoted 3 lines
Unfortunately, I had the bad idea of rebasing all my series on top of the latest makefile changes, and I'll have to go through each patch to check it's still working (I'm sure some of them broke).
Need some help? :)
Regards,
chenwj
Signature · 5 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Quoted 5 lines · 陳韋任 (Wei-Ren Chen)
Quoted 3 lines
Unfortunately, I had the bad idea of rebasing all my series on top of the latest makefile changes, and I'll have to go through each patch to check it's still working (I'm sure some of them broke).
Need some help? :)
Well, it's just a matter of going through all series I have, check if they're compiling and adjust the makefiles accordingly, so it should not take me that much effort.
But thanks anyway :)
I'll try to find some time for it next week.
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
Quoted 11 lines · 陳韋任 (Wei-Ren Chen)
Hi all,
I suspect that guest memory access (qemu_ld/qemu_st) account for the major of time spent in system mode. I would like to know precisely how much (if possible). We use tools like perf [1] before, but since the logic of guest memory access aslo embedded in the host binary not only helper functions, the result cannot be relied. The current idea is adding helper functions before/after guest memory access logic. Take ARM guest on
x86_64host for example, should I add the helper functions before/after tcg_gen_qemu_{ld,st} intarget-arm/translate.cor tcg_out_qemu_{ld,st} intcg/i386/tcg-target.c? Or there is a better way to know how much time QEMU spend on handling guest memory access?
I'm afraid there's no easy way to measure that: any change you make to generated code will completely change the timing given that the ld/st fast path is only a few instructions long.
Another approach might be to run the program in user mode and then in system mode (provided the guest OS is very light).
As a side note, it might be interesting to gather statistics about the hit rate of the QEMU TLB. Another thing to consider is speeding up the fast path; see YeongKyoon Lee RFC patch:
http://www.mail-archive.com/[email protected]/msg91294.html
Laurent
Quoted 14 lines · Laurent Desnogues
Quoted 11 lines · 陳韋任 (Wei-Ren Chen)
Hi all,
I suspect that guest memory access (qemu_ld/qemu_st) account for the major of time spent in system mode. I would like to know precisely how much (if possible). We use tools like perf [1] before, but since the logic of guest memory access aslo embedded in the host binary not only helper functions, the result cannot be relied. The current idea is adding helper functions before/after guest memory access logic. Take ARM guest on
x86_64host for example, should I add the helper functions before/after tcg_gen_qemu_{ld,st} intarget-arm/translate.cor tcg_out_qemu_{ld,st} intcg/i386/tcg-target.c? Or there is a better way to know how much time QEMU spend on handling guest memory access?
Quoted 3 lines
I'm afraid there's no easy way to measure that: any change you make to generated code will completely change the timing given that the ld/st fast path is only a few instructions long.
Lluis, how's your opinion on that? Does your tracepoints have the same timing
issue, too?
Quoted 2 lines
Another approach might be to run the program in user mode and then in system mode (provided the guest OS is very light).
We ran SPEC2006 test input both in user and system mode (arm guest os). The
result is that system mode is roughly 2x slower than user mode. Not sure if the result is reasonable.
Quoted 5 lines
As a side note, it might be interesting to gather statistics about the hit rate of the QEMU TLB. Another thing to consider is speeding up the fast path; see YeongKyoon Lee RFC patch:
We have some result on TLB hit rate on the link below,
https://docs.google.com/spreadsheet/ccc?key=0Aq_07U3IjpY8dFN6dTczMldtQVRUSk9Qa2ZKZTZEZGc&pli=1#gid=0
Here is how we get the TLB hit rate. We use tcg_out_xxx to insert counting code in the tcg_out_tlb_load (tcg/i386/tcg-target.c). At the beginning of tcg_out_tlb_load, we count the total guest memory access, and count the tlb hit number at the TLB hit flow. You can see the code at
https://github.com/ZackClown/QEMU_1.0.1/commit/013a9f8e2611e25344bc095a9f72fdfbb0c64d06#diff-3
The reason why we want to do the measuring is we want to use KVM (sounds crazy
idea) MMU virtualization to speedup the guest -> host memory address translation. I talked to some people on LinuxCon Japan, included Paolo, about this idea. The feedback I got is we can only use shadow page table rather than EPT/NPT to do the address translation (if possible!) since different ISA (ARM and x86, for example) have different page table format. Besides, QEMU has to use ioctl to ask KVM to get the translation result, but it's an overkill as the ARM page table is quite simple, which can be done in user mode very fast.
Any comment is welcomed.
Regards,
chenwj
Signature · 5 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Quoted 15 lines · 陳韋任 (Wei-Ren Chen)
Quoted 14 lines · Laurent Desnogues
Quoted 11 lines · 陳韋任 (Wei-Ren Chen)
Hi all,
I suspect that guest memory access (qemu_ld/qemu_st) account for the major of time spent in system mode. I would like to know precisely how much (if possible). We use tools like perf [1] before, but since the logic of guest memory access aslo embedded in the host binary not only helper functions, the result cannot be relied. The current idea is adding helper functions before/after guest memory access logic. Take ARM guest on
x86_64host for example, should I add the helper functions before/after tcg_gen_qemu_{ld,st} intarget-arm/translate.cor tcg_out_qemu_{ld,st} intcg/i386/tcg-target.c? Or there is a better way to know how much time QEMU spend on handling guest memory access?
Quoted 6 lines
Quoted 3 lines
I'm afraid there's no easy way to measure that: any change you make to generated code will completely change the timing given that the ld/st fast path is only a few instructions long.
Lluis, how's your opinion on that? Does your tracepoints have the same timing
issue, too?
They just give you a set of well-known events and a public API to insert whatever you want in there, so whatever overhead you might have by directly hacking into QEMU, you will have it also when using trace instrumentation.
Now that I think of it, you will have problems generating code to surround each qemu_ld/st with a lightweight mechanism to get the time. In x86 it would be rdtsc, but you want to generate a host rdtsc instruction inside the code generated by QEMU's TCG, so you should also have to hack TCG (or the code generation pointers) to issue an rdtsc instruction.
Quoted 6 lines
Quoted 2 lines
Another approach might be to run the program in user mode and then in system mode (provided the guest OS is very light).
We ran SPEC2006 test input both in user and system mode (arm guest os). The
result is that system mode is roughly 2x slower than user mode. Not sure if the result is reasonable.
Well, you have all the MMU checks in system mode.
You might try checking which percentage of the application is actually performing memory oprerations. This could help you accept or dismiss your theory.
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
On Fri, Jun 15, 2012 at 12:30 AM, Lluís Vilanova <[email protected]> wrote:
[...]
Quoted 5 lines
Now that I think of it, you will have problems generating code to surround each qemu_ld/st with a lightweight mechanism to get the time. In x86 it would be rdtsc, but you want to generate a host rdtsc instruction inside the code generated by QEMU's TCG, so you should also have to hack TCG (or the code generation pointers) to issue an rdtsc instruction.
Even rdtsc would introduce enough noise that it wouldn't be reliable for such a micro measurement: as far as I understand it, this instruction can be reordered, so you need to flush the pipeline before issuing it.
Intel has a document about that:
download.intel.com/embedded/software/IA/324264.pdf
The overhead of their proposed method is so high that it's likely it would take longer than the execution of the fast path itself.
IMHO a mix of YeongKyoon Lee way to count ld/st and comparison between user mode and softmmu still seems to be the best approach (well unless you have access to a cycle accurate simulator :-).
Laurent
Quoted 12 lines · Laurent Desnogues
On Fri, Jun 15, 2012 at 12:30 AM, Lluís Vilanova <[email protected]> wrote:
[...]Quoted 5 lines
Now that I think of it, you will have problems generating code to surround each qemu_ld/st with a lightweight mechanism to get the time. In x86 it would be rdtsc, but you want to generate a host rdtsc instruction inside the code generated by QEMU's TCG, so you should also have to hack TCG (or the code generation pointers) to issue an rdtsc instruction.
Even rdtsc would introduce enough noise that it wouldn't be reliable for such a micro measurement: as far as I understand it, this instruction can be reordered, so you need to flush the pipeline before issuing it.
Quoted 8 lines
Intel has a document about that:
download.intel.com/embedded/software/IA/324264.pdf
The overhead of their proposed method is so high that it's likely it would take longer than the execution of the fast path itself.IMHO a mix of YeongKyoon Lee way to count ld/st and comparison between user mode and softmmu still seems to be the best approach (well unless you have access to a cycle accurate simulator :-).
Ah, true; I forgot about the architectural implications. Sometimes you just assume the nice in-order world :)
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
Quoted 8 lines
The reason why we want to do the measuring is we want to use KVM (sounds crazy
idea) MMU virtualization to speedup the guest -> host memory address translation. I talked to some people on LinuxCon Japan, included Paolo, about this idea. The feedback I got is we can only use shadow page table rather than EPT/NPT to do the address translation (if possible!) since different ISA (ARM and x86, for example) have different page table format. Besides, QEMU has to use ioctl to ask KVM to get the translation result, but it's an overkill as the ARM page table is quite simple, which can be done in user mode very fast.
Anyone would like to give a comment on this? ;)
From the talk with Laurent on #qemu, he said the way he thought of is
translating GVA -> GPA manually (through software), then try to insert GPA -> HPA into EPT, that's the only way HW can help.
Regards,
chenwj
Signature · 5 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Quoted 9 lines · 陳韋任 (Wei-Ren Chen)
Quoted 8 lines
The reason why we want to do the measuring is we want to use KVM (sounds crazy idea) MMU virtualization to speedup the guest -> host memory address translation. I talked to some people on LinuxCon Japan, included Paolo, about this idea. The feedback I got is we can only use shadow page table rather than EPT/NPT to do the address translation (if possible!) since different ISA (ARM and x86, for example) have different page table format. Besides, QEMU has to use ioctl to ask KVM to get the translation result, but it's an overkill as the ARM page table is quite simple, which can be done in user mode very fast.
Quoted 5 lines
Anyone would like to give a comment on this? ;)
From the talk with Laurent on #qemu, he said the way he thought of is translating GVA -> GPA manually (through software), then try to insert GPA -> HPA into EPT, that's the only way HW can help.
For some 32 bit guests on some 64 bit hosts, maybe KVM could indeed help. Just map the whole 4G guest virtual address space so that guest memory accesses can be turned 1:1 into raw direct accesses. I/O pages would be unmapped, accesses handled via fault path.
This of course depends on guest and host MMU models being sufficiently similar (esp. page size).
Quoted 11 lines
Regards,
chenwj--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
Quoted 13 lines · Blue Swirl
Quoted 11 lines · 陳韋任 (Wei-Ren Chen)
Quoted 8 lines
The reason why we want to do the measuring is we want to use KVM (sounds crazy idea) MMU virtualization to speedup the guest -> host memory address translation. I talked to some people on LinuxCon Japan, included Paolo, about this idea. The feedback I got is we can only use shadow page table rather than EPT/NPT to do the address translation (if possible!) since different ISA (ARM and x86, for example) have different page table format. Besides, QEMU has to use ioctl to ask KVM to get the translation result, but it's an overkill as the ARM page table is quite simple, which can be done in user mode very fast.
Anyone would like to give a comment on this? ;)
Quoted 8 lines
Quoted 3 lines
From the talk with Laurent on #qemu, he said the way he thought of is translating GVA -> GPA manually (through software), then try to insert GPA -> HPA into EPT, that's the only way HW can help.
For some 32 bit guests on some 64 bit hosts, maybe KVM could indeed help. Just map the whole 4G guest virtual address space so that guest memory accesses can be turned 1:1 into raw direct accesses. I/O pages would be unmapped, accesses handled via fault path.
But if QEMU/TCG is doing a GVA->GPA translation as Wei-Ren said, I don't see how KVM can help.
I could understand having multiple 32bit regions in QEMU's virtual space (no need for KVM), one per guest page table, and then simply adding an offset to every memory access to redirect it to the appropriate 32-bit region (1 region per guest page table).
This could translate a single guest ld/st into a host ld+add+ld/st (the first load is to get the "region" offset for the currently executing guest context).
With this, you can use 'mprotect' in QEMU to enforce the guest's page permissions (as long as the host supports it), and 'mmap' to share the host physical memory between the different 32-bit regions whenever the guest page tables share guest physical memory (again, as long as the host supports it).
But I suppose having a guest with as many or more bits than the host is the common case, which hinders its applicability.
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
Quoted 2 lines
But if QEMU/TCG is doing a
GVA->GPAtranslation as Wei-Ren said, I don't see how KVM can help.
Just want to clarify. QEMU maintain a TLB (env->tlb_table) which stores GVA ->
HVA mapping, it is used to speedup the address translation. If TLB miss, QEMU will call cpu_arm_handle_mmu_fault (take ARM as an example) doing GVA -> GPA translation.
Quoted 7 lines
I could understand having multiple 32bit regions in QEMU's virtual space (no need for KVM), one per guest page table, and then simply adding an offset to every memory access to redirect it to the appropriate 32-bit region (1 region per guest page table).
This could translate a single guest ld/st into a host ld+add+ld/st (the first load is to get the "region" offset for the currently executing guest context).
It differs from what QEMU's doing? Each time we fill TLB, we add an offset to
the GPA to get HVA, then store GVA -> HVA mapping into the TLB (IIUC). I don't see much differences here.
Regards,
chenwj
Signature · 5 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Quoted 13 lines · 陳韋任 (Wei-Ren Chen)
Quoted 2 lines
But if QEMU/TCG is doing a
GVA->GPAtranslation as Wei-Ren said, I don't see how KVM can help.Just want to clarify. QEMU maintain a TLB (
env->tlb_table) which stores GVA -> HVA mapping, it is used to speedup the address translation. If TLB miss, QEMU will callcpu_arm_handle_mmu_fault(take ARM as an example) doing GVA -> GPA translation.Quoted 5 lines
I could understand having multiple 32bit regions in QEMU's virtual space (no need for KVM), one per guest page table, and then simply adding an offset to every memory access to redirect it to the appropriate 32-bit region (1 region per guest page table).
Quoted 6 lines
Quoted 2 lines
This could translate a single guest ld/st into a host ld+add+ld/st (the first load is to get the "region" offset for the currently executing guest context).
It differs from what QEMU's doing? Each time we fill TLB, we add an offset to the GPA to get HVA, then store GVA -> HVA mapping into the TLB (IIUC). I don't see much differences here.
I think What is Qemu doing is to mapped GPA to HVA . Lluís mean we can map GVA to HVA. So
we event do not need to lookup TLB and just use one host memory
access instruction to simulate one guest
memory access instruction.
Thanks
MK
Quoted 11 lines
Regards,
chenwj--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
Signature · 1 line
www.skyeye.org
Quoted 35 lines · Lluís Vilanova
Quoted 13 lines · Blue Swirl
Quoted 11 lines · 陳韋任 (Wei-Ren Chen)
Quoted 8 lines
The reason why we want to do the measuring is we want to use KVM (sounds crazy idea) MMU virtualization to speedup the guest -> host memory address translation. I talked to some people on LinuxCon Japan, included Paolo, about this idea. The feedback I got is we can only use shadow page table rather than EPT/NPT to do the address translation (if possible!) since different ISA (ARM and x86, for example) have different page table format. Besides, QEMU has to use ioctl to ask KVM to get the translation result, but it's an overkill as the ARM page table is quite simple, which can be done in user mode very fast.
Anyone would like to give a comment on this? ;)
Quoted 8 lines
Quoted 3 lines
From the talk with Laurent on #qemu, he said the way he thought of is translating GVA -> GPA manually (through software), then try to insert GPA -> HPA into EPT, that's the only way HW can help.
For some 32 bit guests on some 64 bit hosts, maybe KVM could indeed help. Just map the whole 4G guest virtual address space so that guest memory accesses can be turned 1:1 into raw direct accesses. I/O pages would be unmapped, accesses handled via fault path.
But if QEMU/TCG is doing a
GVA->GPAtranslation as Wei-Ren said, I don't see how KVM can help.I could understand having multiple 32bit regions in QEMU's virtual space (no need for KVM), one per guest page table, and then simply adding an offset to every memory access to redirect it to the appropriate 32-bit region (1 region per guest page table).
This could translate a single guest ld/st into a host ld+add+ld/st (the first load is to get the "region" offset for the currently executing guest context).
Quoted 7 lines
With this, you can use 'mprotect' in QEMU to enforce the guest's page permissions (as long as the host supports it), and 'mmap' to share the host physical memory between the different 32-bit regions whenever the guest page tables share guest physical memory (again, as long as the host supports it).
But I suppose having a guest with as many or more bits than the host is the common case, which hinders its applicability.
I ever have some thought like you. Firstly , we only simulate 32bit guest on 64 bit host for the case.
Secondly I ever did some experiments. And I can not mmap the address space more than
about 8G on 64 bit linux OS. Maybe there some limits in the linux
kernel of host.
Thanks
MK
Quoted 10 lines
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
Signature · 1 line
www.skyeye.org
Quoted 1 line · Michael Kang
On Tue, Jun 19, 2012 at 4:26 AM, Lluís Vilanova <[email protected]> wrote:
[...]
Quoted 16 lines
Quoted 8 lines
I could understand having multiple 32bit regions in QEMU's virtual space (no need for KVM), one per guest page table, and then simply adding an offset to every memory access to redirect it to the appropriate 32-bit region (1 region per guest page table).
This could translate a single guest ld/st into a host ld+add+ld/st (the first load is to get the "region" offset for the currently executing guest context).
Quoted 7 lines
With this, you can use 'mprotect' in QEMU to enforce the guest's page permissions (as long as the host supports it), and 'mmap' to share the host physical memory between the different 32-bit regions whenever the guest page tables share guest physical memory (again, as long as the host supports it).
But I suppose having a guest with as many or more bits than the host is the common case, which hinders its applicability.
Quoted 6 lines
I ever have some thought like you. Firstly , we only simulate 32bit guest on 64 bit host for the case.
Secondly I ever did some experiments. And I can not mmap the address space more than
about 8G on 64 bit linux OS. Maybe there some limits in the linux
kernel of host.
You can see your resource limits with "ulimit -a", but without more info I cannot tell what's actually going on.
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
Quoted 9 lines · 陳韋任 (Wei-Ren Chen)
Quoted 8 lines
The reason why we want to do the measuring is we want to use KVM (sounds crazy idea) MMU virtualization to speedup the guest -> host memory address translation. I talked to some people on LinuxCon Japan, included Paolo, about this idea. The feedback I got is we can only use shadow page table rather than EPT/NPT to do the address translation (if possible!) since different ISA (ARM and x86, for example) have different page table format. Besides, QEMU has to use ioctl to ask KVM to get the translation result, but it's an overkill as the ARM page table is quite simple, which can be done in user mode very fast.
Quoted 5 lines
Anyone would like to give a comment on this? ;)
From the talk with Laurent on #qemu, he said the way he thought of is
translating GVA -> GPA manually (through software), then try to insert GPA -> HPA into EPT, that's the only way HW can help.
Sorry, but I don't see the benefit here.
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line · 陳韋任 (Wei-Ren Chen)
Mind me CC this to ML? :)
sure I will read the threads to understand more.
Orit
Quoted 23 lines
Quoted 7 lines
Well it was a while back (2008-9) ,the company was acquired by IBM a year later :
http://www.linux-kvm.org/wiki/images/9/98/KvmForum2008%24kdf2008_2.pdf
I think stefan Hanjoczi worked there ...
The company used the technology for cross platform guest support but claim to get speedup too (for ppc) don't think the speedup was related to mmu but more to the instruction stream. I hope this is helpful.Thanks.
Quoted 2 lines
Do you have performance result for the cost of the address translation ? If I understand you are concentrating on ARM ?
The whole discussion thread is on [1], and you can get some feel about
the cost of address translation here [2]. Yes, ARM is our target right now, but I think we are not limit to it.Regards,
chenwj[1] http://www.mail-archive.com/[email protected]/msg116159.html
[2] http://www.mail-archive.com/[email protected]/msg116404.html
Quoted 5 lines
As a side note, it might be interesting to gather statistics about the hit rate of the QEMU TLB. Another thing to consider is speeding up the fast path; see YeongKyoon Lee RFC patch:
I only see PATCH 0/3, any idea on where the others?
Regards,
chenwj
Signature · 5 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj