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.


symswal telemetry fixes
Jack Lange [Thu, 4 Feb 2010 01:17:31 +0000 (19:17 -0600)]
palacios/src/devices/sym_swap.c
palacios/src/devices/sym_swap2.c
palacios/src/palacios/vmm_sym_swap.c

index ac0f0c9..85936d0 100644 (file)
@@ -254,7 +254,7 @@ static struct v3_device_ops dev_ops = {
 
 
 #ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY
-static void telemetry_cb(struct guest_info * info, void * private_data, char * hdr) {
+static void telemetry_cb(struct v3_vm_info * vm, void * private_data, char * hdr) {
     struct vm_device * dev = (struct vm_device *)private_data;
     struct swap_state * swap = (struct swap_state *)(dev->private_data);
 
index bb2fd3d..0fbc53b 100644 (file)
@@ -507,7 +507,7 @@ static struct v3_device_ops dev_ops = {
 
 
 #ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY
-static void telemetry_cb(struct guest_info * info, void * private_data, char * hdr) {
+static void telemetry_cb(struct v3_vm_info * vm, void * private_data, char * hdr) {
     struct swap_state * swap = (struct swap_state *)private_data;
 
     V3_Print("%sSwap Device:\n", hdr);
index 3cbc5c3..72a8b43 100644 (file)
@@ -70,8 +70,8 @@ static inline uint32_t get_dev_index(pte32_t * pte) {
 
 
 #ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY
-static void telemetry_cb(struct guest_info * info, void * private_data, char * hdr) {
-    struct v3_sym_swap_state * swap_state = &(info->vm_info->swap_state);
+static void telemetry_cb(struct v3_vm_info * vm, void * private_data, char * hdr) {
+    struct v3_sym_swap_state * swap_state = &(vm->swap_state);
 
     V3_Print("%sSymbiotic Swap:\n", hdr);
     V3_Print("%s\tRead faults=%d\n", hdr, swap_state->read_faults);
@@ -90,7 +90,7 @@ int v3_init_sym_swap(struct v3_vm_info * vm) {
     swap_state->shdw_ptr_ht = v3_create_htable(0, swap_hash_fn, swap_eq_fn);
 
 #ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY
-    if (info->enable_telemetry) {
+    if (vm->enable_telemetry) {
        v3_add_telemetry_cb(vm, telemetry_cb, NULL);
     }
 #endif
@@ -251,7 +251,7 @@ addr_t v3_map_swp_page(struct v3_vm_info * vm, pte32_t * shadow_pte, pte32_t * g
     if (shdw_ptr == NULL) {
        PrintError("MEMORY LEAK\n");
 #ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY
-       telemetry_cb(info, NULL, "");
+       telemetry_cb(vm, NULL, "");
 #endif
        return 0;
     }