Skip to contentSkip to conversation

Fix xm vcpu-set command for when wrong number of VCPU is given

PATCH RESEND Applied Masaki Kanno 2 participants 2 messages Feb 26, 2007

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Fix xm vcpu-set command for when wrong number of VCPU is given

Hi,

I resend the patch to solve the issue that I reported as follows.

http://lists.xensource.com/archives/html/xen-devel/2007-02/msg00746.html

The behavior of the xm vcpu-set command isn't the specification, is it? If it is specification, I withdraw the patch. Could you possibly comment or apply the patch?

Best regards,
Kan

tools/python/xen/xend/XendDomainInfo.py +3 -0
diff -r 2c3a13993b0d tools/python/xen/xend/XendDomainInfo.py
@@ -913,6 +913,9 @@ class XendDomainInfo:
         return self.info['vcpus_number']
 
     def setVCpuCount(self, vcpus):
+        if vcpus <= 0:
+            raise XendError('Invalid VCPUs')
+        
         self.info['vcpu_avail'] = (1 << vcpus) - 1
         if self.domid >= 0:
             self.storeVm('vcpu_avail', self.info['vcpu_avail'])

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw

On Mon, Feb 26, 2007 at 07:08:19PM +0900, Masaki Kanno wrote:

Content-Description: Mail message body

Quoted 4 lines

Hi,

I resend the patch to solve the issue that I reported as follows.

Quoted 8 lines

http://lists.xensource.com/archives/html/xen-devel/2007-02/msg00746.html

The behavior of the xm vcpu-set command isn't the specification, is it? If it is specification, I withdraw the patch. Could you possibly comment or apply the patch?

Applied, thank you, and sorry for the delay.

Ewan.