X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_handler.c;h=74c397cdb83ecb7958da65e1ac4a488a6aaa2f35;hb=c2e660b41f69c603b0c47f7c7572a22a2f601a51;hp=63f09baba83713188aed9bc73e1c8ce363bdb66d;hpb=4f7c3b759e3889870c5b5e7d09b3ffcc168e5632;p=palacios-OLD.git diff --git a/palacios/src/palacios/svm_handler.c b/palacios/src/palacios/svm_handler.c index 63f09ba..74c397c 100644 --- a/palacios/src/palacios/svm_handler.c +++ b/palacios/src/palacios/svm_handler.c @@ -1,5 +1,22 @@ -/* Northwestern University */ -/* (c) 2008, Jack Lange */ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2008, Jack Lange + * Copyright (c) 2008, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + #include #include @@ -55,7 +72,7 @@ int handle_svm_exit(struct guest_info * info) { // PrintDebug("SVM Returned: Exit Code: 0x%x \t\t(tsc=%ul)\n",exit_code, (uint_t)info->time_state.guest_tsc); if ((0) && (exit_code < 0x4f)) { - char instr[32]; + uchar_t instr[32]; int ret; // Dump out the instr stream @@ -219,7 +236,9 @@ int handle_svm_exit(struct guest_info * info) { break; case VMEXIT_HLT: { +#ifdef DEBUG_HALT PrintDebug("Guest halted\n"); +#endif if (handle_svm_halt(info) == -1) { return -1; } @@ -227,7 +246,7 @@ int handle_svm_exit(struct guest_info * info) { break; case VMEXIT_PAUSE: { - PrintDebug("Guest paused\n"); + //PrintDebug("Guest paused\n"); if (handle_svm_pause(info) == -1) { return -1; } @@ -304,7 +323,7 @@ int handle_svm_exit(struct guest_info * info) { default: { addr_t rip_addr; - char buf[15]; + uchar_t buf[15]; addr_t host_addr; PrintDebug("Unhandled SVM Exit: %s\n", vmexit_code_to_str(exit_code));