Displaying 3 results from an estimated 3 matches for "3607eaa".
Did you mean:
3603e4aa
2012 Feb 25
1
[PATCH] set-smp: limit the number of cpus below 255
...<gaowanlong at cn.fujitsu.com>
Limit the number of cpus below 255, since qemu can't support.
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
src/guestfs.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index 3607eaa..f5875e6 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -794,7 +794,10 @@ guestfs__get_pgroup (guestfs_h *g)
int
guestfs__set_smp (guestfs_h *g, int v)
{
- if (v >= 1) {
+ if (v > 255) {
+ error (g, "Unsupported number of smp cpus: %d", v);
+ return -1;
+ } else if (v...
2012 Feb 22
1
[PATCH] set-smp: only set smp value at config time
...ssigned to 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:...
2012 Jan 24
14
[PATCH 00/14] Run the daemon under valgrind and fix resultant errors.
This patch series lets you run the daemon under valgrind.
Many errors were found and fixed.
With the complete series applied, valgrind doesn't show any errors.