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 qemul...@gmail.com wrote: On Fri, Jun 22, 2012 at 8:36 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan qemul...@gmail.com wrote: diff --git a/cpu-defs.h b/cpu-defs.h index f49e950..7305822 100644 ---

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 qemul...@gmail.com wrote: On Fri, Jun 22, 2012 at 8:36 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan qemul...@gmail.com wrote: diff --git a/main-loop.h

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 afaer...@suse.de 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

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 afaer...@suse.de 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 pingf...@linux.vnet.ibm.com ---  cpu-defs.h  |    2 ++  cpus.c      

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 stefa...@gmail.com wrote: On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan qemul...@gmail.com 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  

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 qemul...@gmail.com 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

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 pingf...@linux.vnet.ibm.com --- cpu-defs.h |2 ++ cpus.c | 17 + main-loop.h |3 +++ 3 files changed, 22

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 Fanpingf...@linux.vnet.ibm.com --- cpu-defs.h |2 ++ cpus.c | 17 + main-loop.h |3 +++ 3 files changed, 22

[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 pingf...@linux.vnet.ibm.com --- cpu-defs.h |2 ++ cpus.c | 17 + main-loop.h |3 +++ 3 files changed, 22 insertions(+), 0 deletions(-) diff --git