[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] set-smp: limit the number of cpus below 255



On 02/25/2012 11:44 PM, Wanlong Gao wrote:

> Hi Rich:
> 
> I can't find the binary packages for RHEL6 now, including febootstrap,
> Right?


Sorry, I just find out them.
http://people.redhat.com/~rjones/libguestfs-RHEL-6.2-preview/

> 
> Thanks
> -Wanlong Gao
> 
>> On Sat, Feb 25, 2012 at 10:02:20AM +0800, Wanlong Gao wrote:
>>>
>>> From: Wanlong Gao <gaowanlong cn fujitsu com>
>>> Limit the number of cpus below 255, since qemu can't support.
>>>
>>> Signed-off-by: Wanlong Gao <gaowanlong 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 >= 1) {
>>>      g->smp = v;
>>>      return 0;
>>>    } else {
>>
>> ACK.
>>
>> Rich.
>>
> 
> 
> _______________________________________________
> Libguestfs mailing list
> Libguestfs redhat com
> https://www.redhat.com/mailman/listinfo/libguestfs
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]