From: Jack Lange Date: Mon, 5 Dec 2011 20:40:13 +0000 (-0500) Subject: fix IDE layer to drop unhandled IO ops, instead of aborting execution This is necessa... X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f0cbd22f1263a6083f0d5fc69f69f98db6006df;p=palacios.releases.git fix IDE layer to drop unhandled IO ops, instead of aborting execution This is necessary for some buggy guest OSes --- diff --git a/palacios/src/devices/ide.c b/palacios/src/devices/ide.c index f5baf95..285e534 100644 --- a/palacios/src/devices/ide.c +++ b/palacios/src/devices/ide.c @@ -737,8 +737,8 @@ static int write_dma_port(struct guest_info * core, ushort_t port, void * src, u break; } default: - PrintError("IDE: Invalid DMA Port (%s)\n", dma_port_to_str(port_offset)); - return -1; + PrintError("IDE: Invalid DMA Port (%d) (%s)\n", port, dma_port_to_str(port_offset)); + break; } return length; @@ -787,8 +787,8 @@ static int read_dma_port(struct guest_info * core, ushort_t port, void * dst, ui break; } default: - PrintError("IDE: Invalid DMA Port (%s)\n", dma_port_to_str(port_offset)); - return -1; + PrintError("IDE: Invalid DMA Port (%d) (%s)\n", port, dma_port_to_str(port_offset)); + break; } PrintDebug("\tval=%x (len=%d)\n", *(uint32_t *)dst, length);