Re: [Qemu-devel] [PATCH v4 04/10] target-mips: get_physical_address: Add KVM awareness

2014-03-20 Thread James Hogan
On 19/03/14 16:33, Paolo Bonzini wrote: Il 14/03/2014 13:47, James Hogan ha scritto: +if (kvm_enabled()) { +/* KVM TE adds guest kernel segments in useg */ +if (real_address = KVM_KSEG0_BASE) { +if (real_address KVM_KSEG2_BASE) { +/* kseg0 */

Re: [Qemu-devel] [PATCH v4 04/10] target-mips: get_physical_address: Add KVM awareness

2014-03-19 Thread Paolo Bonzini
Il 14/03/2014 13:47, James Hogan ha scritto: +if (kvm_enabled()) { +/* KVM TE adds guest kernel segments in useg */ +if (real_address = KVM_KSEG0_BASE) { +if (real_address KVM_KSEG2_BASE) { +/* kseg0 */ +address += KSEG0_BASE -

[Qemu-devel] [PATCH v4 04/10] target-mips: get_physical_address: Add KVM awareness

2014-03-14 Thread James Hogan
MIPS KVM trap emulate mode (which is currently the only supported mode) has to add an extra kseg0/kseg1 at 0x4000 and an extra kseg2/kseg3 at 0x6000. Take this into account in get_physical_address() so that debug memory access works. This is done by translating the address to a standard