All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] git head broken?  (x86 softmmu w/o kvm)
@ 2010-03-22 21:25 Juergen Lock
  2010-03-22 21:37 ` [Qemu-devel] " Juergen Lock
  2010-03-23  2:27 ` [Qemu-devel] " Aurelien Jarno
  0 siblings, 2 replies; 10+ messages in thread
From: Juergen Lock @ 2010-03-22 21:25 UTC (permalink / raw)
  To: qemu-devel

Hi!

 I just wanted to make another FreeBSD qemu git head snaphot port update,
and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
to hang early in the bios before it prints anything, last tb seems to be
this loop:

----------------
IN: 
0x00000000000f1b8e:  mov    0xf81a0,%ecx
0x00000000000f1b94:  cmp    %ecx,%eax
0x00000000000f1b96:  jne    0xf1b8e

OUT: [size=184]
0x4000e440:  mov    $0xf81a0,%ebp
0x4000e445:  mov    %rbp,%rsi
0x4000e448:  mov    %rbp,%rdi
0x4000e44b:  shr    $0x7,%rsi
0x4000e44f:  and    $0xfffffffffffff003,%rdi
0x4000e456:  and    $0x1fe0,%esi
0x4000e45c:  lea    0x4f8(%rsi,%r14,1),%rsi
0x4000e464:  cmp    (%rsi),%rdi
0x4000e467:  mov    %rbp,%rdi
0x4000e46a:  je     0x4000e477
0x4000e46c:  xor    %esi,%esi
0x4000e46e:  callq  0x51fd30
0x4000e473:  mov    %eax,%ebp
0x4000e475:  jmp    0x4000e47d
0x4000e477:  add    0x18(%rsi),%rdi
0x4000e47b:  mov    (%rdi),%ebp
0x4000e47d:  mov    %ebp,%ebp
0x4000e47f:  mov    %rbp,%rbx
0x4000e482:  mov    (%r14),%r12
0x4000e485:  mov    %rbx,%r13
0x4000e488:  sub    %rbx,%r12
0x4000e48b:  mov    %r12,%rbx
0x4000e48e:  mov    %ebx,%ebx
0x4000e490:  mov    $0x10,%r15d
0x4000e496:  mov    %r15d,0xa0(%r14)
0x4000e49d:  mov    %r13,0x90(%r14)
0x4000e4a4:  mov    %r12,0x98(%r14)
0x4000e4ab:  mov    %rbp,0x8(%r14)
0x4000e4af:  test   %rbx,%rbx
0x4000e4b2:  jne    0x4000e4d8
0x4000e4b8:  jmpq   0x4000e4bd
0x4000e4bd:  mov    $0xf1b98,%ebp
0x4000e4c2:  mov    %rbp,0x80(%r14)
0x4000e4c9:  mov    $0x802c05c80,%rax
0x4000e4d3:  jmpq   0xb65b8e
0x4000e4d8:  jmpq   0x4000e4dd
0x4000e4dd:  mov    $0xf1b8e,%ebp
0x4000e4e2:  mov    %rbp,0x80(%r14)
0x4000e4e9:  mov    $0x802c05c81,%rax
0x4000e4f3:  jmpq   0xb65b8e

 Is 0xf81a0 an io port or how is it supposed to change?  And, can
anyone reproduce this on Linux?  As I said this is without kvm...

 Thanx! :)
	Juergen

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Qemu-devel] Re: git head broken?  (x86 softmmu w/o kvm)
  2010-03-22 21:25 [Qemu-devel] git head broken? (x86 softmmu w/o kvm) Juergen Lock
@ 2010-03-22 21:37 ` Juergen Lock
  2010-03-23  2:27 ` [Qemu-devel] " Aurelien Jarno
  1 sibling, 0 replies; 10+ messages in thread
From: Juergen Lock @ 2010-03-22 21:37 UTC (permalink / raw)
  To: Juergen Lock; +Cc: qemu-devel

