Index: /trunk/src/VBox/VMM/VM.cpp
===================================================================
--- /trunk/src/VBox/VMM/VM.cpp	(revision 31330)
+++ /trunk/src/VBox/VMM/VM.cpp	(revision 31331)
@@ -4104,2 +4104,17 @@
 }
 
+
+/**
+ * Changes the VCPU priority.
+ *
+ * @returns VBox status code.
+ * @param   pVM             The VM to operate on.
+ * @param   ulCpuPriority   New CPU priority
+ */
+VMMR3DECL(int) VMR3SetCpuPriority(PVM pVM, unsigned ulCpuPriority)
+{
+    AssertReturn(ulCpuPriority > 0 && ulCpuPriority <= 100, VERR_INVALID_PARAMETER);
+    /* Note: not called from EMT. */
+    pVM->uCpuPriority = ulCpuPriority;
+    return VINF_SUCCESS;
+}
