qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] NPTL user mode fixes
@ 2010-04-26 23:00 David Munday
  2010-04-27 18:01 ` Blue Swirl
  2010-04-28 18:56 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: David Munday @ 2010-04-26 23:00 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

Hi,

I starting to work with qemu to enable NPTL dependent binaries to run in
user mode. I see that currently NPTL is not supported for SPARC or x86. 

 

What is still left to do for NPTL support?

 

Thanks,
David


[-- Attachment #2: Type: text/html, Size: 4655 bytes --]

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

* Re: [Qemu-devel] NPTL user mode fixes
  2010-04-26 23:00 [Qemu-devel] NPTL user mode fixes David Munday
@ 2010-04-27 18:01 ` Blue Swirl
  2010-04-28 18:56 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2010-04-27 18:01 UTC (permalink / raw)
  To: David Munday; +Cc: qemu-devel

On 4/27/10, David Munday <cromom@soe.ucsc.edu> wrote:
>
>
>
>
> Hi,
>
> I starting to work with qemu to enable NPTL dependent binaries to run in
> user mode. I see that currently NPTL is not supported for SPARC or x86.
>
>
>
> What is still left to do for NPTL support?

I'd start by checking what kind of changes are in the commits, which
enabled NPTL to those architectures that support it.

Then some debugging with a simple test case should do it. It should
help if you know NPTL implementation details.

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

* Re: [Qemu-devel] NPTL user mode fixes
  2010-04-26 23:00 [Qemu-devel] NPTL user mode fixes David Munday
  2010-04-27 18:01 ` Blue Swirl
@ 2010-04-28 18:56 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2010-04-28 18:56 UTC (permalink / raw)
  To: David Munday; +Cc: qemu-devel

On 04/26/2010 04:00 PM, David Munday wrote:
> I starting to work with qemu to enable NPTL dependent binaries to run in
> user mode. I see that currently NPTL is not supported for SPARC or x86.
> 
> What is still left to do for NPTL support?

The thing that's missing to enable the compile with NPTL is cpu_set_tls.
For Sparc I believe this is merely an assignment to %g7.  For x86, you
need to arrange for a call to do_set_thread_area, which is currently
private to linux-user/syscall.c.

However, the other thing that will need to be fixed is that neither port
implements its atomic operations atomically -- the implementations merely
assume that only one thread is active.  See do_store_exclusive in
linux-user/main.c for how several ports handle their atomic operations.
It'll be a bit different for Sparc singe it has LDSTUB and SWAP as well
as CAS.  It'll be lots different for x86, since quite a few read-modify-write
operations can be made atomic by use of the LOCK prefix (this could be 
quite an undertaking, actually).


r~

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

end of thread, other threads:[~2010-04-28 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 23:00 [Qemu-devel] NPTL user mode fixes David Munday
2010-04-27 18:01 ` Blue Swirl
2010-04-28 18:56 ` 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).