public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: jyoung5@us.ibm.com
Cc: Hollis Blanchard <hollisb@us.ibm.com>,
	kvm@vger.kernel.org, kvm-ppc@vger.kernel.org
Subject: Re: [PATCH] Initialize kvm qemu enviroment breakpoints for PowerPC
Date: Wed, 18 Jun 2008 06:39:10 -0700	[thread overview]
Message-ID: <48590FFE.3040707@qumranet.com> (raw)
In-Reply-To: <1213024001.6792.17.camel@thinkpadL>

Jerone Young wrote:
> On Mon, 2008-06-09 at 09:54 -0500, Hollis Blanchard wrote:
>   
>> On Mon, 2008-06-09 at 09:23 -0500, Jerone Young wrote:
>>     
>>> diff --git a/qemu/gdbstub.c b/qemu/gdbstub.c
>>> --- a/qemu/gdbstub.c
>>> +++ b/qemu/gdbstub.c
>>> @@ -983,6 +983,7 @@ static int gdb_handle_packet(GDBState *s
>>>              kvm_load_registers(env);
>>>  #elif defined (TARGET_PPC)
>>>              env->nip = addr;
>>> +            kvm_load_registers(env);
>>>  #elif defined (TARGET_SPARC)
>>>              env->pc = addr;
>>>              env->npc = addr + 4;
>>> @@ -1021,6 +1022,7 @@ static int gdb_handle_packet(GDBState *s
>>>              kvm_load_registers(env);
>>>  #elif defined (TARGET_PPC)
>>>              env->nip = addr;
>>> +            kvm_load_registers(env);
>>>  #elif defined (TARGET_SPARC)
>>>              env->pc = addr;
>>>              env->npc = addr + 4;
>>>       
>> These should be protected by a kvm_enabled() test, just like you see for
>> x86 four lines earlier.A
>>     
>
> Actually the line above is x86 and it is not using kvm_enabled() before
> calling kvm_load_registers().
>
>   

Yes, kvm_load_registers() has a built-in kvm_enabled() test.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


  reply	other threads:[~2008-06-18 13:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 14:23 [PATCH] Initialize kvm qemu enviroment breakpoints for PowerPC Jerone Young
2008-06-09 14:54 ` Hollis Blanchard
2008-06-09 15:06   ` Jerone Young
2008-06-18 13:39     ` Avi Kivity [this message]
2008-06-18 13:39 ` Avi Kivity

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=48590FFE.3040707@qumranet.com \
    --to=avi@qumranet.com \
    --cc=hollisb@us.ibm.com \
    --cc=jyoung5@us.ibm.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox