Received: from eggs.gnu.org ([208.118.235.92]:60451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S75cY-0008As-Tv for qemu-devel@nongnu.org; Mon, 12 Mar 2012 09:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S75cE-0002Qm-LB for qemu-devel@nongnu.org; Mon, 12 Mar 2012 09:49:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S75cE-0002Qe-Dr for qemu-devel@nongnu.org; Mon, 12 Mar 2012 09:48:46 -0400 From: Markus Armbruster References: <1331553783-13761-1-git-send-email-bos@je-eigen-domein.nl> Date: Mon, 12 Mar 2012 14:48:39 +0100 In-Reply-To: <1331553783-13761-1-git-send-email-bos@je-eigen-domein.nl> (Floris Bos's message of "Mon, 12 Mar 2012 13:03:03 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v2] ide: Adds "model=s" option, allowing the user to override the default disk model name "QEMU HARDDISK" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Floris Bos Cc: kwolf@redhat.com, qemu-devel@nongnu.org, Floris Bos Floris Bos writes: > 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 At first glance: 1. IDE only, scsi-disk is missing. 2. "model" needs to be a device property, just like "serial". 3. I'd rather not add "model" to -drive. This should simplify your patch quite a bit. -drive mixes up frontend (a.k.a. device model) and backend configuration. It provides only common device model configuration knobs. For full device model control, use -device. "model" isn't common. It applies only to some device models, and is silently ignored for all others. "serial" is in -drive only for backward compatibility. Should you insist on adding "model" to -drive, too, please split the patch: first part adds the property, second part adds the -drive parameter.