[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Machine description as data prototype, take 2 (was: [RF
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] Machine description as data prototype, take 2 (was: [RFC] Machine description as data) |
Date: |
Tue, 17 Feb 2009 17:32:29 +0000 |
User-agent: |
KMail/1.9.9 |
On Monday 16 February 2009, Markus Armbruster wrote:
> + { "vga", sizeof(struct dt_device_vga), dt_vga_props,
> + dt_vga_config, dt_vga_init, NULL },
> + { "nic", sizeof(struct dt_device_nic), dt_nic_props,
> + dt_nic_config, dt_nic_init, NULL },
I think this is doing things the wrong way. We shouldn't have a "nic" device
that mutates into one of several devices based on magic options. Instead each
nic/display adapter/HBA should be registered, and we instantiate those
directly. For devices that have a common set of properties (e.g. nics) it
probably makes sense to have common helper functions. It should be possible
to have a single device that is (say) both a SCSI HBA and a NIC.
Paul
- Re: [Qemu-devel] [RFC] Machine description as data, (continued)
- Re: [Qemu-devel] [RFC] Machine description as data, Markus Armbruster, 2009/02/16
- Re: [Qemu-devel] [RFC] Machine description as data, David Gibson, 2009/02/16
- Re: [Qemu-devel] [RFC] Machine description as data, Markus Armbruster, 2009/02/17
- Re: [Qemu-devel] [RFC] Machine description as data, Paul Brook, 2009/02/17
- Re: [Qemu-devel] [RFC] Machine description as data, Markus Armbruster, 2009/02/18
Re: [Qemu-devel] [RFC] Machine description as data, Anthony Liguori, 2009/02/11
[Qemu-devel] Machine description as data prototype, take 2 (was: [RFC] Machine description as data), Markus Armbruster, 2009/02/16
- Re: [Qemu-devel] Machine description as data prototype, take 2 (was: [RFC] Machine description as data),
Paul Brook <=
[Qemu-devel] Machine description as data prototype, take 3 (was: [RFC] Machine description as data), Markus Armbruster, 2009/02/19
Re: [Qemu-devel] Machine description as data prototype, take 3, Anthony Liguori, 2009/02/19
Re: [Qemu-devel] Machine description as data prototype, take 3, Anthony Liguori, 2009/02/19