diff options
Diffstat (limited to 'block/vpc.c')
-rw-r--r-- | block/vpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/vpc.c b/block/vpc.c index cb6c570f44..9155ee15e3 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -110,6 +110,7 @@ struct vhd_dyndisk_header { }; typedef struct BDRVVPCState { + CoMutex lock; uint8_t footer_buf[HEADER_SIZE]; uint64_t free_data_block_offset; int max_table_entries; @@ -226,6 +227,7 @@ static int vpc_open(BlockDriverState *bs, int flags) s->last_pagetable = -1; #endif + qemu_co_mutex_init(&s->lock); return 0; fail: return err; |