From 6121ce1b580634037249055268aec0cf212de39e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 28 Jun 2016 12:19:02 -0700 Subject: [PATCH] scheduler: add flags to host description for Vbox extensions present, enabled --- sched/handle_request.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sched/handle_request.cpp b/sched/handle_request.cpp index 826fd408bb..4bc9dc8119 100644 --- a/sched/handle_request.cpp +++ b/sched/handle_request.cpp @@ -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)) {