From 547a2d4b1933dd35477a1f0c4dfa03080bf44058 Mon Sep 17 00:00:00 2001 From: Costin Lupu Date: Tue, 28 Jul 2026 17:39:57 +0200 Subject: [PATCH] feat(control): Add CPUs number to GetHostResource RPC reply We extend GetHostResourceReply to include CPUs threads number. This value is conceptually the same as the one reported by `nproc` on Linux systems and it represents the maximum number of CPUs to which a vCPU can be pinned. Signed-off-by: Costin Lupu --- protect/control/v1/control.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/protect/control/v1/control.proto b/protect/control/v1/control.proto index d7bca8a..8dcbbbe 100644 --- a/protect/control/v1/control.proto +++ b/protect/control/v1/control.proto @@ -787,6 +787,7 @@ message GetHostResourcesReply { uint32 hypervisor_numa_nodes = 6; uint32 hypervisor_cpu_sockets = 7; uint32 hypervisor_cpu_cores = 8; + uint32 hypervisor_cpu_threads = 17; uint64 host_total_memory = 9; uint64 host_used_memory = 10;