Hi Peter:
The guest's load/store instructions, which I want to debug, do not cause
a guest exception.
ARM KVM only provides the guest' r15 register (pc) value. To get the
guest instruction for
emulating in host, "translate guest VA to host VA" is required. How to
implement
"translate guest VA to host VA" in host ?
Thank you
-Jack
Peter Maydell 於 2016/1/15 下午 08:17 寫道:
On 15 January 2016 at 11:14, hiwu <hiwu@xxxxxxxxxxxxxxx> wrote:
I want to trap some ldr,str instruction in guest VM for debug. Therefore, I
have to emulate guest ldr,str in host. Without guest VA to host VA, I cannot
emulate ldr,str instruction in host.
That sounds like you want "load/store value from guest VA", not "translate
guest VA to host VA". Try cpu_ldl_data and friends (though note that
if you use them to access an invalid address they'll cause a guest
exception).
thanks
-- PMM
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm