Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-18 Thread David Gibson
On Mon, Jul 18, 2016 at 09:25:58AM +0200, Igor Mammedov wrote: > On Mon, 18 Jul 2016 11:17:25 +1000 > David Gibson wrote: > > > On Sat, Jul 16, 2016 at 12:11:56AM +0200, Greg Kurz wrote: > > > On Thu, 14 Jul 2016 21:59:45 +1000 > > > David Gibson wrote: > > > > > > > On Thu, Jul 14, 2016 at 0

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-18 Thread David Gibson
On Mon, Jul 18, 2016 at 10:52:39AM +0200, Greg Kurz wrote: > On Mon, 18 Jul 2016 11:17:25 +1000 > David Gibson wrote: > > > On Sat, Jul 16, 2016 at 12:11:56AM +0200, Greg Kurz wrote: > > > On Thu, 14 Jul 2016 21:59:45 +1000 > > > David Gibson wrote: > > > > > > > On Thu, Jul 14, 2016 at 03:50

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-18 Thread Greg Kurz
On Mon, 18 Jul 2016 11:17:25 +1000 David Gibson wrote: > On Sat, Jul 16, 2016 at 12:11:56AM +0200, Greg Kurz wrote: > > On Thu, 14 Jul 2016 21:59:45 +1000 > > David Gibson wrote: > > > > > On Thu, Jul 14, 2016 at 03:50:56PM +0530, Bharata B Rao wrote: > > > > On Thu, Jul 14, 2016 at 3:24 PM

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-18 Thread Igor Mammedov
On Mon, 18 Jul 2016 11:17:25 +1000 David Gibson wrote: > On Sat, Jul 16, 2016 at 12:11:56AM +0200, Greg Kurz wrote: > > On Thu, 14 Jul 2016 21:59:45 +1000 > > David Gibson wrote: > > > > > On Thu, Jul 14, 2016 at 03:50:56PM +0530, Bharata B Rao wrote: > > > > On Thu, Jul 14, 2016 at 3:24 PM

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-17 Thread David Gibson
On Sat, Jul 16, 2016 at 12:11:56AM +0200, Greg Kurz wrote: > On Thu, 14 Jul 2016 21:59:45 +1000 > David Gibson wrote: > > > On Thu, Jul 14, 2016 at 03:50:56PM +0530, Bharata B Rao wrote: > > > On Thu, Jul 14, 2016 at 3:24 PM, Peter Maydell > > > wrote: > > > > On 14 July 2016 at 08:57, David

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-15 Thread Greg Kurz
On Thu, 14 Jul 2016 21:59:45 +1000 David Gibson wrote: > On Thu, Jul 14, 2016 at 03:50:56PM +0530, Bharata B Rao wrote: > > On Thu, Jul 14, 2016 at 3:24 PM, Peter Maydell > > wrote: > > > On 14 July 2016 at 08:57, David Gibson > > > wrote: > > >> With CONFIG_USER_ONLY, generation of cpu_i

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-14 Thread David Gibson
On Thu, Jul 14, 2016 at 03:50:56PM +0530, Bharata B Rao wrote: > On Thu, Jul 14, 2016 at 3:24 PM, Peter Maydell > wrote: > > On 14 July 2016 at 08:57, David Gibson wrote: > >> With CONFIG_USER_ONLY, generation of cpu_index values is done differently > >> than for full system targets. This metho

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-14 Thread Bharata B Rao
On Thu, Jul 14, 2016 at 3:24 PM, Peter Maydell wrote: > On 14 July 2016 at 08:57, David Gibson wrote: >> With CONFIG_USER_ONLY, generation of cpu_index values is done differently >> than for full system targets. This method turns out to be broken, since >> it can fairly easily result in duplicat

Re: [Qemu-devel] [RFC 2/2] linux-user: Fix cpu_index generation

2016-07-14 Thread Peter Maydell
On 14 July 2016 at 08:57, David Gibson wrote: > With CONFIG_USER_ONLY, generation of cpu_index values is done differently > than for full system targets. This method turns out to be broken, since > it can fairly easily result in duplicate cpu_index values for > simultaneously active cpus (i.e. th