X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_handler.c;h=cab4dc60e5e786d43c5f6f18fa139b772d5055eb;hp=bd192427ca52722db2b70d956aae13039dc370c9;hb=9e15dfbbd7e52361a577101d56adcde35f6bfdcd;hpb=5624c95812302f7508c13830966714dba130a4f6 diff --git a/palacios/src/palacios/svm_handler.c b/palacios/src/palacios/svm_handler.c index bd19242..cab4dc6 100644 --- a/palacios/src/palacios/svm_handler.c +++ b/palacios/src/palacios/svm_handler.c @@ -34,15 +34,17 @@ #include #include - -#ifdef CONFIG_TELEMETRY -#include -#endif - #ifdef CONFIG_VNET #include #endif +#ifdef CONFIG_LINUX_VIRTIO_NET + extern int v3_virtionic_pktprocess(struct guest_info * info); +#endif + +#ifdef CONFIG_TELEMETRY +#include +#endif int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_info1, addr_t exit_info2) { @@ -52,7 +54,6 @@ int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_i } #endif - //PrintDebug("SVM Returned: Exit Code: %x\n",exit_code); switch (exit_code) { @@ -285,10 +286,14 @@ 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_LINUX_VIRTIO_NET + v3_virtionic_pktprocess(info); +#endif #ifdef CONFIG_TELEMETRY if (info->enable_telemetry) { @@ -300,6 +305,7 @@ int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_i if (exit_code == VMEXIT_INTR) { //PrintDebug("INTR ret IP = %x\n", guest_state->rip); } + return 0; }