@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
99
1010use crate :: cpu_config:: templates:: CustomCpuTemplate ;
1111use crate :: device_manager:: persist:: SharedDeviceType ;
12- use crate :: logger:: { info, log_dev_preview_warning } ;
12+ use crate :: logger:: info;
1313use crate :: mmds;
1414use crate :: mmds:: data_store:: { Mmds , MmdsVersion } ;
1515use crate :: mmds:: ns:: MmdsNetworkStack ;
@@ -246,10 +246,6 @@ impl VmResources {
246246 & mut self ,
247247 update : & MachineConfigUpdate ,
248248 ) -> Result < ( ) , MachineConfigError > {
249- if update. huge_pages . is_some ( ) && update. huge_pages != Some ( HugePageConfig :: None ) {
250- log_dev_preview_warning ( "Huge pages support" , None ) ;
251- }
252-
253249 let updated = self . machine_config . update ( update) ?;
254250
255251 // The VM cannot have a memory size smaller than the target size
@@ -268,13 +264,6 @@ impl VmResources {
268264 if self . balloon . get ( ) . is_some ( ) && updated. huge_pages != HugePageConfig :: None {
269265 return Err ( MachineConfigError :: BalloonAndHugePages ) ;
270266 }
271-
272- if self . boot_source . config . initrd_path . is_some ( )
273- && updated. huge_pages != HugePageConfig :: None
274- {
275- return Err ( MachineConfigError :: InitrdAndHugePages ) ;
276- }
277-
278267 self . machine_config = updated;
279268
280269 Ok ( ( ) )
@@ -341,12 +330,6 @@ impl VmResources {
341330 & mut self ,
342331 boot_source_cfg : BootSourceConfig ,
343332 ) -> Result < ( ) , BootSourceConfigError > {
344- if boot_source_cfg. initrd_path . is_some ( )
345- && self . machine_config . huge_pages != HugePageConfig :: None
346- {
347- return Err ( BootSourceConfigError :: HugePagesAndInitRd ) ;
348- }
349-
350333 self . boot_source = BootSource {
351334 builder : Some ( BootConfig :: new ( & boot_source_cfg) ?) ,
352335 config : boot_source_cfg,
0 commit comments