Re: [Qemu-block] [PATCH 17/17] block: make accounting thread-safe

2017-05-05 Thread Stefan Hajnoczi
On Thu, Apr 20, 2017 at 02:00:58PM +0200, Paolo Bonzini wrote: > I'm not trying too hard yet. Later, with multiqueue support, > this may cause cacheline bouncing. This patch calls qemu_clock_get_ns() within a spinlock region. It's probably just a memory load, rdtsc, and some math but more

[Qemu-block] [PATCH 17/17] block: make accounting thread-safe

2017-04-20 Thread Paolo Bonzini
I'm not trying too hard yet. Later, with multiqueue support, this may cause cacheline bouncing. Signed-off-by: Paolo Bonzini --- block/accounting.c | 15 +++ include/block/accounting.h | 8 ++-- 2 files changed, 21 insertions(+), 2 deletions(-)