On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
> Hi!
> 
>  I just wanted to make another FreeBSD qemu git head snaphot port update,
> and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
> to hang early in the bios before it prints anything, last tb seems to be
> this loop:
> 
> ----------------
> IN: 
> 0x00000000000f1b8e:  mov    0xf81a0,%ecx
> 0x00000000000f1b94:  cmp    %ecx,%eax
> 0x00000000000f1b96:  jne    0xf1b8e
> 
> OUT: [size=184]
> 0x4000e440:  mov    $0xf81a0,%ebp
> 0x4000e445:  mov    %rbp,%rsi
> 0x4000e448:  mov    %rbp,%rdi
> 0x4000e44b:  shr    $0x7,%rsi
> 0x4000e44f:  and    $0xfffffffffffff003,%rdi
> 0x4000e456:  and    $0x1fe0,%esi
> 0x4000e45c:  lea    0x4f8(%rsi,%r14,1),%rsi
> 0x4000e464:  cmp    (%rsi),%rdi
> 0x4000e467:  mov    %rbp,%rdi
> 0x4000e46a:  je     0x4000e477
> 0x4000e46c:  xor    %esi,%esi
> 0x4000e46e:  callq  0x51fd30
> 0x4000e473:  mov    %eax,%ebp
> 0x4000e475:  jmp    0x4000e47d
> 0x4000e477:  add    0x18(%rsi),%rdi
> 0x4000e47b:  mov    (%rdi),%ebp
> 0x4000e47d:  mov    %ebp,%ebp
> 0x4000e47f:  mov    %rbp,%rbx
> 0x4000e482:  mov    (%r14),%r12
> 0x4000e485:  mov    %rbx,%r13
> 0x4000e488:  sub    %rbx,%r12
> 0x4000e48b:  mov    %r12,%rbx
> 0x4000e48e:  mov    %ebx,%ebx
> 0x4000e490:  mov    $0x10,%r15d
> 0x4000e496:  mov    %r15d,0xa0(%r14)
> 0x4000e49d:  mov    %r13,0x90(%r14)
> 0x4000e4a4:  mov    %r12,0x98(%r14)
> 0x4000e4ab:  mov    %rbp,0x8(%r14)
> 0x4000e4af:  test   %rbx,%rbx
> 0x4000e4b2:  jne    0x4000e4d8
> 0x4000e4b8:  jmpq   0x4000e4bd
> 0x4000e4bd:  mov    $0xf1b98,%ebp
> 0x4000e4c2:  mov    %rbp,0x80(%r14)
> 0x4000e4c9:  mov    $0x802c05c80,%rax
> 0x4000e4d3:  jmpq   0xb65b8e
> 0x4000e4d8:  jmpq   0x4000e4dd
> 0x4000e4dd:  mov    $0xf1b8e,%ebp
> 0x4000e4e2:  mov    %rbp,0x80(%r14)
> 0x4000e4e9:  mov    $0x802c05c81,%rax
> 0x4000e4f3:  jmpq   0xb65b8e
> 
>  Is 0xf81a0 an io port or how is it supposed to change?  And, can
> anyone reproduce this on Linux?  As I said this is without kvm...

..and in case its supposed to be changed by an irq I just tried
	-d in_asm,out_asm,int
and saw none listed.  I've put the qemu.log here:
	http://people.freebsd.org/~nox/qemu/qemu.log.gz

 TIA,
	Juergen

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] git head broken?  (x86 softmmu w/o kvm)
  2010-03-22 21:25 [Qemu-devel] git head broken? (x86 softmmu w/o kvm) Juergen Lock
  2010-03-22 21:37 ` [Qemu-devel] " Juergen Lock
@ 2010-03-23  2:27 ` Aurelien Jarno
  2010-03-23  9:03   ` Aurelien Jarno
  1 sibling, 1 reply; 10+ messages in thread
From: Aurelien Jarno @ 2010-03-23  2:27 UTC (permalink / raw)
  To: Juergen Lock; +Cc: Blue Swirl, qemu-devel

On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
> Hi!
> 
>  I just wanted to make another FreeBSD qemu git head snaphot port update,
> and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
> to hang early in the bios before it prints anything, last tb seems to be
> this loop:
> 

A quick bisect revealed it has been broken by this patch:

commit 952760bb7bce7fbfe0afcf04fee268745f297b87
Author: Blue Swirl <blauwirbel@gmail.com>
Date:   Sun Mar 21 19:47:15 2010 +0000

    Compile pci_host only once

    Convert pci_host_conf_register_mmio_noswap(x) to
    pci_host_conf_register_mmio(x, 0).

    Convert pci_host_conf_register_mmio(x) to
    pci_host_conf_register_mmio(x, 1) for big endian hosts, all cases
    happen to be BE.

    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>


-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] git head broken?  (x86 softmmu w/o kvm)
  2010-03-23  2:27 ` [Qemu-devel] " Aurelien Jarno
