|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH v3 10/12] Dump: add qmp command "query-dump" |
Date: | Mon, 30 Nov 2015 13:56:42 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 30/11/2015 12:32, Peter Xu wrote: > +{ > + DumpQueryResult *result = g_malloc0(sizeof(*result)); > + DumpState *state = dump_state_get_global(); > + result->status = state->status; > + result->written_bytes = state->written_size; You need a mutex around the reads of ->status and ->written_size. Paolo > + result->total_bytes = state->total_size; > + return result;
[Prev in Thread] | Current Thread | [Next in Thread] |