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.


Add Vnet Configure
Lei Xia [Mon, 25 Jan 2010 20:12:50 +0000 (14:12 -0600)]
palacios/src/palacios/svm_handler.c
palacios/src/palacios/vmm_config.c
palacios/src/palacios/vmx_handler.c

index dbca7a8..bd19242 100644 (file)
 #include <palacios/vmm_telemetry.h>
 #endif
 
+#ifdef CONFIG_VNET
+#include <palacios/vmm_vnet.h>
+#endif
+
 
 int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_info1, addr_t exit_info2) {
 
@@ -281,6 +285,11 @@ int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_i
     }
     // END OF SWITCH (EXIT_CODE)
 
+#ifdef CONFIG_VNET
+    v3_vnet_pkt_process(info);
+#endif
+
+
 #ifdef CONFIG_TELEMETRY
     if (info->enable_telemetry) {
        v3_telemetry_end_exit(info, exit_code);
index 81a37d3..002cf75 100644 (file)
 
 #endif
 
+#ifdef CONFIG_VNET
+#include <palacios/vmm_vnet.h>
+#endif
+
 
 #include <palacios/vmm_host_events.h>
 #include <palacios/vmm_socket.h>
@@ -268,6 +272,10 @@ static int pre_config_guest(struct guest_info * info, struct v3_config * config_
     v3_init_sym_swap(info);
 #endif
 
+#ifdef CONFIG_VNET
+    v3_vnet_init(info);
+#endif
+
     if (schedule_hz_str) {
        sched_hz = atoi(schedule_hz_str);
     }
index 1da8a58..67f03a4 100644 (file)
 #endif
 
 
+#ifdef CONFIG_VNET
+#include <palacios/vmm_vnet.h>
+#endif
+
 
 
 /* At this point the GPRs are already copied into the guest_info state */
@@ -222,6 +226,10 @@ int v3_handle_vmx_exit(struct guest_info * info, struct vmx_exit_info * exit_inf
             return -1;
     }
 
+#ifdef CONFIG_VNET
+    v3_vnet_pkt_process(info);
+#endif
+
 #ifdef CONFIG_TELEMETRY
     if (info->enable_telemetry) {
         v3_telemetry_end_exit(info, exit_info->exit_reason);