All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: nick <xerofoify@gmail.com>
Cc: x86@kernel.org, ak@linux.intel.com, JBeulich@suse.com,
	lguest@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: Implement Functions in boot.c
Date: Wed, 07 Jan 2015 12:31:59 +1030	[thread overview]
Message-ID: <87bnmb4aco.fsf@rustcorp.com.au> (raw)
In-Reply-To: <54AC04CA.1000102@gmail.com>

nick <xerofoify@gmail.com> writes:
> Greetings Rusty,
> I am wondering why we haven't implementing the below functions:
>  /* Let's just say, I wouldn't do debugging under a Guest. */
>  static unsigned long lguest_get_debugreg(int regno)
> {
>          /* FIXME: Implement */
>          return 0;
> }
>
>  static void lguest_set_debugreg(int regno, unsigned long value)
> {
>          /* FIXME: Implement */
> }
> Seems to me that this are needed for various areas in the lguest subsystem and should
> be implemented for debugging ease of use in the lguest subsystem.

Well, normal use of gdb works.  It can't use hardware watchpoints,
though.

To fix this, hypercalls would have to be added to manipulate the debug
registers, and these registers would have to be saved and restored in
the world switcher code.

Patches welcome!
Rusty.

           reply	other threads:[~2015-01-07  4:19 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <54AC04CA.1000102@gmail.com>]

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=87bnmb4aco.fsf@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=JBeulich@suse.com \
    --cc=ak@linux.intel.com \
    --cc=lguest@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x86@kernel.org \
    --cc=xerofoify@gmail.com \
    /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.