linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Bharat Bhushan <r65777@freescale.com>
Cc: sfr@canb.auug.org.au, mikey@neuling.org, kvm@vger.kernel.org,
	kvm-ppc@vger.kernel.org,
	Bharat Bhushan <bharat.bhushan@freescale.com>,
	tiejun.chen@windriver.com, scottwood@freescale.com,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 0/4 v6] KVM :PPC: Userspace Debug support
Date: Fri, 4 Oct 2013 16:02:46 +0200	[thread overview]
Message-ID: <B93277EB-FD72-4FDB-AF99-2ADCA51C16D3@suse.de> (raw)
In-Reply-To: <1372921067-19678-1-git-send-email-Bharat.Bhushan@freescale.com>


On 04.07.2013, at 08:57, Bharat Bhushan wrote:

> From: Bharat Bhushan <bharat.bhushan@freescale.com>
>=20
> Note: These patches depends on https://lkml.org/lkml/2013/7/4/49.
>=20
> This patchset adds the userspace debug support for booke/bookehv.
> this is tested on powerpc e500v2/e500mc devices.

Thanks, applied to kvm-ppc-queue.


Alex

>=20
> We are now assuming that debug resource will not be used by kernel for
> its own debugging. It will be used for only kernel user process =
debugging.
> So the kernel debug load interface during context_to is used to load
> debug conext for that selected process.
>=20
> v5->v6
> - Earlier it was a patchset of six patches. Now this is devided into
>   two parts: 1) powerpc spcific changes 2) kvm specific changes.
>   This patchset now contains only KVM specific changes.
> - using "ehpriv 1" (earlier using "ehpriv") for software breakpoint
> -
>=20
> v4->v5
> - Some comments reworded and other cleanup (like change of function =
name etc)
> - Added a function for setting MSRP rather than inline
>=20
> v3->v4
> - 4 out of 7 patches of initial patchset were applied.
>   This patchset is on and above those 4 patches
> - KVM local "struct kvmppc_booke_debug_reg" is replaced by
>   powerpc global "struct debug_reg"
> - use switch_booke_debug_regs() for debug register context switch.
> - Save DBSR before kernel pre-emption is enabled.
> - Some more cleanup
>=20
> v2->v3
> - We are now assuming that debug resource will not be used by
>   kernel for its own debugging.
>   It will be used for only kernel user process debugging.
>   So the kernel debug load interface during context_to is
>   used to load debug conext for that selected process.
>=20
> v1->v2
> - Debug registers are save/restore in vcpu_put/vcpu_get.
>   Earlier the debug registers are saved/restored in guest entry/exit
>=20
> Bharat Bhushan (4):
>  powerpc: export debug registers save function for KVM
>  KVM: PPC: exit to user space on "ehpriv 1" instruction
>  KVM: PPC: Using "struct debug_reg"
>  KVM: PPC: Add userspace debug stub support
>=20
> arch/powerpc/include/asm/disassemble.h |    4 +
> arch/powerpc/include/asm/kvm_booke.h   |    7 +-
> arch/powerpc/include/asm/kvm_host.h    |   16 +--
> arch/powerpc/include/asm/switch_to.h   |    1 +
> arch/powerpc/include/uapi/asm/kvm.h    |   22 ++-
> arch/powerpc/kernel/process.c          |    3 +-
> arch/powerpc/kvm/booke.c               |  275 =
++++++++++++++++++++++++++++----
> arch/powerpc/kvm/booke.h               |    5 +
> arch/powerpc/kvm/e500_emulate.c        |   26 +++
> 9 files changed, 312 insertions(+), 47 deletions(-)
>=20
>=20

      parent reply	other threads:[~2013-10-04 14:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04  6:57 [PATCH 0/4 v6] KVM :PPC: Userspace Debug support Bharat Bhushan
2013-07-04  6:57 ` [PATCH 1/4 v6] powerpc: export debug registers save function for KVM Bharat Bhushan
2013-07-25 10:20   ` Alexander Graf
2013-07-30  2:42     ` Michael Neuling
2013-07-04  6:57 ` [PATCH 2/4 v6] KVM: PPC: exit to user space on "ehpriv 1" instruction Bharat Bhushan
2013-07-04  6:57 ` [PATCH 3/4 v6] KVM: PPC: Using "struct debug_reg" Bharat Bhushan
2013-07-04  6:57 ` [PATCH 4/4 v6] KVM: PPC: Add userspace debug stub support Bharat Bhushan
2013-10-04 14:02 ` Alexander Graf [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=B93277EB-FD72-4FDB-AF99-2ADCA51C16D3@suse.de \
    --to=agraf@suse.de \
    --cc=bharat.bhushan@freescale.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mikey@neuling.org \
    --cc=r65777@freescale.com \
    --cc=scottwood@freescale.com \
    --cc=sfr@canb.auug.org.au \
    --cc=tiejun.chen@windriver.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).