qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 1/5] Re-factor nic model listing


From: Mark McLoughlin
Subject: [Qemu-devel] Re: [PATCH 1/5] Re-factor nic model listing
Date: Fri, 14 Nov 2008 15:34:01 +0000

On Thu, 2008-11-13 at 13:44 -0600, Anthony Liguori wrote:
> Mark McLoughlin wrote:
> > Add a nic_models() method to QEMUMachine and move the nic model
> > listing from hw/pc.c to vl.c.
> >
> > pci_nic_models() is hooked up to all machines which use
> > pci_nic_init().
> >
> > The isapc machine is the only one which is slightly different
> > since it only supports the ne2k_isa model.
> >   
> 
> In principle, I think this patch series is a good idea.  I think the 
> abstraction here is a little broken.
> 
> I don't think it's correct to associate nics directly with a machine 
> type.  Rather, nics have bus requirements (like PCI, ISA, or USB) and a 
> machine may or may not contain that bus.

i.e. add a bus abstraction (with ->nic_models()) which PCI, ISA and USB
would specialize and have a list of buses associated with the machine?

Cheers,
Mark.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]