[Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-08-29 Thread Peter Maydell
To summarise the situation here: * in ARMv8 the Generic Timers are mandatory at the architectural/hardware level * however the kernel folks do not want to guarantee that they are always exposed to userspace (they want the flexibility in future to disable the userspace access for possible errat

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-25 Thread Ard Biesheuvel
On 25 July 2014 10:54, Riku Voipio wrote: > On Tue, Jul 22, 2014 at 10:22:15PM -, Peter Maydell wrote: >> On 22 July 2014 20:46, Richard Henderson wrote: >> > On 07/21/2014 10:37 AM, Peter Maydell wrote: >> >>> It's trying to measure clock cycles required to perform the startup >> >>> relocat

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-25 Thread Riku Voipio
On Tue, Jul 22, 2014 at 10:22:15PM -, Peter Maydell wrote: > On 22 July 2014 20:46, Richard Henderson wrote: > > On 07/21/2014 10:37 AM, Peter Maydell wrote: > >>> It's trying to measure clock cycles required to perform the startup > >>> relocations. > >> > >> That's a neat trick, given that t

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-24 Thread Richard Henderson
On 07/22/2014 12:22 PM, Peter Maydell wrote: > In any case the kernel guys say you can't guarantee they > exist unless you get them to define an ELF hwcap for > "timers exist and have a sane value in the 'what frequency > are they' register". So this is a glibc bug and I'm > not fixing QEMU... The

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-22 Thread Peter Maydell
On 22 July 2014 20:46, Richard Henderson wrote: > On 07/21/2014 10:37 AM, Peter Maydell wrote: >>> It's trying to measure clock cycles required to perform the startup >>> relocations. >> >> That's a neat trick, given that the generic timers are not cycle >> counters! They're a fixed frequency coun

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-22 Thread Richard Henderson
On 07/21/2014 10:37 AM, Peter Maydell wrote: >> It's trying to measure clock cycles required to perform the startup >> relocations. > > That's a neat trick, given that the generic timers are not cycle > counters! They're a fixed frequency counter which is generally > unrelated and rather slower th

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Peter Maydell
On 21 July 2014 20:00, Richard Henderson wrote: > On 07/21/2014 12:46 AM, Peter Maydell wrote: >> Q: is this in a released glibc? The generic timers are strictly speaking >> optional, so this seems kind of bogus. Also looking at the glibc sources >> it never reads the counter frequency so what it

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Richard Henderson
On 07/21/2014 12:46 AM, Peter Maydell wrote: > Q: is this in a released glibc? The generic timers are strictly speaking > optional, so this seems kind of bogus. Also looking at the glibc sources > it never reads the counter frequency so what it is hoping to do with the > timer values I have no idea

[Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Peter Maydell
The kernel folks tell me that the generic timers being userspace accessible is only for the benefit of the kernel's VDSO, and they're not part of the kernel-to-userspace contract. This is therefore a bug in glibc, not QEMU, and we should get glibc fixed. -- You received this bug notification beca

[Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Peter Maydell
Q: is this in a released glibc? The generic timers are strictly speaking optional, so this seems kind of bogus. Also looking at the glibc sources it never reads the counter frequency so what it is hoping to do with the timer values I have no idea. -- You received this bug notification because you