X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm.c;h=c3bce64f05c9140ced4da9132c05d3bb8beed90d;hb=4888f0248093a9b0435aef40043677c18f6b7add;hp=a781fe317fe801ac9261f321f7145eeaf5a45598;hpb=9a9c14099c09e9ed86d8ac2f73f7406d0ac8a90b;p=palacios-OLD.git diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index a781fe3..c3bce64 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -1,4 +1,3 @@ - /* * This file is part of the Palacios Virtual Machine Monitor developed * by the V3VEE Project with funding from the United States National @@ -88,11 +87,12 @@ static int v3_svm_handle_efer_write(struct guest_info * core, uint_t msr, struct int status; // Call arch-independent handler - if ((status = v3_handle_efer_write(core, msr, src, priv_data)) != 0) + if ((status = v3_handle_efer_write(core, msr, src, priv_data)) != 0) { return status; + } // SVM-specific code - if (core->shdw_pg_mode == NESTED_PAGING) { + { // Ensure that hardware visible EFER.SVME bit is set (SVM Enable) struct efer_64 * hw_efer = (struct efer_64 *)&(core->ctrl_regs.efer); hw_efer->svme = 1;