From: Jack Lange Date: Mon, 16 Mar 2009 15:55:04 +0000 (-0500) Subject: fixed scan error X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=0571f2369394b543798185df0a248eb581b0757d fixed scan error --- diff --git a/palacios/src/devices/pci.c b/palacios/src/devices/pci.c index 616992e..23be4f6 100644 --- a/palacios/src/devices/pci.c +++ b/palacios/src/devices/pci.c @@ -297,12 +297,11 @@ static int data_port_read(ushort_t port, void * dst, uint_t length, struct vm_de pci_dev = get_device(&(pci_state->bus_list[0]), pci_state->addr_reg.dev_num); if (pci_dev == NULL) { - //*(uint32_t *)dst = 0xffffffff; - - PrintError("Reading configuration space for non-present device (dev_num=%d)\n", - pci_state->addr_reg.dev_num); + for (i = 0; i < length; i++) { + *((uint8_t *)dst + i) = 0xff; + } - return -1; + return length; } for (i = 0; i < length; i++) {