From d0ffa39024ba2664cdd13908be945baf3158f40f Mon Sep 17 00:00:00 2001 From: Pedro Macedo <pmacedo@google.com> Date: Tue, 2 Aug 2011 17:19:36 +0200 Subject: [PATCH] Add a flag to burnin to allow specifying VCPU count. Signed-off-by: Pedro Macedo <pmacedo@google.com> Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- tools/burnin | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/burnin b/tools/burnin index a47ea19b4..fab4f20df 100755 --- a/tools/burnin +++ b/tools/burnin @@ -126,6 +126,9 @@ OPTIONS = [ default=128, type="unit", metavar="<size>", completion_suggest=("128M 256M 512M 1G 4G 8G" " 12G 16G").split()), + cli.cli_option("--vcpu-count", dest="vcpu_count", help="VCPU count", + default=3, type="unit", metavar="<count>", + completion_suggest=("1 2 3 4").split()), cli.DEBUG_OPT, cli.VERBOSE_OPT, cli.NOIPCHECK_OPT, @@ -471,7 +474,7 @@ class Burner(object): self.instances = args self.bep = { constants.BE_MEMORY: options.mem_size, - constants.BE_VCPUS: 1, + constants.BE_VCPUS: options.vcpu_count, } self.hypervisor = None -- GitLab