Re: [Qemu-devel] SEV and WFE instructions on ARM

2013-11-26 Thread Walsh, Benjamin
Hello Sebastian, I was looking at using WFE on QEMU, found that it is implemented as a NOP, googled and I found this thread. I am not using this for SMP, simply to implement sleep, so the busy loop is conceptually OK. Except, of course, that QEMU floors the host CPU at 100% in the idle loop.

Re: [Qemu-devel] SEV and WFE instructions on ARM

2013-11-26 Thread Peter Maydell
On 26 November 2013 12:51, Walsh, Benjamin benjamin.wa...@windriver.com wrote: I was looking at using WFE on QEMU, found that it is implemented as a NOP, googled and I found this thread. I am not using this for SMP, simply to implement sleep, so the busy loop is conceptually OK. Except, of

Re: [Qemu-devel] SEV and WFE instructions on ARM

2013-06-07 Thread Sebastian Huber
Hello Peter, thanks for your suggestions. I will look at the WFI support and may send a patch for the SEV/WFE, but this will take some weeks. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47

[Qemu-devel] SEV and WFE instructions on ARM

2013-06-06 Thread Sebastian Huber
Hello, I want to use Qemu to test some SMP code. For this I set up Qemu to fire up two Cortex-A9 MPCore CPUs. I have the following ticket lock implementation: static inline void _ARM_Data_memory_barrier( void ) { __asm__ volatile ( dmb : : : memory ); } static inline void

Re: [Qemu-devel] SEV and WFE instructions on ARM

2013-06-06 Thread Peter Maydell
On 6 June 2013 15:34, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: I want to use Qemu to test some SMP code. For this I set up Qemu to fire up two Cortex-A9 MPCore CPUs. I have the following ticket lock implementation: QEMU is not a very good choice for this sort of testing,