From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: Re: set the eflags.tf of VM Date: Tue, 9 Jul 2013 12:38:01 -0700 Message-ID: <20130709123801.3d4a336b@mantra.us.oracle.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: yandong han Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 9 Jul 2013 16:59:27 +0800 yandong han 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, > yandong If 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