Re: [Qemu-devel] [PATCH v3 1/4] exec: Atomic access to bounce buffer

2015-03-16 Thread Fam Zheng
On Mon, 03/16 08:30, Paolo Bonzini wrote: > > > On 16/03/2015 06:31, Fam Zheng wrote: > > There could be a race condition when two processes call > > address_space_map concurrently and both want to use the bounce buffer. > > > > Add an in_use flag in BounceBuffer to sync it. > > > > Signed-off-

Re: [Qemu-devel] [PATCH v3 1/4] exec: Atomic access to bounce buffer

2015-03-16 Thread Paolo Bonzini
On 16/03/2015 06:31, Fam Zheng wrote: > There could be a race condition when two processes call > address_space_map concurrently and both want to use the bounce buffer. > > Add an in_use flag in BounceBuffer to sync it. > > Signed-off-by: Fam Zheng > --- > exec.c | 5 - > 1 file changed,

[Qemu-devel] [PATCH v3 1/4] exec: Atomic access to bounce buffer

2015-03-15 Thread Fam Zheng
There could be a race condition when two processes call address_space_map concurrently and both want to use the bounce buffer. Add an in_use flag in BounceBuffer to sync it. Signed-off-by: Fam Zheng --- exec.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exec.c b/exec