From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33781 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxdhh-0007jr-RC for qemu-devel@nongnu.org; Mon, 20 Sep 2010 06:34:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxdhg-0000l6-NC for qemu-devel@nongnu.org; Mon, 20 Sep 2010 06:34:33 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:60747) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxdhg-0000kv-L4 for qemu-devel@nongnu.org; Mon, 20 Sep 2010 06:34:32 -0400 Received: by qwk4 with SMTP id 4so3655841qwk.4 for ; Mon, 20 Sep 2010 03:34:31 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4C9738B4.4010809@redhat.com> Date: Mon, 20 Sep 2010 12:34:28 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4C972DCF.1050003@redhat.com> In-Reply-To: <4C972DCF.1050003@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Make NIC model fallback to default when specified model is not supported List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michal Novotny Cc: qemu-devel On 09/20/2010 11:47 AM, Michal Novotny wrote: > Hi, > > this is the patch to introduce a NIC model fallback to default when model > specified is not supported. It's been tested on i386-softmmu target on > i386 host using the Windows XP x86 virtual machine and by trying to setup > the invalid (unsupported) model of NIC device. Also, the new constant in > the net.h called the DEFAULT_NIC_MODEL has been introduced to be able to > change the default NIC model easily. This variable is being used to set > the default NIC model when necessary. Why? If it's not supported, it shouldn't run. Paolo