@ 2010-03-23  9:03   ` Aurelien Jarno
  2010-03-23 10:06     ` Markus Armbruster
  2010-03-23 19:24     ` [Qemu-devel] " Blue Swirl
  0 siblings, 2 replies; 10+ messages in thread
From: Aurelien Jarno @ 2010-03-23  9:03 UTC (permalink / raw)
  To: Juergen Lock; +Cc: Blue Swirl, qemu-devel

On Tue, Mar 23, 2010 at 03:27:26AM +0100, Aurelien Jarno wrote:
> On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
> > Hi!
> > 
> >  I just wanted to make another FreeBSD qemu git head snaphot port update,
> > and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
> > to hang early in the bios before it prints anything, last tb seems to be
> > this loop:
> > 
> 
> A quick bisect revealed it has been broken by this patch:
> 

I have just pushed a patch to fix the problem.


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] git head broken?  (x86 softmmu w/o kvm)
  2010-03-23  9:03   ` Aurelien Jarno
@ 2010-03-23 10:06     ` Markus Armbruster
  2010-03-23 10:21       ` Aurelien Jarno
  2010-03-23 11:33       ` [Qemu-devel] " Paolo Bonzini
  2010-03-23 19:24     ` [Qemu-devel] " Blue Swirl
  1 sibling, 2 replies; 10+ messages in thread
From: Markus Armbruster @ 2010-03-23 10:06 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: Blue Swirl, Juergen Lock, qemu-devel

Aurelien Jarno <aurelien@aurel32.net> writes:

> On Tue, Mar 23, 2010 at 03:27:26AM +0100, Aurelien Jarno wrote:
>> On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
>> > Hi!
>> > 
>> >  I just wanted to make another FreeBSD qemu git head snaphot port update,
>> > and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
>> > to hang early in the bios before it prints anything, last tb seems to be
>> > this loop:
>> > 
>> 
>> A quick bisect revealed it has been broken by this patch:
>> 
>
> I have just pushed a patch to fix the problem.

Thanks.

I can't see the offending on the mailing list.  Was it committed without
review?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] git head broken?  (x86 softmmu w/o kvm)
  2010-03-23 10:06     ` Markus Armbruster
@ 2010-03-23 10:21       ` Aurelien Jarno
  2010-03-23 11:33       ` [Qemu-devel] " Paolo Bonzini
  1 sibling, 0 replies; 10+ messages in thread
From: Aurelien Jarno @ 2010-03-23 10:21 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Blue Swirl, Juergen Lock, qemu-devel

Markus Armbruster a écrit :
> Aurelien Jarno <aurelien@aurel32.net> writes:
> 
>> On Tue, Mar 23, 2010 at 03:27:26AM +0100, Aurelien Jarno wrote:
>>> On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
>>>> Hi!
>>>>
>>>>  I just wanted to make another FreeBSD qemu git head snaphot port update,
>>>> and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
>>>> to hang early in the bios before it prints anything, last tb seems to be
>>>> this loop:
>>>>
>>> A quick bisect revealed it has been broken by this patch:
>>>
>> I have just pushed a patch to fix the problem.
> 
> Thanks.
> 
> I can't see the offending on the mailing list.  Was it committed without
> review?
> 

Yes

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Qemu-devel] Re: git head broken?  (x86 softmmu w/o kvm)
  2010-03-23 10:06     ` Markus Armbruster
  2010-03-23 10:21       ` Aurelien Jarno
@ 2010-03-23 11:33       ` Paolo Bonzini
  1 sibling, 0 replies; 10+ messages in thread
From: Paolo Bonzini @ 2010-03-23 11:33 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Blue Swirl, Juergen Lock, Aurelien Jarno, qemu-devel

On 03/23/2010 11:06 AM, Markus Armbruster wrote:
> Aurelien Jarno<aurelien@aurel32.net>  writes:
>
>> On Tue, Mar 23, 2010 at 03:27:26AM +0100, Aurelien Jarno wrote:
>>> On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
>>>> Hi!
>>>>
>>>>   I just wanted to make another FreeBSD qemu git head snaphot port update,
>>>> and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
>>>> to hang early in the bios before it prints anything, last tb seems to be
>>>> this loop:
>>>>
>>>
>>> A quick bisect revealed it has been broken by this patch:
>>>
>>
>> I have just pushed a patch to fix the problem.
>
> Thanks.
>
> I can't see the offending on the mailing list.  Was it committed without
> review?

It was actually a series of 20-odd patches.  Patches with a laudable 
goal, but also some of them quite risky.

Paolo

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] git head broken? (x86 softmmu w/o kvm)
  2010-03-23  9:03   ` Aurelien Jarno
  2010-03-23 10:06     ` Markus Armbruster
@ 2010-03-23 19:24     ` Blue Swirl
  2010-03-23 19:42       ` Anthony Liguori
  1 sibling, 1 reply; 10+ messages in thread
From: Blue Swirl @ 2010-03-23 19:24 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: Juergen Lock, qemu-devel

