All of lore.kernel.org
 help / color / mirror / Atom feed
From: Don Slutz <don.slutz@gmail.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Don Slutz <dslutz@verizon.com>,
	xen-devel@lists.xen.org
Cc: Keir Fraser <keir@xen.org>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Tim Deegan <tim@xen.org>, Ian Jackson <ian.jackson@eu.citrix.com>,
	Jan Beulich <jbeulich@suse.com>, Wei Liu <wei.liu2@citrix.com>,
	Mukesh Rathor <mukesh.rathor@oracle.com>
Subject: Re: [PATCH 2/2] Add xen-hyp-rw
Date: Thu, 18 Jun 2015 16:50:18 -0400	[thread overview]
Message-ID: <55832F0A.9060901@Gmail.com> (raw)
In-Reply-To: <5582FA3F.4030108@citrix.com>

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 <dslutz@verizon.com>
>> CC: Don Slutz <don.slutz@gmail.com>
> 
> 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
> 

      reply	other threads:[~2015-06-18 20:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18 15:55 [PATCH 0/2] Allow chnaging of external varibles in the hypervisor Don Slutz
2015-06-18 15:55 ` [PATCH 1/2] gdbsx_guestmemio: Allow it to check domain Don Slutz
2015-06-18 16:59   ` Andrew Cooper
2015-06-18 20:39     ` Don Slutz
2015-06-18 15:55 ` [PATCH 2/2] Add xen-hyp-rw Don Slutz
2015-06-18 17:05   ` Andrew Cooper
2015-06-18 20:50     ` Don Slutz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55832F0A.9060901@Gmail.com \
    --to=don.slutz@gmail.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dslutz@verizon.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=mukesh.rathor@oracle.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.