Il 14/03/2014 13:47, James Hogan ha scritto:
+ if (kvm_enabled()) {
+ /* KVM T&E adds guest kernel segments in useg */
+ if (real_address >= KVM_KSEG0_BASE) {
+ if (real_address < KVM_KSEG2_BASE) {
+ /* kseg0 */
+ address += KSEG0_BASE - KVM_KSEG0_BASE;
+ } else if (real_address <= USEG_LIMIT) {
+ /* kseg2/3 */
+ address += KSEG2_BASE - KVM_KSEG2_BASE;
+ }
+ }
+ }
Besides changing the segment bases, is there anything else to do to run
KVM-enabled kernels under TCG? (I know nothing about MIPS and it
shows). We should consider adding a knob to run them in TCG mode.
This is not blocking this series, and I'm okay with helping or even
doing the work, if somebody tells me what to do. :)
Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html