Change imported from xen-unstable. From the logs it's likely to have
been this changeset:
changeset: 14651:
f06535a8ae9fd43e3d4147dbab335a8d4827d9f6
user: Tim Deegan <Tim.Deegan@xensource.com>
date: Thu Mar 29 15:30:01 2007 +0000
files: tools/ioemu/hw/ne2000.c tools/ioemu/hw/pcnet.c tools/ioemu/hw/rtl8139.c
description:
[HVM] Save/restore: Allow save/restore of multiple NICs
Signed-off-by: Tim Deegan <Tim.Deegan@xenource.com>
static void pcnet_common_init(PCNetState *d, NICInfo *nd, const char *info_str)
{
+ int instance;
d->poll_timer = qemu_new_timer(vm_clock, pcnet_poll_timer, d);
d->nd = nd;
d->vc = NULL;
}
pcnet_h_reset(d);
- register_savevm("pcnet", 0, 2, pcnet_save, pcnet_load, d);
+ instance = pci_bus_num(d->dev.bus) << 8 | d->dev.devfn;
+ register_savevm("pcnet", instance, 2, pcnet_save, pcnet_load, d);
}
/* PCI interface */