* [PATCH] Seperate smp from extra_params and add into default VM params
@ 2009-11-03 6:27 Yolkfull Chow
2009-11-10 13:19 ` Lucas Meneghel Rodrigues
0 siblings, 1 reply; 2+ messages in thread
From: Yolkfull Chow @ 2009-11-03 6:27 UTC (permalink / raw)
To: autotest; +Cc: kvm, Yolkfull Chow
We may need leave smp as standalone parameter of VM. Reasons I can proposal:
1) memory is a standalone parameter, so is smp
2) smp parameter is needed in some test case, say VM params_verify
Signed-off-by: Yolkfull Chow <yzhou@redhat.com>
---
client/tests/kvm/kvm_tests.cfg.sample | 3 ++-
client/tests/kvm/kvm_vm.py | 4 ++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/client/tests/kvm/kvm_tests.cfg.sample b/client/tests/kvm/kvm_tests.cfg.sample
index 573206c..c16b615 100644
--- a/client/tests/kvm/kvm_tests.cfg.sample
+++ b/client/tests/kvm/kvm_tests.cfg.sample
@@ -18,6 +18,7 @@ kill_unresponsive_vms = yes
# Some default VM params
qemu_binary = qemu
qemu_img_binary = qemu-img
+smp = 1
mem = 512
image_size = 10G
shell_port = 22
@@ -751,7 +752,7 @@ variants:
- @up:
no autotest.npb
- smp2:
- extra_params += " -smp 2"
+ smp = 2
used_cpus = 2
stress_boot: used_cpus = 10
timedrift.with_load: used_cpus = 100
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index ee6796b..0b7a81e 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -261,6 +261,10 @@ class VM:
if mem:
qemu_cmd += " -m %s" % mem
+ smp = params.get("smp")
+ if smp:
+ qemu_cmd += " -smp %s" % smp
+
iso = params.get("cdrom")
if iso:
iso = kvm_utils.get_path(root_dir, iso)
--
1.6.5.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Seperate smp from extra_params and add into default VM params
2009-11-03 6:27 [PATCH] Seperate smp from extra_params and add into default VM params Yolkfull Chow
@ 2009-11-10 13:19 ` Lucas Meneghel Rodrigues
0 siblings, 0 replies; 2+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-11-10 13:19 UTC (permalink / raw)
To: Yolkfull Chow; +Cc: autotest, kvm
I am OK with it, applied, thanks!
On Tue, Nov 3, 2009 at 4:27 AM, Yolkfull Chow <yzhou@redhat.com> wrote:
> We may need leave smp as standalone parameter of VM. Reasons I can proposal:
> 1) memory is a standalone parameter, so is smp
> 2) smp parameter is needed in some test case, say VM params_verify
>
>
> Signed-off-by: Yolkfull Chow <yzhou@redhat.com>
> ---
> client/tests/kvm/kvm_tests.cfg.sample | 3 ++-
> client/tests/kvm/kvm_vm.py | 4 ++++
> 2 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/client/tests/kvm/kvm_tests.cfg.sample b/client/tests/kvm/kvm_tests.cfg.sample
> index 573206c..c16b615 100644
> --- a/client/tests/kvm/kvm_tests.cfg.sample
> +++ b/client/tests/kvm/kvm_tests.cfg.sample
> @@ -18,6 +18,7 @@ kill_unresponsive_vms = yes
> # Some default VM params
> qemu_binary = qemu
> qemu_img_binary = qemu-img
> +smp = 1
> mem = 512
> image_size = 10G
> shell_port = 22
> @@ -751,7 +752,7 @@ variants:
> - @up:
> no autotest.npb
> - smp2:
> - extra_params += " -smp 2"
> + smp = 2
> used_cpus = 2
> stress_boot: used_cpus = 10
> timedrift.with_load: used_cpus = 100
> diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
> index ee6796b..0b7a81e 100755
> --- a/client/tests/kvm/kvm_vm.py
> +++ b/client/tests/kvm/kvm_vm.py
> @@ -261,6 +261,10 @@ class VM:
> if mem:
> qemu_cmd += " -m %s" % mem
>
> + smp = params.get("smp")
> + if smp:
> + qemu_cmd += " -smp %s" % smp
> +
> iso = params.get("cdrom")
> if iso:
> iso = kvm_utils.get_path(root_dir, iso)
> --
> 1.6.5.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Lucas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-10 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03 6:27 [PATCH] Seperate smp from extra_params and add into default VM params Yolkfull Chow
2009-11-10 13:19 ` Lucas Meneghel Rodrigues
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.