@@ -136,11 +136,11 @@ def uvm_resumed_memhp(
136136 "resumed-uffd-huge-pages" ,
137137 ],
138138)
139- def uvm_any_memhp (request , uvm_plain_6_1 , rootfs , microvm_factory ):
139+ def uvm_any_memhp (request , uvm_plain , rootfs , microvm_factory ):
140140 """Fixture that yields a booted or resumed VM with memory hotplugging"""
141141 ctor , vhost_user , huge_pages , uffd_handler , snapshot_type = request .param
142142 yield ctor (
143- uvm_plain_6_1 ,
143+ uvm_plain ,
144144 rootfs ,
145145 microvm_factory ,
146146 vhost_user ,
@@ -278,13 +278,11 @@ def test_virtio_mem_hotplug_hotunplug(uvm_any_memhp):
278278 ],
279279 ids = ["all_different" , "slot_sized_block" , "single_slot" , "single_block" ],
280280)
281- def test_virtio_mem_configs (uvm_plain_6_1 , memhp_config ):
281+ def test_virtio_mem_configs (uvm_plain , memhp_config ):
282282 """
283283 Check that the virtio mem device is working as expected for different configs
284284 """
285- uvm = uvm_booted_memhp (
286- uvm_plain_6_1 , None , None , False , memhp_config , None , None , None
287- )
285+ uvm = uvm_booted_memhp (uvm_plain , None , None , False , memhp_config , None , None , None )
288286 if not uvm .pci_enabled :
289287 pytest .skip (
290288 "Skip tests on MMIO transport to save time as we don't expect any difference."
@@ -309,16 +307,16 @@ def test_virtio_mem_configs(uvm_plain_6_1, memhp_config):
309307 validate_metrics (uvm )
310308
311309
312- def test_snapshot_restore_persistence (uvm_plain_6_1 , microvm_factory , snapshot_type ):
310+ def test_snapshot_restore_persistence (uvm_plain , microvm_factory , snapshot_type ):
313311 """
314312 Check that hptplugged memory is persisted across snapshot/restore.
315313 """
316- if not uvm_plain_6_1 .pci_enabled :
314+ if not uvm_plain .pci_enabled :
317315 pytest .skip (
318316 "Skip tests on MMIO transport to save time as we don't expect any difference."
319317 )
320318 uvm = uvm_booted_memhp (
321- uvm_plain_6_1 ,
319+ uvm_plain ,
322320 None ,
323321 microvm_factory ,
324322 False ,
@@ -349,17 +347,17 @@ def test_snapshot_restore_persistence(uvm_plain_6_1, microvm_factory, snapshot_t
349347 validate_metrics (restored_vm )
350348
351349
352- def test_snapshot_restore_incremental (uvm_plain_6_1 , microvm_factory ):
350+ def test_snapshot_restore_incremental (uvm_plain , microvm_factory ):
353351 """
354352 Check that hptplugged memory is persisted across snapshot/restore.
355353 """
356- if not uvm_plain_6_1 .pci_enabled :
354+ if not uvm_plain .pci_enabled :
357355 pytest .skip (
358356 "Skip tests on MMIO transport to save time as we don't expect any difference."
359357 )
360358
361359 uvm = uvm_booted_memhp (
362- uvm_plain_6_1 , None , microvm_factory , False , DEFAULT_CONFIG , None , None , None
360+ uvm_plain , None , microvm_factory , False , DEFAULT_CONFIG , None , None , None
363361 )
364362
365363 snapshot = uvm .snapshot_full ()
@@ -457,10 +455,8 @@ def test_memory_hotplug_latency(
457455 "slot_size_mib" : 128 ,
458456 "block_size_mib" : 2 ,
459457 }
460- uvm_plain_6_1 = microvm_factory .build (guest_kernel_linux_6_1 , rootfs , pci = True )
461- uvm = uvm_booted_memhp (
462- uvm_plain_6_1 , None , None , False , config , None , None , None
463- )
458+ uvm_plain = microvm_factory .build (guest_kernel_linux_6_1 , rootfs , pci = True )
459+ uvm = uvm_booted_memhp (uvm_plain , None , None , False , config , None , None , None )
464460
465461 if i == 0 :
466462 metrics .set_dimensions (
0 commit comments