search for: 3dcdf27

Displaying 1 result from an estimated 1 matches for "3dcdf27".

2012 Feb 22
1
[PATCH] set-smp: only set smp value at config time
...o the appliance, and it's impossible for the appliance to get 4 > virtual vcpus now. Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- src/guestfs.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/guestfs.c b/src/guestfs.c index 3607eaa..3dcdf27 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -794,7 +794,12 @@ guestfs__get_pgroup (guestfs_h *g) int guestfs__set_smp (guestfs_h *g, int v) { - if (v >= 1) { + if (g->state != CONFIG) + return 0; + if (v > 255) { + error (g, "Unsupported number of smp cpus: %d",...