VBOX: When disabling hardware acceleration because of legacy support, write that to stderr and suggest that the volunteer upgrade to BOINC 7.2.

This commit is contained in:
Rom Walton 2013-12-06 13:22:17 -05:00
parent a6da437c5c
commit ea56993093
2 changed files with 11 additions and 5 deletions

View File

@ -608,6 +608,12 @@ int VBOX_VM::register_vm() {
if (vm_cpu_count == "1") { if (vm_cpu_count == "1") {
// Keep this around for older clients. Removing this for older clients might // Keep this around for older clients. Removing this for older clients might
// lead to a machine that will only return crashed VM reports. // lead to a machine that will only return crashed VM reports.
fprintf(
stderr,
"%s Legacy fallback configuration detected. Disabling VirtualBox hardware acceleration support.\n"
"%s NOTE: Upgrading to BOINC 7.2 or better may re-enable hardware acceleration.\n",
boinc_msg_prefix(buf, sizeof(buf))
);
disable_acceleration = true; disable_acceleration = true;
} }
} }
@ -631,7 +637,7 @@ int VBOX_VM::register_vm() {
if (disable_acceleration) { if (disable_acceleration) {
fprintf( fprintf(
stderr, stderr,
"%s ERROR: Invalid project configuration. VM type requires acceleration but hardware cannot support it.\n", "%s ERROR: Invalid configuration. VM type requires acceleration but the current configuration cannot support it.\n",
vboxwrapper_msg_prefix(buf, sizeof(buf)) vboxwrapper_msg_prefix(buf, sizeof(buf))
); );
return ERR_INVALID_PARAM; return ERR_INVALID_PARAM;

View File

@ -128,12 +128,12 @@
</ResourceCompile> </ResourceCompile>
<Link> <Link>
<AdditionalDependencies>libcmt.lib;libcpmt.lib;kernel32.lib;user32.lib;gdi32.lib;ole32.lib;wsock32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>libcmt.lib;libcpmt.lib;kernel32.lib;user32.lib;gdi32.lib;ole32.lib;wsock32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26051_windows_intelx86.exe</OutputFile> <OutputFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26052_windows_intelx86.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner> <SuppressStartupBanner>true</SuppressStartupBanner>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<DelayLoadDLLs>%(DelayLoadDLLs)</DelayLoadDLLs> <DelayLoadDLLs>%(DelayLoadDLLs)</DelayLoadDLLs>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26051_windows_intelx86.pdb</ProgramDatabaseFile> <ProgramDatabaseFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26052_windows_intelx86.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<TargetMachine>MachineX86</TargetMachine> <TargetMachine>MachineX86</TargetMachine>
</Link> </Link>
@ -177,12 +177,12 @@
</ResourceCompile> </ResourceCompile>
<Link> <Link>
<AdditionalDependencies>libcmt.lib;libcpmt.lib;kernel32.lib;user32.lib;gdi32.lib;ole32.lib;wsock32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>libcmt.lib;libcpmt.lib;kernel32.lib;user32.lib;gdi32.lib;ole32.lib;wsock32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26051_windows_x86_64.exe</OutputFile> <OutputFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26052_windows_x86_64.exe</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner> <SuppressStartupBanner>true</SuppressStartupBanner>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<DelayLoadDLLs>%(DelayLoadDLLs)</DelayLoadDLLs> <DelayLoadDLLs>%(DelayLoadDLLs)</DelayLoadDLLs>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26051_windows_x86_64.pdb</ProgramDatabaseFile> <ProgramDatabaseFile>.\Build\$(Platform)\$(Configuration)\vboxwrapper_26052_windows_x86_64.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<TargetMachine>MachineX64</TargetMachine> <TargetMachine>MachineX64</TargetMachine>
</Link> </Link>