X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_io.c;h=793a0f3bae2348d78beb10b1b395826a365ffd43;hp=9f44fbd27fd58b78a43b46b7a22a2cd6c7767dce;hb=5b56e669e95075b07c1f7c7d77b4e37311b6a4c2;hpb=afffedf9ab57494864f0710a2530958fa9e216cc diff --git a/palacios/src/palacios/vmm_io.c b/palacios/src/palacios/vmm_io.c index 9f44fbd..793a0f3 100644 --- a/palacios/src/palacios/vmm_io.c +++ b/palacios/src/palacios/vmm_io.c @@ -129,16 +129,18 @@ int v3_hook_io_port(struct guest_info * info, uint_t port, io_hook->priv_data = priv_data; if (insert_io_hook(info, io_hook)) { - V3_Free(io_hook); - return -1; + PrintError("Could not insert IO hook for port %d\n", port); + V3_Free(io_hook); + return -1; } if (info->io_map.update_map(info, port, ((read == NULL) ? 0 : 1), ((write == NULL) ? 0 : 1)) == -1) { - V3_Free(io_hook); - return -1; + PrintError("Could not update IO map for port %d\n", port); + V3_Free(io_hook); + return -1; }