All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Novotny <minovotn@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: "qe >> qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH] Make NIC model fallback to default when specified model is not supported
Date: Tue, 21 Sep 2010 09:10:37 +0200	[thread overview]
Message-ID: <4C985A6D.2060302@redhat.com> (raw)
In-Reply-To: <20100920175806.GD30611@redhat.com>

On 09/20/2010 07:58 PM, Michael S. Tsirkin wrote:
> On Mon, Sep 20, 2010 at 11:47:59AM +0200, 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 is this a good idea? This will create problems for anyone
> doing migration, etc.
>    

Why do you think it would introduce issues when doing migrations? 
Imagine one version (v1) of qemu supporting NIC model called e.g. 
"model" but the newer version (v2) no longer  supporting the model and 
you migrate a guest from v1 to v2 that's using "model" NIC. What does it 
do when you do this now? Will it fail and will the guest be working fine 
on v1 but not migrated to v2? What would my patch do concerning the 
migrations? Would it pass with changing NIC type to default?

>    
>> Also, some bits per mips_jazz were added but usage of some constant for
>> MIPS is not necessary since there is only one NIC model supported there.
>>
>> Michal
>>
>> Signed-off-by: Michal Novotny<minovotn@redhat.com>
>>      
> I think adding NIC_DEFAULT_MODEL macro in net.h is problematic exactly
> because each platform has its own.
> It belongs in per-platform .c file I think.
>    

That's right. Implementing this into the per-platform.c could be a 
better idea nevertheless I saw message of "Unsupported NIC" just in 
mips_jazz.c and net.c so maybe I got confused. The NIC_DEFAULT_MODEL 
definition could help to change default NIC model in the future without 
digging into the code so much so I was thinking it could be useful.

Michal

-- 
Michal Novotny<minovotn@redhat.com>, RHCE
Virtualization Team (xen userspace), Red Hat

      reply	other threads:[~2010-09-21  7:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-20  9:47 [Qemu-devel] [PATCH] Make NIC model fallback to default when specified model is not supported Michal Novotny
2010-09-20 10:34 ` [Qemu-devel] " Paolo Bonzini
2010-09-20 10:48   ` Michal Novotny
2010-09-20 10:53     ` Daniel P. Berrange
2010-09-20 11:05       ` Michal Novotny
2010-09-20 11:07         ` Daniel P. Berrange
2010-09-20 11:15           ` Michal Novotny
2010-09-20 14:35             ` Anthony Liguori
2010-09-20 17:58 ` Michael S. Tsirkin
2010-09-21  7:10   ` Michal Novotny [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C985A6D.2060302@redhat.com \
    --to=minovotn@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.