qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 08/10] ahci: add ahci emulation


From: Alexander Graf
Subject: [Qemu-devel] Re: [PATCH 08/10] ahci: add ahci emulation
Date: Thu, 18 Nov 2010 19:05:33 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Gerd Hoffmann wrote:
>   Hi,
>
>> +static void ahci_trigger_irq(AHCIState *s, AHCIDevice *d,
>> +                             int irq_type)
>
>> +static void ahci_check_irq(AHCIState *s)
>
> MSI support would be nice to have.

Alrighty, I added MSI support. But I only have a single vector in use
atm as nvec > 0 doesn't get written to the PCI config space so the code
trips on that later on.

[...]

>
>> +        if (dinfo) {
>> +            ide_create_drive(&ad->port, 0, dinfo);
>> +        }
>
> That doesn't belong into the qdev init function.
>
> Look how ide/isa.c handles it:  The qdev init function
> (isa_ide_initfn) doesn't create ide-drives at all.  And there is a
> convinience function (isa_ide_init) which first creates the
> controller, then attaches the drives.  The later is called from
> pc_init() with the drives specified via -drive if=ide (or -hda).

Hrm. I guess I'll just put it into the PC specific initialization
function :).

>
> Does AHCI support drive hotplug btw?

AHCI does, my code does not yet :). Feel free to add support for it! :D


Alex




reply via email to

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