Hi Peter, Does the equation which is mentioned in http://vm-kernel.org/blog/2009/07/10/qemu-internal-part-2-softmmu/ means something? host_virtual_address = phys_ram_base(qemu variable) + guest_physical_address – guest_physical_address_base(0 in MIPS) Currently I have the guest physical address and phys_ram_base, can I use the equation to get the host virtual address?
In fact I am using Marss which is based on QEMU, and in Marss the guest physical address is provided. 2015-04-25 7:48 GMT+08:00 Christopher Covington <c...@codeaurora.org>: > Hi Brendan, > > On 04/24/2015 03:50 PM, Brendan Dolan-Gavitt wrote: > > One possible option that has come up in the past is disabling the TLB > > for your testing. It is slower, though, and would only work on TCG, > > not KVM. > > > > The way I'm currently doing this is by changing the conditional jump > > here to an absolute one inside of the TCG code generator for i386 (and > > of course you can do something similar on other archs). The code here > > has changed since I last looked at it, but this is roughly the place > > to look: > > > > https://github.com/qemu/qemu/blob/master/tcg/i386/tcg-target.c#L1222 > > > > Depending on your needs, you might want to also look at (shameless > > plug) PANDA [1], which provides callbacks and a plugin architecture > > for many things that happen in QEMU, including memory accesses. You > > can see how we implement the memory callback here: > > > > > https://github.com/moyix/panda/blob/master/qemu/tcg/i386/tcg-target.c#L1079 > > This is neat. How do you see the relationship with upstream? Will you ever > upgrade QEMU versions? > > Have you seen Pavel Dovgalyuk's upstream work on deterministic replay to > enable reverse execution? Does it differ fundamentally from PANDA record > and > replay? > > It looks like you're running K-means on your QEMU traces. I happen to be > doing > that too. Do you happen to have any code examples of that included in > PANDA or > other open source projects? > > Thanks, > Chris > > -- > Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- *Best regards **from* Wenjie Liu TEL: (+86)132 9723 0518 E-mail: *lwj0...@gmail.com <lwj0...@gmail.com>* Wuhan National Laboratory for Optoelectronics, Huazhong University of Science&Technology, 1037 Luoyu Road Wuhan, Hubei,P.R.C, 430074.