hi,all has anyone set the eflags.TF of vm? I want to introdeuce a VM into single-step by setting the eflags.TF of vm, then I disassemble the bytes at RIP to figure out what''s going on . I have set the trap flag ,but I didn''t achieve what I want. First, I only get hlt,mov, rdtsc, clts, in, out . Second, the VM always crash. does anyone have experience and give me some help? ---------------------------------------------------------- best regards, yandong _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On Tue, 9 Jul 2013 16:59:27 +0800 yandong han <toyandong@gmail.com> wrote:> hi,all > has anyone set the eflags.TF of vm? > I want to introdeuce a VM into single-step by setting the > eflags.TF of vm, then I disassemble the bytes at RIP to figure out > what''s going on . I have set the trap flag ,but I didn''t achieve what > I want. First, I only get hlt,mov, rdtsc, clts, in, out . Second, the > VM always crash. does anyone have experience and give me some help? > ---------------------------------------------------------- > best regards, > yandongIf it''s HVM, look at MTF, otherwise look at debugger_trap_entry and it''s callers. Can''t you just use gdbsx in tools/debugger/gdbsx? You can look at gdbsx source too... Mukesh
Reasonably Related Threads
- EFLAGS based v->arch.hvm_vcpu.single_step
- evtchn_bind_interdomain() { struct domain *ld= current->domain } but why it is always current->domain ?
- the Superblock last modify time is in the future after upload a file into the VM
- Does xen use 2MB page?
- gdbsx defines own _domctl_hcall instead of using libxc?