On 3/23/10, Aurelien Jarno <aurelien@aurel32.net> wrote:
> On Tue, Mar 23, 2010 at 03:27:26AM +0100, Aurelien Jarno wrote:
>  > On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
>  > > Hi!
>  > >
>  > >  I just wanted to make another FreeBSD qemu git head snaphot port update,
>  > > and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
>  > > to hang early in the bios before it prints anything, last tb seems to be
>  > > this loop:
>  > >
>  >
>  > A quick bisect revealed it has been broken by this patch:
>  >
>
>
> I have just pushed a patch to fix the problem.

Thanks, sorry for the trouble.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] git head broken? (x86 softmmu w/o kvm)
  2010-03-23 19:24     ` [Qemu-devel] " Blue Swirl
@ 2010-03-23 19:42       ` Anthony Liguori
  2010-03-23 20:02         ` Markus Armbruster
  0 siblings, 1 reply; 10+ messages in thread
From: Anthony Liguori @ 2010-03-23 19:42 UTC (permalink / raw)
  To: Blue Swirl; +Cc: Juergen Lock, Aurelien Jarno, qemu-devel

Hi,

On 03/23/2010 02:24 PM, Blue Swirl wrote:
> On 3/23/10, Aurelien Jarno<aurelien@aurel32.net>  wrote:
>    
>> On Tue, Mar 23, 2010 at 03:27:26AM +0100, Aurelien Jarno wrote:
>>   >  On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
>>   >  >  Hi!
>>   >  >
>>   >  >   I just wanted to make another FreeBSD qemu git head snaphot port update,
>>   >  >  and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
>>   >  >  to hang early in the bios before it prints anything, last tb seems to be
>>   >  >  this loop:
>>   >  >
>>   >
>>   >  A quick bisect revealed it has been broken by this patch:
>>   >
>>
>>
>> I have just pushed a patch to fix the problem.
>>      
> Thanks, sorry for the trouble.
>    

It would be nice to send a series like this to the list first in the 
future to give people a heads up.  It's a useful set of clean-ups but 
it's nice to give people a chance to provide input.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] git head broken? (x86 softmmu w/o kvm)
  2010-03-23 19:42       ` Anthony Liguori
@ 2010-03-23 20:02         ` Markus Armbruster
  0 siblings, 0 replies; 10+ messages in thread
From: Markus Armbruster @ 2010-03-23 20:02 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Blue Swirl, Juergen Lock, Aurelien Jarno, qemu-devel

Anthony Liguori <anthony@codemonkey.ws> writes:

> Hi,
>
> On 03/23/2010 02:24 PM, Blue Swirl wrote:
>> On 3/23/10, Aurelien Jarno<aurelien@aurel32.net>  wrote:
>>    
>>> On Tue, Mar 23, 2010 at 03:27:26AM +0100, Aurelien Jarno wrote:
>>>   >  On Mon, Mar 22, 2010 at 10:25:24PM +0100, Juergen Lock wrote:
>>>   >  >  Hi!
>>>   >  >
>>>   >  >   I just wanted to make another FreeBSD qemu git head snaphot port update,
>>>   >  >  and found both i386-softmmu and x86_64-softmmu no longer boot, they seem
>>>   >  >  to hang early in the bios before it prints anything, last tb seems to be
>>>   >  >  this loop:
>>>   >  >
>>>   >
>>>   >  A quick bisect revealed it has been broken by this patch:
>>>   >
>>>
>>>
>>> I have just pushed a patch to fix the problem.
>>>      
>> Thanks, sorry for the trouble.
>>    
>
> It would be nice to send a series like this to the list first in the
> future to give people a heads up.  It's a useful set of clean-ups but
> it's nice to give people a chance to provide input.

It's not merely "nice", it's how we work.  It's a far more important and
useful rule than where to put the curlies and such.

And yes, the patch series is good stuff.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-03-23 20:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22 21:25 [Qemu-devel] git head broken? (x86 softmmu w/o kvm) Juergen Lock
2010-03-22 21:37 ` [Qemu-devel] " Juergen Lock
2010-03-23  2:27 ` [Qemu-devel] " Aurelien Jarno
2010-03-23  9:03   ` Aurelien Jarno
2010-03-23 10:06     ` Markus Armbruster
2010-03-23 10:21       ` Aurelien Jarno
2010-03-23 11:33       ` [Qemu-devel] " Paolo Bonzini
2010-03-23 19:24     ` [Qemu-devel] " Blue Swirl
2010-03-23 19:42       ` Anthony Liguori
2010-03-23 20:02         ` Markus Armbruster

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.