qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
@ 2019-10-17 10:02 David Hildenbrand
  2019-10-17 10:25 ` Philippe Mathieu-Daudé
  2019-10-17 11:01 ` Thomas Huth
  0 siblings, 2 replies; 8+ messages in thread
From: David Hildenbrand @ 2019-10-17 10:02 UTC (permalink / raw)
  To: qemu-devel, qemu-s390x, Richard Henderson

Hi,

I'm currently trying to run Fedora 31 under qemu-user 
(https://github.com/fedora-cloud/docker-brew-fedora/tree/8a81f67271e959dfc8f8a888b161bbd540b7a83b/s390x) 
in order to debug  a vector instruction issue.

Strangely, when trying to chroot into above rootfs and running 
/bin/bash, I get

t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/bash
TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
/home/dhildenb/git/qemu/tcg/tci.c:859: tcg fatal error
Aborted


But it's not fundamentally broken:

t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/ls
bin   dev  home  lib64       media  opt   qemu-s390x  run   srv  tmp  var
boot  etc  lib   lost+found  mnt    proc  root        sbin  sys  usr


I do wonder why we don't run into the same issue under qemu-systems390x.

@Richard, any idea?

-- 

Thanks,

David / dhildenb


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

* Re: s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
  2019-10-17 10:02 s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec() David Hildenbrand
@ 2019-10-17 10:25 ` Philippe Mathieu-Daudé
  2019-10-17 10:35   ` David Hildenbrand
  2019-10-17 11:01 ` Thomas Huth
  1 sibling, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-10-17 10:25 UTC (permalink / raw)
  To: David Hildenbrand, qemu-devel, qemu-s390x, Richard Henderson

Hi David,

On 10/17/19 12:02 PM, David Hildenbrand wrote:
> Hi,
> 
> I'm currently trying to run Fedora 31 under qemu-user 
> (https://github.com/fedora-cloud/docker-brew-fedora/tree/8a81f67271e959dfc8f8a888b161bbd540b7a83b/s390x) 
> in order to debug  a vector instruction issue.
> 
> Strangely, when trying to chroot into above rootfs and running 
> /bin/bash, I get
> 
> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/bash
> TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
> /home/dhildenb/git/qemu/tcg/tci.c:859: tcg fatal error
> Aborted
> 
> 
> But it's not fundamentally broken:
> 
> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/ls
> bin   dev  home  lib64       media  opt   qemu-s390x  run   srv  tmp  var
> boot  etc  lib   lost+found  mnt    proc  root        sbin  sys  usr
> 
> 
> I do wonder why we don't run into the same issue under qemu-systems390x.

Are you also using TCI in system emulation?

Can you simply use TCG to debug your vector instruction issue instead?

Regards,

Phil.


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

* Re: s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
  2019-10-17 10:25 ` Philippe Mathieu-Daudé
@ 2019-10-17 10:35   ` David Hildenbrand
  2019-10-17 10:42     ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 8+ messages in thread
From: David Hildenbrand @ 2019-10-17 10:35 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-s390x, Richard Henderson

On 17.10.19 12:25, Philippe Mathieu-Daudé wrote:
> Hi David,
> 
> On 10/17/19 12:02 PM, David Hildenbrand wrote:
>> Hi,
>>
>> I'm currently trying to run Fedora 31 under qemu-user
>> (https://github.com/fedora-cloud/docker-brew-fedora/tree/8a81f67271e959dfc8f8a888b161bbd540b7a83b/s390x)
>> in order to debug  a vector instruction issue.
>>
>> Strangely, when trying to chroot into above rootfs and running
>> /bin/bash, I get
>>
>> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/bash
>> TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
>> /home/dhildenb/git/qemu/tcg/tci.c:859: tcg fatal error
>> Aborted
>>
>>
>> But it's not fundamentally broken:
>>
>> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/ls
>> bin   dev  home  lib64       media  opt   qemu-s390x  run   srv  tmp  var
>> boot  etc  lib   lost+found  mnt    proc  root        sbin  sys  usr
>>
>>
>> I do wonder why we don't run into the same issue under qemu-systems390x.
> 
> Are you also using TCI in system emulation?

Most probably not. It took me longer than expected to find a ./configure 
variant that at least allows me to build static qemu-user binaries. Most 
probably something sneeked in there.

> 
> Can you simply use TCG to debug your vector instruction issue instead?

I was using

./configure --disable-strip --disable-werror --python=/usr/bin/python3 
--enable-tcg-interpreter --disable-system --enable-linux-user --static 
--disable-pie --disable-sdl --disable-gtk --disable-spice 
--disable-tools --disable-guest-agent --disable-guest-agent-msi 
--disable-curses --disable-curl --disable-gnutls --disable-gcrypt 
--disable-nettle --disable-cap-ng --disable-brlapi --disable-mpath 
--disable-capstone --disable-xen --disable-rdma 
--extra-ldflags="-Wl,-z,relro -Wl,-z,now" --target-list=s390x-linux-user

inspired by the Fedora rpm SPEC.

"--enable-tcg-interpreter" is the relevant bit I blindly copied without 
thinking about it (in the rpm SPEC, it is wrapped by an ifdef ...)

Thanks for the hint, will try with --disable-tcg-interpreter

> 
> Regards,
> 
> Phil.
> 


-- 

Thanks,

David / dhildenb


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

* Re: s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
  2019-10-17 10:35   ` David Hildenbrand
@ 2019-10-17 10:42     ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-10-17 10:42 UTC (permalink / raw)
  To: David Hildenbrand, qemu-devel, qemu-s390x, Richard Henderson

On 10/17/19 12:35 PM, David Hildenbrand wrote:
> On 17.10.19 12:25, Philippe Mathieu-Daudé wrote:
>> Hi David,
>>
>> On 10/17/19 12:02 PM, David Hildenbrand wrote:
>>> Hi,
>>>
>>> I'm currently trying to run Fedora 31 under qemu-user
>>> (https://github.com/fedora-cloud/docker-brew-fedora/tree/8a81f67271e959dfc8f8a888b161bbd540b7a83b/s390x) 
>>>
>>> in order to debug  a vector instruction issue.
>>>
>>> Strangely, when trying to chroot into above rootfs and running
>>> /bin/bash, I get
>>>
>>> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/bash
>>> TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
>>> /home/dhildenb/git/qemu/tcg/tci.c:859: tcg fatal error
>>> Aborted
>>>
>>>
>>> But it's not fundamentally broken:
>>>
>>> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/ls
>>> bin   dev  home  lib64       media  opt   qemu-s390x  run   srv  tmp  
>>> var
>>> boot  etc  lib   lost+found  mnt    proc  root        sbin  sys  usr
>>>
>>>
>>> I do wonder why we don't run into the same issue under qemu-systems390x.
>>
>> Are you also using TCI in system emulation?
> 
> Most probably not. It took me longer than expected to find a ./configure 
> variant that at least allows me to build static qemu-user binaries. Most 
> probably something sneeked in there.
> 
>>
>> Can you simply use TCG to debug your vector instruction issue instead?
> 
> I was using
> 
> ./configure --disable-strip --disable-werror --python=/usr/bin/python3 
> --enable-tcg-interpreter --disable-system --enable-linux-user --static 
> --disable-pie --disable-sdl --disable-gtk --disable-spice 
> --disable-tools --disable-guest-agent --disable-guest-agent-msi 
> --disable-curses --disable-curl --disable-gnutls --disable-gcrypt 
> --disable-nettle --disable-cap-ng --disable-brlapi --disable-mpath 
> --disable-capstone --disable-xen --disable-rdma 
> --extra-ldflags="-Wl,-z,relro -Wl,-z,now" --target-list=s390x-linux-user
> 
> inspired by the Fedora rpm SPEC.
> 
> "--enable-tcg-interpreter" is the relevant bit I blindly copied without 
> thinking about it (in the rpm SPEC, it is wrapped by an ifdef ...)

I thought there was a patch adding a big warning when ./configure is run 
with this option, but I can't find it so maybe we just talked about it.

> Thanks for the hint, will try with --disable-tcg-interpreter
> 
>>
>> Regards,
>>
>> Phil.
>>


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

* Re: s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
  2019-10-17 10:02 s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec() David Hildenbrand
  2019-10-17 10:25 ` Philippe Mathieu-Daudé
@ 2019-10-17 11:01 ` Thomas Huth
  2019-10-21 16:37   ` Richard Henderson
  1 sibling, 1 reply; 8+ messages in thread
From: Thomas Huth @ 2019-10-17 11:01 UTC (permalink / raw)
  To: David Hildenbrand, qemu-devel, qemu-s390x, Stefan Weil; +Cc: Richard Henderson

On 17/10/2019 12.02, David Hildenbrand wrote:
> Hi,
> 
> I'm currently trying to run Fedora 31 under qemu-user
> (https://github.com/fedora-cloud/docker-brew-fedora/tree/8a81f67271e959dfc8f8a888b161bbd540b7a83b/s390x)
> in order to debug  a vector instruction issue.
> 
> Strangely, when trying to chroot into above rootfs and running
> /bin/bash, I get
> 
> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/bash
> TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
> /home/dhildenb/git/qemu/tcg/tci.c:859: tcg fatal error
> Aborted

That's likely the issue which might be fixed by Stefan's patch here:

https://patchwork.ozlabs.org/patch/1083601/

... unfortunately, this has never been merged into master. Stefan, any
chance that you could finally get this upstream?

 Thomas


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

* Re: s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
  2019-10-17 11:01 ` Thomas Huth
@ 2019-10-21 16:37   ` Richard Henderson
  2019-10-21 16:40     ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Henderson @ 2019-10-21 16:37 UTC (permalink / raw)
  To: Thomas Huth, David Hildenbrand, qemu-devel, qemu-s390x, Stefan Weil

On 10/17/19 4:01 AM, Thomas Huth wrote:
> On 17/10/2019 12.02, David Hildenbrand wrote:
>> Hi,
>>
>> I'm currently trying to run Fedora 31 under qemu-user
>> (https://github.com/fedora-cloud/docker-brew-fedora/tree/8a81f67271e959dfc8f8a888b161bbd540b7a83b/s390x)
>> in order to debug  a vector instruction issue.
>>
>> Strangely, when trying to chroot into above rootfs and running
>> /bin/bash, I get
>>
>> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/bash
>> TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
>> /home/dhildenb/git/qemu/tcg/tci.c:859: tcg fatal error
>> Aborted
> 
> That's likely the issue which might be fixed by Stefan's patch here:
> 
> https://patchwork.ozlabs.org/patch/1083601/
> 
> ... unfortunately, this has never been merged into master. Stefan, any
> chance that you could finally get this upstream?

Oops.  Sorry about that.  Queued.


r~



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

* Re: s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
  2019-10-21 16:37   ` Richard Henderson
@ 2019-10-21 16:40     ` Peter Maydell
  2019-10-21 16:48       ` Richard Henderson
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2019-10-21 16:40 UTC (permalink / raw)
  To: Richard Henderson
  Cc: qemu-s390x, Stefan Weil, Thomas Huth, qemu-devel, David Hildenbrand

On Mon, 21 Oct 2019 at 17:39, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 10/17/19 4:01 AM, Thomas Huth wrote:
> > On 17/10/2019 12.02, David Hildenbrand wrote:
> >> Hi,
> >>
> >> I'm currently trying to run Fedora 31 under qemu-user
> >> (https://github.com/fedora-cloud/docker-brew-fedora/tree/8a81f67271e959dfc8f8a888b161bbd540b7a83b/s390x)
> >> in order to debug  a vector instruction issue.
> >>
> >> Strangely, when trying to chroot into above rootfs and running
> >> /bin/bash, I get
> >>
> >> t460s: ~/f31  $ sudo chroot . ./qemu-s390x  /bin/bash
> >> TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
> >> /home/dhildenb/git/qemu/tcg/tci.c:859: tcg fatal error
> >> Aborted
> >
> > That's likely the issue which might be fixed by Stefan's patch here:
> >
> > https://patchwork.ozlabs.org/patch/1083601/
> >
> > ... unfortunately, this has never been merged into master. Stefan, any
> > chance that you could finally get this upstream?
>
> Oops.  Sorry about that.  Queued.

Er, you had review comments on it the first time round.
Doesn't it need a v2 to be posted with those fixed ?

thanks
-- PMM


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

* Re: s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec()
  2019-10-21 16:40     ` Peter Maydell
@ 2019-10-21 16:48       ` Richard Henderson
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Henderson @ 2019-10-21 16:48 UTC (permalink / raw)
  To: Peter Maydell
  Cc: qemu-s390x, Stefan Weil, Thomas Huth, qemu-devel, David Hildenbrand

On 10/21/19 9:40 AM, Peter Maydell wrote:
>>> That's likely the issue which might be fixed by Stefan's patch here:
>>>
>>> https://patchwork.ozlabs.org/patch/1083601/
>>>
>>> ... unfortunately, this has never been merged into master. Stefan, any
>>> chance that you could finally get this upstream?
>>
>> Oops.  Sorry about that.  Queued.
> 
> Er, you had review comments on it the first time round.
> Doesn't it need a v2 to be posted with those fixed ?

The patch does follow existing practice within the file,
although that itself could be cleaned up.  I think that
could just be done in a separate patch.


r~


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

end of thread, other threads:[~2019-10-21 16:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17 10:02 s390x/qemu-user: TODO /home/dhildenb/git/qemu/tcg/tci.c:859: tcg_qemu_tb_exec() David Hildenbrand
2019-10-17 10:25 ` Philippe Mathieu-Daudé
2019-10-17 10:35   ` David Hildenbrand
2019-10-17 10:42     ` Philippe Mathieu-Daudé
2019-10-17 11:01 ` Thomas Huth
2019-10-21 16:37   ` Richard Henderson
2019-10-21 16:40     ` Peter Maydell
2019-10-21 16:48       ` Richard Henderson

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).