]> git.proxmox.com Git - qemu.git/commit
ide: Add "model=s" qdev option
authorFloris Bos <bos@je-eigen-domein.nl>
Mon, 12 Mar 2012 20:05:09 +0000 (21:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:39 +0000 (14:54 +0200)
commit27e0c9a1bbd166a67c16291016fba298a8e47140
tree02a8183547b76d83f6ac422834d97814278bef5a
parent2844bdd99a96dc32a6ebf464f49e65be31da1c14
ide: Add "model=s" qdev option

Allow the user to override the default disk model name "QEMU HARDDISK".

Some Linux distributions use the /dev/disk/by-id/scsi-SATA_name-of-disk-
model_serial addressing scheme when refering to partitions in /etc/fstab
and elsewhere. This causes problems when starting a disk image taken from
an existing physical server under qemu, because when running under qemu
name-of-disk-model is always "QEMU HARDDISK".

This patch introduces a model=s option which in combination with the
existing serial=s option can be used to fake the disk the operating
system was previously on, allowing the OS to boot properly.

Cc: kwolf@redhat.com
Signed-off-by: Floris Bos <dev@noc-ps.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c
hw/ide/internal.h
hw/ide/qdev.c