ipmi: Allow a size value to be passed for I/O space

PCI device I/O must be >= 8 bytes in length or they don't work.
Allow the size to be passed in, the default size of 2 or 3
won't work.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
Corey Minyard 2017-12-06 13:18:07 -06:00
parent 1739d54c8b
commit 79d29a9d06
7 changed files with 44 additions and 11 deletions

View file

@ -84,7 +84,7 @@ static void ipmi_isa_realize(DeviceState *dev, Error **errp)
iik->kcs.bmc->intf = ii;
iik->kcs.opaque = iik;
iic->init(ii, errp);
iic->init(ii, 0, errp);
if (*errp)
return;