X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fpci_front.c;h=487ab5c1f1430b2656ce07f1a51f067e30c1438a;hb=fdb16aa5e99a19a91264ae84beaf77d3036548d5;hp=87a4e0a00be0383939b5350885b68b11aed58295;hpb=dbace2679a283baec34858e25c59d33eadcbb10b;p=palacios-OLD.git diff --git a/palacios/src/devices/pci_front.c b/palacios/src/devices/pci_front.c index 87a4e0a..487ab5c 100644 --- a/palacios/src/devices/pci_front.c +++ b/palacios/src/devices/pci_front.c @@ -151,7 +151,7 @@ static int push_config(struct pci_front_internal *state, uint8_t *config) 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; @@ -625,7 +625,7 @@ static int pci_front_config_update(uint_t reg_num, void * src, uint_t length, vo 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) { @@ -791,7 +791,7 @@ static int pci_front_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) 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;