scheduler: add flags to host description for Vbox extensions present, enabled

This commit is contained in:
David Anderson 2016-06-28 12:19:02 -07:00
parent 986baf1437
commit 6121ce1b58
1 changed files with 5 additions and 1 deletions

View File

@ -547,7 +547,11 @@ static int modify_host_struct(HOST& host) {
strlcpy(host.serialnum, buf, sizeof(host.serialnum));
strlcat(host.serialnum, buf2, sizeof(host.serialnum));
if (strlen(g_request->host.virtualbox_version)) {
sprintf(buf2, "[vbox|%s]", g_request->host.virtualbox_version);
sprintf(buf2, "[vbox|%s|%d|%d]",
g_request->host.virtualbox_version,
(strstr(g_request->host.p_features, "vmx") || strstr(g_request->host.p_features, "svm"))?1:0,
g_request->host.p_vm_extensions_disabled?0:1
);
strlcat(host.serialnum, buf2, sizeof(host.serialnum));
}
if (strcmp(host.last_ip_addr, g_request->host.last_ip_addr)) {