From 3ec027d73858e8682db21dd059e74b165563033e Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 22 Oct 2013 14:47:20 -0400 Subject: [PATCH] VBOX: Adjust the VM priority class to the idle priority class on Windows. I only vaguely remember a warning from Frank about the realtime clock possibly falling out of alignment between guest/host operating systems. We may have to switch it back if the guest OS panics or something like that. --- samples/vboxwrapper/vbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index 34aba31ad5..3e0d47ef35 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -1810,7 +1810,7 @@ void VBOX_VM::lower_vm_process_priority() { } #else if (vm_pid_handle) { - SetPriorityClass(vm_pid_handle, BELOW_NORMAL_PRIORITY_CLASS); + SetPriorityClass(vm_pid_handle, IDLE_PRIORITY_CLASS); } #endif }