]>
git.proxmox.com Git - qemu.git/blob - hw/block-common.c
2 * Common code for block device models
4 * Copyright (C) 2012 Red Hat, Inc.
6 * This work is licensed under the terms of the GNU GPL, version 2 or
7 * later. See the COPYING file in the top-level directory.
11 #include "hw/block-common.h"
13 void blkconf_serial(BlockConf
*conf
, char **serial
)
18 /* try to fall back to value set with legacy -drive serial=... */
19 dinfo
= drive_get_by_blockdev(conf
->bs
);
21 *serial
= g_strdup(dinfo
->serial
);