qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH V10 22/27] pci hotplug: add argument to pci hot


From: Isaku Yamahata
Subject: [Qemu-devel] Re: [PATCH V10 22/27] pci hotplug: add argument to pci hot plug callback.
Date: Tue, 5 Jan 2010 14:34:55 +0900
User-agent: Mutt/1.5.19 (2009-01-05)

On Mon, Jan 04, 2010 at 03:56:50PM +0100, Gerd Hoffmann wrote:
> On 12/24/09 09:09, Isaku Yamahata wrote:
>> The argument will be used later to remove global variable.
>
>> -static int piix4_device_hotplug(PCIDevice *dev, int state);
>> +static int piix4_device_hotplug(void *opaque, PCIDevice *dev, int state);
>
> You are using that to pass the piix4-pm device state.  How about using  
> "DeviceState*" instead of "void*" then?

Ok. I'll use DeviceState*.

-- 
yamahata




reply via email to

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