qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 23/35] acpi:piix4: make plug/unlug callbacks gen


From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH 23/35] acpi:piix4: make plug/unlug callbacks generic
Date: Tue, 29 Apr 2014 12:44:59 +0300

On Tue, Apr 29, 2014 at 10:49:16AM +0200, Paolo Bonzini wrote:
> Il 29/04/2014 09:25, Michael S. Tsirkin ha scritto:
> >But to repeat what I was saying, this check (that object passed in
> >is a PCI DEVICE) belongs in acpi_pcihp_device_plug_cb and should not be
> >piix specific, I don't want to duplicate this logic in q35 later.
> >Similar checks should be added in
> >shpc_device_hotplug_cb pcie_cap_slot_hotplug_cb for consistency.
> 
> I disagree.  In fact, I think the opposite is true: the three
> functions you mention should take a PCIDevice*, and when this is
> done acpi_memory_plug_cb should be changed to take a DIMMDevice*
> too.
> 
> Paolo

Well this just means we'll need another chipset-independent wrapper
to detect the correct hotplug type?

-- 
MST



reply via email to

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