[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/4] virtio-9p: Wait for 9p operations to comple
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 3/4] virtio-9p: Wait for 9p operations to complete before migration. |
Date: |
Thu, 11 Apr 2013 13:41:22 +0100 |
On 11 April 2013 13:38, Paolo Bonzini <address@hidden> wrote:
> Il 11/04/2013 14:14, Benoīt Canet ha scritto:
>> int open_fd_hw;
>> int total_open_fd;
>> static int open_fd_rc;
>>
>> +typedef struct MigrationHelper {
>> + int32_t pending_requests;
>> + QemuCond complete;
>> + QemuMutex mutex;
>> +} MigrationHelper;
>> +
>> +MigrationHelper *migration;
>
> I say, just use three variables instead of a struct.
They could all be marked 'static' for file local
scoping as well, right?
-- PMM