@@ -2349,27 +2349,27 @@ class ParserCputune(VirtCLIParser):
2349
2349
remove_first = "model"
2350
2350
stub_none = False
2351
2351
2352
- def vcpu_find_inst_cb (self , * args , ** kwargs ):
2352
+ def vcpupin_find_inst_cb (self , * args , ** kwargs ):
2353
2353
cliarg = "vcpupin" # vcpupin[0-9]*
2354
- list_propname = "vcpus"
2354
+ list_propname = "vcpupins" # cputune.vcpupins
2355
2355
cb = self ._make_find_inst_cb (cliarg , list_propname )
2356
2356
return cb (* args , ** kwargs )
2357
2357
2358
2358
def iothreadpin_find_inst_cb (self , * args , ** kwargs ):
2359
2359
cliarg = "iothreadpin" # iothreadpin[0-9]*
2360
- list_propname = "iothreadpin"
2360
+ list_propname = "iothreadpins" # cputune.iothreadpins
2361
2361
cb = self ._make_find_inst_cb (cliarg , list_propname )
2362
2362
return cb (* args , ** kwargs )
2363
2363
2364
2364
def vcpusched_find_inst_cb (self , * args , ** kwargs ):
2365
2365
cliarg = "vcpusched" # vcpusched[0-9]*
2366
- list_propname = "vcpusched"
2366
+ list_propname = "vcpuscheds" # cputune.vcpuscheds
2367
2367
cb = self ._make_find_inst_cb (cliarg , list_propname )
2368
2368
return cb (* args , ** kwargs )
2369
2369
2370
2370
def cachetune_find_inst_cb (self , * args , ** kwargs ):
2371
2371
cliarg = "cachetune" # cachetune[0-9]*
2372
- list_propname = "cachetune"
2372
+ list_propname = "cachetunes" # cputune.cachetunes
2373
2373
cb = self ._make_find_inst_cb (cliarg , list_propname )
2374
2374
return cb (* args , ** kwargs )
2375
2375
@@ -2384,7 +2384,7 @@ def cache_find_inst_cb(self, inst, *args, **kwargs):
2384
2384
2385
2385
def memorytune_find_inst_cb (self , * args , ** kwargs ):
2386
2386
cliarg = "memorytune" # memorytune[0-9]*
2387
- list_propname = "memorytune"
2387
+ list_propname = "memorytunes" # cputune.memorytunes
2388
2388
cb = self ._make_find_inst_cb (cliarg , list_propname )
2389
2389
return cb (* args , ** kwargs )
2390
2390
@@ -2413,9 +2413,9 @@ def _init_class(cls, **kwargs):
2413
2413
2414
2414
# Options for CPU.vcpus config
2415
2415
cls .add_arg ("vcpupin[0-9]*.vcpu" , "vcpu" ,
2416
- find_inst_cb = cls .vcpu_find_inst_cb )
2416
+ find_inst_cb = cls .vcpupin_find_inst_cb )
2417
2417
cls .add_arg ("vcpupin[0-9]*.cpuset" , "cpuset" , can_comma = True ,
2418
- find_inst_cb = cls .vcpu_find_inst_cb )
2418
+ find_inst_cb = cls .vcpupin_find_inst_cb )
2419
2419
cls .add_arg ("emulatorpin.cpuset" , "emulatorpin_cpuset" , can_comma = True )
2420
2420
cls .add_arg ("iothreadpin[0-9]*.iothread" , "iothread" ,
2421
2421
find_inst_cb = cls .iothreadpin_find_inst_cb )
0 commit comments