From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Slutz Subject: Re: [PATCH 2/2] Add xen-hyp-rw Date: Thu, 18 Jun 2015 16:50:18 -0400 Message-ID: <55832F0A.9060901@Gmail.com> References: <1434642932-24807-1-git-send-email-dslutz@verizon.com> <1434642932-24807-3-git-send-email-dslutz@verizon.com> <5582FA3F.4030108@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5582FA3F.4030108@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , Don Slutz , xen-devel@lists.xen.org Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Tim Deegan , Ian Jackson , Jan Beulich , Wei Liu , Mukesh Rathor List-Id: xen-devel@lists.xenproject.org On 06/18/15 13:05, Andrew Cooper wrote: > On 18/06/15 16:55, Don Slutz wrote: >> This allows reading and writing of variables in the hypervisor. >> >> for example (read case -- default 4 bytes): >> >> xen-hyp-rw /boot/System.map-xen* opt_hvm_debug_level >> opt_hvm_debug_level @ 0xffff82d080285610 is 0x0(0) >> >> Write case: >> >> xen-hyp-rw /boot/System.map-xen* opt_hvm_debug_level 4 -1 >> opt_hvm_debug_level @ 0xffff82d080285610 is 0x0(0) >> opt_hvm_debug_level @ 0xffff82d080285610 set to 0xffffffff(4294967295) >> >> Signed-off-by: Don Slutz >> CC: Don Slutz > > As a crazy thought... > > Would it not be easier to modify gdbsx to allow gdb to connect remotely > to the hypervisor context? I tried this to start, but kept running into issues. A lot of them were about pausing and unpausing the target domain. > > That way, any gdb-like tools could consume an appropriate xen-syms and > make changes like this. > Yes. This code was a lot faster to get working. I used a lot of the xg "library" of gdbsx to do the work. Only 2 new routines: hyp_attach() and hyp_detach() in that code. -Don Slutz > ~Andrew >