[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] HVM Debugging (Injecting INT3)


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Guy Zana" <guy@xxxxxxxxxxxx>
  • Date: Thu, 8 Nov 2007 09:51:20 -0500
  • Delivery-date: Thu, 08 Nov 2007 06:53:18 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcgiFgNQy/edoHpCQXKbiAXTF++roQ==
  • Thread-topic: HVM Debugging (Injecting INT3)

I am debugging a driver inside a HVM and I'll want to trigger a debug break from the device model if the guest access a specific PCI config address.
I thought about creating a hypercall that injects TRAP_int3 using vmx_inject_hw_exception()/svm_inject_exception().
 
If I'll place the correct hook in ioemu, is it simple as creating a hypercall that calls vmx_inject_hw_exception() in order to break on the actual instruction that performs the PCI config access?
 
Thanks,
Guy.
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.