From: Peter Dinda Date: Sat, 19 Jul 2008 01:03:34 +0000 (+0000) Subject: Handling of pause exits (currently just noop, but power management would go here) X-Git-Tag: boots-puppy-iso-to-command-prompt~7 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=20885b915c6caf47c8bd78d7b5b492fef388ac2d Handling of pause exits (currently just noop, but power management would go here) --- diff --git a/palacios/include/palacios/svm_pause.h b/palacios/include/palacios/svm_pause.h new file mode 100644 index 0000000..5db30ef --- /dev/null +++ b/palacios/include/palacios/svm_pause.h @@ -0,0 +1,12 @@ +#ifndef __SVM_PAUSE_H +#define __SVM_PAUSE_H +#include +#include +#include + + +int handle_svm_pause(struct guest_info * info); + + + +#endif diff --git a/palacios/src/palacios/svm_pause.c b/palacios/src/palacios/svm_pause.c new file mode 100644 index 0000000..a6fadca --- /dev/null +++ b/palacios/src/palacios/svm_pause.c @@ -0,0 +1,13 @@ +#include +#include + + +int handle_svm_pause(struct guest_info * info) +{ + // handled as a nop + + info->rip+=2; + + return 0; + +}