Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


cleaned up the memory handing implementation
[palacios.git] / palacios / src / palacios / vmm_io.c
index e3820b9..9756eb4 100644 (file)
@@ -41,7 +41,6 @@ void v3_init_io_map(struct guest_info * info) {
 
 
 
-
 static inline struct v3_io_hook * __insert_io_hook(struct guest_info * info, struct v3_io_hook * hook) {
   struct rb_node ** p = &(info->io_map.rb_node);
   struct rb_node * parent = NULL;
@@ -142,6 +141,8 @@ int v3_unhook_io_port(struct guest_info * info, uint_t port) {
 
   v3_rb_erase(&(hook->tree_node), &(info->io_map));
 
+  V3_Free(hook);
+
   return 0;
 }
 
@@ -154,7 +155,7 @@ void v3_print_io_map(struct guest_info * info) {
   struct v3_io_hook * tmp_hook = NULL;
   struct rb_node * node = v3_rb_first(&(info->io_map));
 
-  PrintDebug("VMM IO Map (Entries=%d)\n", io_map->num_ports);
+  PrintDebug("VMM IO Map\n");
 
   do {
     tmp_hook = rb_entry(node, struct v3_io_hook, tree_node);