|
From: | Gerd Hoffmann |
Subject: | [Qemu-devel] Re: [PATCH V10 22/27] pci hotplug: add argument to pci hot plug callback. |
Date: | Mon, 04 Jan 2010 15:56:50 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4 |
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?
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |