kvm: Use the address finalization code in the TLB
Review Request #1861 - Created May 1, 2013 and submitted
| Information | |
|---|---|
| Andreas Sandberg | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9739:8afcb103a82e --------------------------- kvm: Use the address finalization code in the TLB Reuse the address finalization code in the TLB instead of replicating it when handling MMIO. This patch also adds support for injecting memory mapped IPR requests into the memory system.
Quick regressions pass (with the exception of 02.insttest and 40.m5threads-test-atomic where I can't find the binaries) for all supported architectures. Boots Linux in KVM mode on x86 when applied together with #1860 (x86 requires APIC remapping magic from the TLB). Shouldn't affect ARM since finalizePhysical() is a no-op.
Posted (June 2, 2013, 6:47 p.m.)
A few questions, but overall it looks good.
-
src/cpu/kvm/base.cc (Diff revision 1) -
Why here and not when it is used?
-
src/cpu/kvm/base.cc (Diff revision 1) -
What happens to the packet on the IprRead/Write? The reason I'm asking is that the packet in question will go out of scope here and I'm simply not sure if it is still in use or not.
-
src/mem/request.hh (Diff revision 1) -
Are there any locations in the code base where we assume that a virtual address is present? If so, could you point out where in the comment above?
Review request changed
Updated (June 2, 2013, 10:24 p.m.)
Description: |
|
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+27 -6) |
Ship It!
