From ed0c0b23679db3b873edea6b107b5cddab1d30d2 Mon Sep 17 00:00:00 2001 From: "alex.lyn" Date: Thu, 26 Jun 2025 15:04:35 +0800 Subject: [PATCH] kata-types: Introduce GPU related fields in RemoteInfo To provide the remote hypervisor with the necessary intelligence to select the most appropriate instance for a given GPU instance, leading to better resource allocation, two fields `default_gpus` and `default_gpu_model` are introduced in `RemoteInfo`. Fixes #10484 Signed-off-by: alex.lyn --- src/libs/kata-types/src/config/hypervisor/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libs/kata-types/src/config/hypervisor/mod.rs b/src/libs/kata-types/src/config/hypervisor/mod.rs index 8d5115323c..09b0f150cc 100644 --- a/src/libs/kata-types/src/config/hypervisor/mod.rs +++ b/src/libs/kata-types/src/config/hypervisor/mod.rs @@ -1110,6 +1110,14 @@ pub struct RemoteInfo { /// Remote hyperisor timeout of creating (in seconds) #[serde(default)] pub hypervisor_timeout: i32, + + /// GPU specific annotations (currently only applicable for Remote Hypervisor) + /// default_gpus specifies the number of GPUs required for the Kata VM + #[serde(default)] + pub default_gpus: u32, + /// default_gpu_model specifies GPU model like tesla, h100, a100, readeon etc. + #[serde(default)] + pub default_gpu_model: String, } /// Common configuration information for hypervisors.