static int pull_config(struct pci_front_internal *state, uint8_t *config)
{
- if (v3_host_dev_config_read(state->host_dev, 0, config, 256) != 256) {
+ if (v3_host_dev_read_config(state->host_dev, 0, config, 256) != 256) {
return -1;
} else {
return 0;
PrintDebug("\n");
- if (v3_host_dev_config_write(state->host_dev,
+ if (v3_host_dev_write_config(state->host_dev,
pci_addr.value,
src,
length) != length) {
return -1;
}
- if (!(state->host_dev=v3_host_dev_open(url,V3_BUS_CLASS_PCI,dev))) {
+ if (!(state->host_dev=v3_host_dev_open(url,V3_BUS_CLASS_PCI,dev,vm))) {
PrintError("pci_front (%s): unable to attach to host device %s\n",state->name, url);
v3_remove_device(dev);
return -1;