From: Alexander Graf <agraf@suse.de>
To: Peter Maydell <peter.maydell@linaro.org>,
Bharat Bhushan <Bharat.Bhushan@freescale.com>
Cc: maddy@linux.vnet.ibm.com,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/6 v6] ppc: debug stub: Get trap instruction opcode from KVM
Date: Thu, 10 Jul 2014 16:08:15 +0200 [thread overview]
Message-ID: <53BE9E4F.2090000@suse.de> (raw)
In-Reply-To: <CAFEAcA_3w9k-fWFMeM+o8pui82VSCuPMLfUdqPRUL25G6x6Vmw@mail.gmail.com>
On 10.07.14 16:07, Peter Maydell wrote:
> On 10 July 2014 11:57, Bharat Bhushan <Bharat.Bhushan@freescale.com> wrote:
>> Get trap instruction opcode from KVM and this opcode will
>> be used for setting software breakpoint in following patch
>>
>> Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
>> ---
>> v5->v6
>> - no change
>>
>> target-ppc/kvm.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
>> index 2d87108..4df23dd 100644
>> --- a/target-ppc/kvm.c
>> +++ b/target-ppc/kvm.c
>> @@ -72,6 +72,8 @@ static int cap_papr;
>> static int cap_htab_fd;
>> static int cap_fixup_hcalls;
>>
>> +static uint32_t debug_inst_opcode;
>> +
>> /* XXX We have a race condition where we actually have a level triggered
>> * interrupt, but the infrastructure can't expose that yet, so the guest
>> * takes but ignores it, goes to sleep and never gets notified that there's
>> @@ -436,6 +438,8 @@ int kvm_arch_init_vcpu(CPUState *cs)
>> break;
>> }
>>
>> + kvm_get_one_reg(cs, KVM_REG_PPC_DEBUG_INST, &debug_inst_opcode);
>> +
> Presumably the kernel guarantees that this is always the
> same value for every CPU in the system?
Yes :)
Alex
next prev parent reply other threads:[~2014-07-10 14:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 10:57 [Qemu-devel] [PATCH 0/6 v6] ppc: Add debug stub support Bharat Bhushan
2014-07-10 10:57 ` [Qemu-devel] [PATCH 1/6 v6] ppc: debug stub: Get trap instruction opcode from KVM Bharat Bhushan
2014-07-10 14:07 ` Peter Maydell
2014-07-10 14:08 ` Alexander Graf [this message]
2014-07-10 10:57 ` [Qemu-devel] [PATCH 2/6 v6] ppc: Add interface to inject interrupt to guest Bharat Bhushan
2014-07-10 11:12 ` Alexander Graf
2014-07-10 10:57 ` [Qemu-devel] [PATCH 3/6 v6] ppc: synchronize excp_vectors for injecting exception Bharat Bhushan
2014-07-10 11:15 ` Alexander Graf
2014-07-10 10:58 ` [Qemu-devel] [PATCH 4/6 v6] ppc: Add program exception injection handler Bharat Bhushan
2014-07-10 10:58 ` [Qemu-devel] [PATCH 5/6 v6] ppc: Add software breakpoint support Bharat Bhushan
2014-07-10 11:18 ` Alexander Graf
2014-07-10 10:58 ` [Qemu-devel] [PATCH 6/6 v6] ppc: Add hw breakpoint watchpoint support Bharat Bhushan
2014-07-10 11:20 ` Alexander Graf
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=53BE9E4F.2090000@suse.de \
--to=agraf@suse.de \
--cc=Bharat.Bhushan@freescale.com \
--cc=maddy@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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.