Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-25 Thread Andreas Färber
Am 24.06.2012 16:02, schrieb liu ping fan: > On Fri, Jun 22, 2012 at 8:55 PM, Andreas Färber wrote: >> Am 21.06.2012 17:06, schrieb Liu Ping Fan: >>> introduce a lock for per-cpu to protect agaist accesing from >>> other vcpu thread. >>> >>> Signed-off-by: Liu Ping Fan >>> --- >>> cpu-defs.h |

Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-25 Thread Andreas Färber
Am 25.06.2012 12:04, schrieb Stefan Hajnoczi: > On Sun, Jun 24, 2012 at 3:05 PM, liu ping fan wrote: >> On Fri, Jun 22, 2012 at 8:36 PM, Stefan Hajnoczi wrote: >>> On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan wrote: diff --git a/main-loop.h b/main-loop.h index dce1cd9..d8d44a4 100644

Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-25 Thread Stefan Hajnoczi
On Sun, Jun 24, 2012 at 3:05 PM, liu ping fan wrote: > On Fri, Jun 22, 2012 at 8:36 PM, Stefan Hajnoczi wrote: >> On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan wrote: >>> diff --git a/cpu-defs.h b/cpu-defs.h >>> index f49e950..7305822 100644 >>> --- a/cpu-defs.h >>> +++ b/cpu-defs.h >>> @@ -30,6

Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-24 Thread liu ping fan
On Fri, Jun 22, 2012 at 8:36 PM, Stefan Hajnoczi wrote: > On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan wrote: >> diff --git a/cpu-defs.h b/cpu-defs.h >> index f49e950..7305822 100644 >> --- a/cpu-defs.h >> +++ b/cpu-defs.h >> @@ -30,6 +30,7 @@ >>  #include "osdep.h" >>  #include "qemu-queue.h" >

Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-24 Thread liu ping fan
On Fri, Jun 22, 2012 at 8:55 PM, Andreas Färber wrote: > Am 21.06.2012 17:06, schrieb Liu Ping Fan: >> introduce a lock for per-cpu to protect agaist accesing from >> other vcpu thread. >> >> Signed-off-by: Liu Ping Fan >> --- >>  cpu-defs.h  |    2 ++ >>  cpus.c      |   17 + >>

Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-22 Thread Anthony Liguori
On 06/21/2012 09:49 AM, Liu Ping Fan wrote: introduce a lock for per-cpu to protect agaist accesing from other vcpu thread. Signed-off-by: Liu Ping Fan --- cpu-defs.h |2 ++ cpus.c | 17 + main-loop.h |3 +++ 3 files changed, 22 insertions(+), 0 deletions(-)

Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-22 Thread Andreas Färber
Am 21.06.2012 17:06, schrieb Liu Ping Fan: > introduce a lock for per-cpu to protect agaist accesing from > other vcpu thread. > > Signed-off-by: Liu Ping Fan > --- > cpu-defs.h |2 ++ > cpus.c | 17 + > main-loop.h |3 +++ > 3 files changed, 22 insertions(+), 0 d

Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-22 Thread Stefan Hajnoczi
On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan wrote: > diff --git a/cpu-defs.h b/cpu-defs.h > index f49e950..7305822 100644 > --- a/cpu-defs.h > +++ b/cpu-defs.h > @@ -30,6 +30,7 @@ >  #include "osdep.h" >  #include "qemu-queue.h" >  #include "targphys.h" > +#include "qemu-thread-posix.h" This br

[Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock

2012-06-21 Thread Liu Ping Fan
introduce a lock for per-cpu to protect agaist accesing from other vcpu thread. Signed-off-by: Liu Ping Fan --- cpu-defs.h |2 ++ cpus.c | 17 + main-loop.h |3 +++ 3 files changed, 22 insertions(+), 0 deletions(-) diff --git a/cpu-defs.h b/cpu-defs.h index f49e9