Puthiyaparambil, Aravindh
2005-Oct-21  21:10 UTC
[Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
I am running x86_64 Xen on an ES7000 with 32 logical processors. I am trying to force a DomU to come up on CPU #32 by specifying "cpu=31" in the DomU configuration file. "xm" gives me the following error message: "Error: Error creating domain: signed integer is greater than maximum" I am able to do "cpu=30" successfully. Is this a bug? Should I be opening up a bug report? BTW, this does NOT happen on x86_32 PAE. Aravindh _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kamble, Nitin A
2005-Oct-21  21:16 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
Aravindh, By default Domains are assigned highest least loaded cpu. So domU should get the CPU 31 as a default if you don''t specify cpu=n option. What do you see if you don''t specify the "cpu=n"? Thanks & Regards, Nitin ------------------------------------------------------------------------ ----------- Open Source Technology Center, Intel Corp>-----Original Message----- >From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- >bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh >Sent: Friday, October 21, 2005 2:11 PM >To: xen-devel >Subject: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32 > >I am running x86_64 Xen on an ES7000 with 32 logical processors. I am >trying to force a DomU to come up on CPU #32 by specifying "cpu=31" in >the DomU configuration file. "xm" gives me the following error message: > >"Error: Error creating domain: signed integer is greater than maximum" > >I am able to do "cpu=30" successfully. > >Is this a bug? Should I be opening up a bug report? > >BTW, this does NOT happen on x86_32 PAE. > >Aravindh > >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Puthiyaparambil, Aravindh
2005-Oct-21  21:34 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
Nitin, When I don''t specify "cpu=n", the domain does come up on CPU #32. Name ID VCPU CPU State Time(s) CPU Map Domain-0 0 0 0 r-- 80.1 0xffffffffffffffff vm1 1 0 31 r-- 7.6 0xffffffffffffffff But shouldn''t I be able to specify "cpu=31"? Thanks, Aravindh> -----Original Message----- > From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] > Sent: Friday, October 21, 2005 5:16 PM > To: Puthiyaparambil, Aravindh; xen-devel > Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU onprocessor> #32 > > Aravindh, > By default Domains are assigned highest least loaded cpu. So domU > should get the CPU 31 as a default if you don''t specify cpu=n option. > > What do you see if you don''t specify the "cpu=n"? > > Thanks & Regards, > Nitin >------------------------------------------------------------------------> ----------- > Open Source Technology Center, Intel Corp > > >-----Original Message----- > >From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > >bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh > >Sent: Friday, October 21, 2005 2:11 PM > >To: xen-devel > >Subject: [Xen-devel] Unable to bring up x86_64 UP DomU on processor#32> > > >I am running x86_64 Xen on an ES7000 with 32 logical processors. I am > >trying to force a DomU to come up on CPU #32 by specifying "cpu=31"in> >the DomU configuration file. "xm" gives me the following errormessage:> > > >"Error: Error creating domain: signed integer is greater thanmaximum"> > > >I am able to do "cpu=30" successfully. > > > >Is this a bug? Should I be opening up a bug report? > > > >BTW, this does NOT happen on x86_32 PAE. > > > >Aravindh > > > >_______________________________________________ > >Xen-devel mailing list > >Xen-devel@lists.xensource.com > >http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kamble, Nitin A
2005-Oct-21  21:38 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
That''s Good to know. Then this should be easy to fix. Probably the python code (xm, xend) has some issue. You can look at /var/log/xen* files to see what is the reason of the error. Thanks & Regards, Nitin ------------------------------------------------------------------------ ----------- Open Source Technology Center, Intel Corp>-----Original Message----- >From: Puthiyaparambil, Aravindh >[mailto:aravindh.puthiyaparambil@unisys.com] >Sent: Friday, October 21, 2005 2:35 PM >To: Kamble, Nitin A; xen-devel >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor#32> >Nitin, > >When I don''t specify "cpu=n", the domain does come up on CPU #32. > >Name ID VCPU CPU State Time(s) CPUMap>Domain-0 0 0 0 r-- 80.1 >0xffffffffffffffff >vm1 1 0 31 r-- 7.6 >0xffffffffffffffff > > >But shouldn''t I be able to specify "cpu=31"? > >Thanks, >Aravindh > >> -----Original Message----- >> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] >> Sent: Friday, October 21, 2005 5:16 PM >> To: Puthiyaparambil, Aravindh; xen-devel >> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >processor >> #32 >> >> Aravindh, >> By default Domains are assigned highest least loaded cpu. So domU >> should get the CPU 31 as a default if you don''t specify cpu=n option. >> >> What do you see if you don''t specify the "cpu=n"? >> >> Thanks & Regards, >> Nitin >> >------------------------------------------------------------------------>> ----------- >> Open Source Technology Center, Intel Corp >> >> >-----Original Message----- >> >From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- >> >bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh >> >Sent: Friday, October 21, 2005 2:11 PM >> >To: xen-devel >> >Subject: [Xen-devel] Unable to bring up x86_64 UP DomU on processor >#32 >> > >> >I am running x86_64 Xen on an ES7000 with 32 logical processors. Iam>> >trying to force a DomU to come up on CPU #32 by specifying "cpu=31" >in >> >the DomU configuration file. "xm" gives me the following error >message: >> > >> >"Error: Error creating domain: signed integer is greater than >maximum" >> > >> >I am able to do "cpu=30" successfully. >> > >> >Is this a bug? Should I be opening up a bug report? >> > >> >BTW, this does NOT happen on x86_32 PAE. >> > >> >Aravindh >> > >> >_______________________________________________ >> >Xen-devel mailing list >> >Xen-devel@lists.xensource.com >> >http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Puthiyaparambil, Aravindh
2005-Oct-21  21:49 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
Nitin,
Thanks for the lead. This is what /var/log/xend-debug.log says:
OverflowError: signed integer is greater than maximum
mainInfo.create(config)
  File
"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo
mainInfo.py", line 147, in create
    vm.initDomain()
  File
"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo
mainInfo.py", line 1093, in initDomain
    xc.domain_pincpu(self.domid, 0, 1 << cpu)
OverflowError: signed integer is greater than maximum
cpus          = self.vm.getVCpuCount())
error: (0, ''Error'')
Failed allocation for dom 19: 893952 pages order 0 addr_bits 0
Aravindh
> -----Original Message-----
> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com]
> Sent: Friday, October 21, 2005 5:38 PM
> To: Puthiyaparambil, Aravindh; xen-devel
> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on
processor> #32
> 
> That''s Good to know. Then this should be easy to fix. Probably the
> python code (xm, xend) has some issue.
>   You can look at /var/log/xen* files to see what is the reason of the
> error.
> 
> Thanks & Regards,
> Nitin
>
------------------------------------------------------------------------> -----------
> Open Source Technology Center, Intel Corp
> 
> >-----Original Message-----
> >From: Puthiyaparambil, Aravindh
> >[mailto:aravindh.puthiyaparambil@unisys.com]
> >Sent: Friday, October 21, 2005 2:35 PM
> >To: Kamble, Nitin A; xen-devel
> >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on
processor> #32
> >
> >Nitin,
> >
> >When I don''t specify "cpu=n", the domain does come
up on CPU #32.
> >
> >Name                              ID  VCPU  CPU  State  Time(s)  CPU
> Map
> >Domain-0                           0     0    0   r--      80.1
> >0xffffffffffffffff
> >vm1                                1     0   31   r--       7.6
> >0xffffffffffffffff
> >
> >
> >But shouldn''t I be able to specify "cpu=31"?
> >
> >Thanks,
> >Aravindh
> >
> >> -----Original Message-----
> >> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com]
> >> Sent: Friday, October 21, 2005 5:16 PM
> >> To: Puthiyaparambil, Aravindh; xen-devel
> >> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on
> >processor
> >> #32
> >>
> >> Aravindh,
> >>    By default Domains are assigned highest least loaded cpu. So
domU> >> should get the CPU 31 as a default if you don''t specify
cpu=n
option.> >>
> >>   What do you see if you don''t specify the
"cpu=n"?
> >>
> >> Thanks & Regards,
> >> Nitin
> >>
>
>-----------------------------------------------------------------------
> -
> >> -----------
> >> Open Source Technology Center, Intel Corp
> >>
> >> >-----Original Message-----
> >> >From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-
> >> >bounces@lists.xensource.com] On Behalf Of Puthiyaparambil,
Aravindh> >> >Sent: Friday, October 21, 2005 2:11 PM
> >> >To: xen-devel
> >> >Subject: [Xen-devel] Unable to bring up x86_64 UP DomU on
processor> >#32
> >> >
> >> >I am running x86_64 Xen on an ES7000 with 32 logical
processors. I
> am
> >> >trying to force a DomU to come up on CPU #32 by specifying
"cpu=31"> >in
> >> >the DomU configuration file. "xm" gives me the
following error
> >message:
> >> >
> >> >"Error: Error creating domain: signed integer is greater
than
> >maximum"
> >> >
> >> >I am able to do "cpu=30" successfully.
> >> >
> >> >Is this a bug? Should I be opening up a bug report?
> >> >
> >> >BTW, this does NOT happen on x86_32 PAE.
> >> >
> >> >Aravindh
> >> >
> >> >_______________________________________________
> >> >Xen-devel mailing list
> >> >Xen-devel@lists.xensource.com
> >> >http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
I tried to use nfs in domU, the nfs server is deployed in dom0. But when I tried to do "tar xvf linux-2.4.29.tar", the process will get stalled for around 20-40 seconds after depress several, then it will continue. This short stop is abnormal to me. What could cause this problem? Is there any way to fix it? Thanks, Xin _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kamble, Nitin A
2005-Oct-21  22:21 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
The problem is here: xc.domain_pincpu(self.domid, 0, 1 << cpu) 1 <<32 crosses the int size, as the 1 is signed. I you represent that 1 as unsigned or long, then it should work. I don''t know how to represent unsigned or long number in python. Thanks & Regards, Nitin ------------------------------------------------------------------------ ----------- Open Source Technology Center, Intel Corp>-----Original Message----- >From: Puthiyaparambil, Aravindh >[mailto:aravindh.puthiyaparambil@unisys.com] >Sent: Friday, October 21, 2005 2:49 PM >To: Kamble, Nitin A; xen-devel >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor#32> >Nitin, > >Thanks for the lead. This is what /var/log/xend-debug.log says: > >OverflowError: signed integer is greater than maximum >mainInfo.create(config) > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo>mainInfo.py", line 147, in create > vm.initDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo>mainInfo.py", line 1093, in initDomain > xc.domain_pincpu(self.domid, 0, 1 << cpu) >OverflowError: signed integer is greater than maximum >cpus = self.vm.getVCpuCount()) >error: (0, ''Error'') >Failed allocation for dom 19: 893952 pages order 0 addr_bits 0 > >Aravindh > >> -----Original Message----- >> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] >> Sent: Friday, October 21, 2005 5:38 PM >> To: Puthiyaparambil, Aravindh; xen-devel >> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >processor >> #32 >> >> That''s Good to know. Then this should be easy to fix. Probably the >> python code (xm, xend) has some issue. >> You can look at /var/log/xen* files to see what is the reason ofthe>> error. >> >> Thanks & Regards, >> Nitin >> >------------------------------------------------------------------------>> ----------- >> Open Source Technology Center, Intel Corp >> >> >-----Original Message----- >> >From: Puthiyaparambil, Aravindh >> >[mailto:aravindh.puthiyaparambil@unisys.com] >> >Sent: Friday, October 21, 2005 2:35 PM >> >To: Kamble, Nitin A; xen-devel >> >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >processor >> #32 >> > >> >Nitin, >> > >> >When I don''t specify "cpu=n", the domain does come up on CPU #32. >> > >> >Name ID VCPU CPU State Time(s) CPU >> Map >> >Domain-0 0 0 0 r-- 80.1 >> >0xffffffffffffffff >> >vm1 1 0 31 r-- 7.6 >> >0xffffffffffffffff >> > >> > >> >But shouldn''t I be able to specify "cpu=31"? >> > >> >Thanks, >> >Aravindh >> > >> >> -----Original Message----- >> >> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] >> >> Sent: Friday, October 21, 2005 5:16 PM >> >> To: Puthiyaparambil, Aravindh; xen-devel >> >> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >> >processor >> >> #32 >> >> >> >> Aravindh, >> >> By default Domains are assigned highest least loaded cpu. So >domU >> >> should get the CPU 31 as a default if you don''t specify cpu=n >option. >> >> >> >> What do you see if you don''t specify the "cpu=n"? >> >> >> >> Thanks & Regards, >> >> Nitin >> >> >> >>----------------------------------------------------------------------->> - >> >> ----------- >> >> Open Source Technology Center, Intel Corp >> >> >> >> >-----Original Message----- >> >> >From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- >> >> >bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, >Aravindh >> >> >Sent: Friday, October 21, 2005 2:11 PM >> >> >To: xen-devel >> >> >Subject: [Xen-devel] Unable to bring up x86_64 UP DomU on >processor >> >#32 >> >> > >> >> >I am running x86_64 Xen on an ES7000 with 32 logical processors.I>> am >> >> >trying to force a DomU to come up on CPU #32 by specifying >"cpu=31" >> >in >> >> >the DomU configuration file. "xm" gives me the following error >> >message: >> >> > >> >> >"Error: Error creating domain: signed integer is greater than >> >maximum" >> >> > >> >> >I am able to do "cpu=30" successfully. >> >> > >> >> >Is this a bug? Should I be opening up a bug report? >> >> > >> >> >BTW, this does NOT happen on x86_32 PAE. >> >> > >> >> >Aravindh >> >> > >> >> >_______________________________________________ >> >> >Xen-devel mailing list >> >> >Xen-devel@lists.xensource.com >> >> >http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Puthiyaparambil, Aravindh
2005-Oct-22  19:39 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
The reason why this is happening is that on line 1093 in XendDomainInfo.py, "1" is being treated as an int. My python skills are weak. How can I cast it as a long or unsigned long? I tried using long() and "0x1L". Both don''t seem to be working. XendDomainInfo.py: 1093 xc.domain_pincpu(self.domid, 0, 1 << cpu) Thanks, Aravindh> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh > Sent: Friday, October 21, 2005 5:49 PM > To: Kamble, Nitin A; xen-devel > Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU onprocessor> #32 > > Nitin, > > Thanks for the lead. This is what /var/log/xend-debug.log says: > > OverflowError: signed integer is greater than maximum > mainInfo.create(config) > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> mainInfo.py", line 147, in create > vm.initDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> mainInfo.py", line 1093, in initDomain > xc.domain_pincpu(self.domid, 0, 1 << cpu) > OverflowError: signed integer is greater than maximum > cpus = self.vm.getVCpuCount()) > error: (0, ''Error'') > Failed allocation for dom 19: 893952 pages order 0 addr_bits 0 > > Aravindh > > > -----Original Message----- > > From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] > > Sent: Friday, October 21, 2005 5:38 PM > > To: Puthiyaparambil, Aravindh; xen-devel > > Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on > processor > > #32 > > > > That''s Good to know. Then this should be easy to fix. Probably the > > python code (xm, xend) has some issue. > > You can look at /var/log/xen* files to see what is the reason ofthe> > error. > > > > Thanks & Regards, > > Nitin > > >------------------------------------------------------------------------> > ----------- > > Open Source Technology Center, Intel Corp > > > > >-----Original Message----- > > >From: Puthiyaparambil, Aravindh > > >[mailto:aravindh.puthiyaparambil@unisys.com] > > >Sent: Friday, October 21, 2005 2:35 PM > > >To: Kamble, Nitin A; xen-devel > > >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on > processor > > #32 > > > > > >Nitin, > > > > > >When I don''t specify "cpu=n", the domain does come up on CPU #32. > > > > > >Name ID VCPU CPU State Time(s)CPU> > Map > > >Domain-0 0 0 0 r-- 80.1 > > >0xffffffffffffffff > > >vm1 1 0 31 r-- 7.6 > > >0xffffffffffffffff > > > > > > > > >But shouldn''t I be able to specify "cpu=31"? > > > > > >Thanks, > > >Aravindh > > > > > >> -----Original Message----- > > >> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] > > >> Sent: Friday, October 21, 2005 5:16 PM > > >> To: Puthiyaparambil, Aravindh; xen-devel > > >> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on > > >processor > > >> #32 > > >> > > >> Aravindh, > > >> By default Domains are assigned highest least loaded cpu. So > domU > > >> should get the CPU 31 as a default if you don''t specify cpu=n > option. > > >> > > >> What do you see if you don''t specify the "cpu=n"? > > >> > > >> Thanks & Regards, > > >> Nitin > > >> > > > >----------------------------------------------------------------------- > > - > > >> ----------- > > >> Open Source Technology Center, Intel Corp > > >> > > >> >-----Original Message----- > > >> >From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > > >> >bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, > Aravindh > > >> >Sent: Friday, October 21, 2005 2:11 PM > > >> >To: xen-devel > > >> >Subject: [Xen-devel] Unable to bring up x86_64 UP DomU on > processor > > >#32 > > >> > > > >> >I am running x86_64 Xen on an ES7000 with 32 logical processors.I> > am > > >> >trying to force a DomU to come up on CPU #32 by specifying > "cpu=31" > > >in > > >> >the DomU configuration file. "xm" gives me the following error > > >message: > > >> > > > >> >"Error: Error creating domain: signed integer is greater than > > >maximum" > > >> > > > >> >I am able to do "cpu=30" successfully. > > >> > > > >> >Is this a bug? Should I be opening up a bug report? > > >> > > > >> >BTW, this does NOT happen on x86_32 PAE. > > >> > > > >> >Aravindh > > >> > > > >> >_______________________________________________ > > >> >Xen-devel mailing list > > >> >Xen-devel@lists.xensource.com > > >> >http://lists.xensource.com/xen-devel > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kamble, Nitin A
2005-Oct-22  20:04 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
A crude way to achieve it can be:
xc.domain_pincpu(self.domid, 0, (0 - (0x80000000 >> (31 - cpu))))
It gives this warning while starting xend. 
/usr/lib/python/xen/xend/XendDomainInfo.py:1093: FutureWarning: hex/oct
constants > sys.maxint will return positive values in Python 2.4 and up
  xc.domain_pincpu(self.domid, 0, (0 - (0x80000000 >> (31 - cpu))))
But it is harmless, and achives the purpose. From the warning seems like
python 2.4 onwards should not have this issue. This code is running on
python version 2.3.4-11.
[root@lvt3 ~]# xm create cpu=0 -n
Using config file "/etc/xen/xmdefconfig".
(vm
    (name ExampleVMXDomain)
    (memory 128)
    (ssidref 0)
    (cpu 0)
    (image
        (vmx
            (kernel /usr/lib/xen/boot/vmxloader)
            (vcpus 1)
            (device_model /usr/lib/xen/bin/qemu-dm)
            (vcpus 1)
            (boot c)
            (vnc 1)
            (vncviewer 1)
        )
    )
    (device
        (vbd (uname file:/var/images/min-el3-i386.img) (dev ioemu:hda)
(mode w))
    )
    (device (vif (mac aa:00:00:2e:97:73)))
)
[root@lvt3 ~]# xm create cpu=31 -n
Using config file "/etc/xen/xmdefconfig".
(vm
    (name ExampleVMXDomain)
    (memory 128)
    (ssidref 0)
    (cpu 31)
    (image
        (vmx
            (kernel /usr/lib/xen/boot/vmxloader)
            (vcpus 1)
            (device_model /usr/lib/xen/bin/qemu-dm)
            (vcpus 1)
            (boot c)
            (vnc 1)
            (vncviewer 1)
        )
    )
    (device
        (vbd (uname file:/var/images/min-el3-i386.img) (dev ioemu:hda)
(mode w))
    )
    (device (vif (mac aa:00:00:6b:f3:ec)))
)
Thanks & Regards,
Nitin
------------------------------------------------------------------------
-----------
Open Source Technology Center, Intel Corp>-----Original Message-----
>From: Puthiyaparambil, Aravindh
>[mailto:aravindh.puthiyaparambil@unisys.com]
>Sent: Saturday, October 22, 2005 12:39 PM
>To: xen-devel
>Cc: Kamble, Nitin A
>Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor
#32>
>The reason why this is happening is that on line 1093 in
>XendDomainInfo.py, "1" is being treated as an int. My python
skills are
>weak. How can I cast it as a long or unsigned long? I tried using
long()>and "0x1L". Both don''t seem to be working.
>
>XendDomainInfo.py: 1093     xc.domain_pincpu(self.domid, 0, 1 << cpu)
>
>Thanks,
>Aravindh
>
>> -----Original Message-----
>> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-
>> bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh
>> Sent: Friday, October 21, 2005 5:49 PM
>> To: Kamble, Nitin A; xen-devel
>> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on
>processor
>> #32
>>
>> Nitin,
>>
>> Thanks for the lead. This is what /var/log/xend-debug.log says:
>>
>> OverflowError: signed integer is greater than maximum
>> mainInfo.create(config)
>>   File
>>
>"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendD
o>> mainInfo.py", line 147, in create
>>     vm.initDomain()
>>   File
>>
>"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendD
o>> mainInfo.py", line 1093, in initDomain
>>     xc.domain_pincpu(self.domid, 0, 1 << cpu)
>> OverflowError: signed integer is greater than maximum
>> cpus          = self.vm.getVCpuCount())
>> error: (0, ''Error'')
>> Failed allocation for dom 19: 893952 pages order 0 addr_bits 0
>>
>> Aravindh
>>
>> > -----Original Message-----
>> > From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com]
>> > Sent: Friday, October 21, 2005 5:38 PM
>> > To: Puthiyaparambil, Aravindh; xen-devel
>> > Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on
>> processor
>> > #32
>> >
>> > That''s Good to know. Then this should be easy to fix.
Probably the
>> > python code (xm, xend) has some issue.
>> >   You can look at /var/log/xen* files to see what is the reason of
>the
>> > error.
>> >
>> > Thanks & Regards,
>> > Nitin
>> >
>>
>-----------------------------------------------------------------------
->> > -----------
>> > Open Source Technology Center, Intel Corp
>> >
>> > >-----Original Message-----
>> > >From: Puthiyaparambil, Aravindh
>> > >[mailto:aravindh.puthiyaparambil@unisys.com]
>> > >Sent: Friday, October 21, 2005 2:35 PM
>> > >To: Kamble, Nitin A; xen-devel
>> > >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on
>> processor
>> > #32
>> > >
>> > >Nitin,
>> > >
>> > >When I don''t specify "cpu=n", the domain
does come up on CPU #32.
>> > >
>> > >Name                              ID  VCPU  CPU  State 
Time(s)
>CPU
>> > Map
>> > >Domain-0                           0     0    0   r--     
80.1
>> > >0xffffffffffffffff
>> > >vm1                                1     0   31   r--      
7.6
>> > >0xffffffffffffffff
>> > >
>> > >
>> > >But shouldn''t I be able to specify
"cpu=31"?
>> > >
>> > >Thanks,
>> > >Aravindh
>> > >
>> > >> -----Original Message-----
>> > >> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com]
>> > >> Sent: Friday, October 21, 2005 5:16 PM
>> > >> To: Puthiyaparambil, Aravindh; xen-devel
>> > >> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP
DomU on
>> > >processor
>> > >> #32
>> > >>
>> > >> Aravindh,
>> > >>    By default Domains are assigned highest least loaded
cpu. So
>> domU
>> > >> should get the CPU 31 as a default if you don''t
specify cpu=n
>> option.
>> > >>
>> > >>   What do you see if you don''t specify the
"cpu=n"?
>> > >>
>> > >> Thanks & Regards,
>> > >> Nitin
>> > >>
>> >
>>
>>----------------------------------------------------------------------
->> > -
>> > >> -----------
>> > >> Open Source Technology Center, Intel Corp
>> > >>
>> > >> >-----Original Message-----
>> > >> >From: xen-devel-bounces@lists.xensource.com
[mailto:xen-devel-
>> > >> >bounces@lists.xensource.com] On Behalf Of
Puthiyaparambil,
>> Aravindh
>> > >> >Sent: Friday, October 21, 2005 2:11 PM
>> > >> >To: xen-devel
>> > >> >Subject: [Xen-devel] Unable to bring up x86_64 UP
DomU on
>> processor
>> > >#32
>> > >> >
>> > >> >I am running x86_64 Xen on an ES7000 with 32 logical
processors.>I
>> > am
>> > >> >trying to force a DomU to come up on CPU #32 by
specifying
>> "cpu=31"
>> > >in
>> > >> >the DomU configuration file. "xm" gives me
the following error
>> > >message:
>> > >> >
>> > >> >"Error: Error creating domain: signed integer is
greater than
>> > >maximum"
>> > >> >
>> > >> >I am able to do "cpu=30" successfully.
>> > >> >
>> > >> >Is this a bug? Should I be opening up a bug report?
>> > >> >
>> > >> >BTW, this does NOT happen on x86_32 PAE.
>> > >> >
>> > >> >Aravindh
>> > >> >
>> > >> >_______________________________________________
>> > >> >Xen-devel mailing list
>> > >> >Xen-devel@lists.xensource.com
>> > >> >http://lists.xensource.com/xen-devel
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
Kamble, Nitin A
2005-Oct-22  20:09 UTC
RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor #32
This crude fix, will also require domain_pincpu to take the long argument. Thanks & Regards, Nitin ------------------------------------------------------------------------ ----------- Open Source Technology Center, Intel Corp>-----Original Message----- >From: Kamble, Nitin A >Sent: Saturday, October 22, 2005 1:04 PM >To: Puthiyaparambil, Aravindh; xen-devel >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on processor#32> >A crude way to achieve it can be: > >xc.domain_pincpu(self.domid, 0, (0 - (0x80000000 >> (31 - cpu)))) > > >It gives this warning while starting xend. >/usr/lib/python/xen/xend/XendDomainInfo.py:1093: FutureWarning: hex/oct >constants > sys.maxint will return positive values in Python 2.4 and up > xc.domain_pincpu(self.domid, 0, (0 - (0x80000000 >> (31 - cpu)))) > > >But it is harmless, and achives the purpose. From the warning seemslike>python 2.4 onwards should not have this issue. This code is running on >python version 2.3.4-11. > > >[root@lvt3 ~]# xm create cpu=0 -n >Using config file "/etc/xen/xmdefconfig". >(vm > (name ExampleVMXDomain) > (memory 128) > (ssidref 0) > (cpu 0) > (image > (vmx > (kernel /usr/lib/xen/boot/vmxloader) > (vcpus 1) > (device_model /usr/lib/xen/bin/qemu-dm) > (vcpus 1) > (boot c) > (vnc 1) > (vncviewer 1) > ) > ) > (device > (vbd (uname file:/var/images/min-el3-i386.img) (dev ioemu:hda) >(mode w)) > ) > (device (vif (mac aa:00:00:2e:97:73))) >) >[root@lvt3 ~]# xm create cpu=31 -n >Using config file "/etc/xen/xmdefconfig". >(vm > (name ExampleVMXDomain) > (memory 128) > (ssidref 0) > (cpu 31) > (image > (vmx > (kernel /usr/lib/xen/boot/vmxloader) > (vcpus 1) > (device_model /usr/lib/xen/bin/qemu-dm) > (vcpus 1) > (boot c) > (vnc 1) > (vncviewer 1) > ) > ) > (device > (vbd (uname file:/var/images/min-el3-i386.img) (dev ioemu:hda) >(mode w)) > ) > (device (vif (mac aa:00:00:6b:f3:ec))) >) > >Thanks & Regards, >Nitin >--------------------------------------------------------------------------->-------- >Open Source Technology Center, Intel Corp >>-----Original Message----- >>From: Puthiyaparambil, Aravindh >>[mailto:aravindh.puthiyaparambil@unisys.com] >>Sent: Saturday, October 22, 2005 12:39 PM >>To: xen-devel >>Cc: Kamble, Nitin A >>Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU onprocessor>#32 >> >>The reason why this is happening is that on line 1093 in >>XendDomainInfo.py, "1" is being treated as an int. My python skillsare>>weak. How can I cast it as a long or unsigned long? I tried usinglong()>>and "0x1L". Both don''t seem to be working. >> >>XendDomainInfo.py: 1093 xc.domain_pincpu(self.domid, 0, 1 << cpu) >> >>Thanks, >>Aravindh >> >>> -----Original Message----- >>> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- >>> bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh >>> Sent: Friday, October 21, 2005 5:49 PM >>> To: Kamble, Nitin A; xen-devel >>> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >>processor >>> #32 >>> >>> Nitin, >>> >>> Thanks for the lead. This is what /var/log/xend-debug.log says: >>> >>> OverflowError: signed integer is greater than maximum >>> mainInfo.create(config) >>> File >>> >>"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo>>> mainInfo.py", line 147, in create >>> vm.initDomain() >>> File >>> >>"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo>>> mainInfo.py", line 1093, in initDomain >>> xc.domain_pincpu(self.domid, 0, 1 << cpu) >>> OverflowError: signed integer is greater than maximum >>> cpus = self.vm.getVCpuCount()) >>> error: (0, ''Error'') >>> Failed allocation for dom 19: 893952 pages order 0 addr_bits 0 >>> >>> Aravindh >>> >>> > -----Original Message----- >>> > From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] >>> > Sent: Friday, October 21, 2005 5:38 PM >>> > To: Puthiyaparambil, Aravindh; xen-devel >>> > Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >>> processor >>> > #32 >>> > >>> > That''s Good to know. Then this should be easy to fix. Probably the >>> > python code (xm, xend) has some issue. >>> > You can look at /var/log/xen* files to see what is the reason of >>the >>> > error. >>> > >>> > Thanks & Regards, >>> > Nitin >>> > >>> >>------------------------------------------------------------------------>>> > ----------- >>> > Open Source Technology Center, Intel Corp >>> > >>> > >-----Original Message----- >>> > >From: Puthiyaparambil, Aravindh >>> > >[mailto:aravindh.puthiyaparambil@unisys.com] >>> > >Sent: Friday, October 21, 2005 2:35 PM >>> > >To: Kamble, Nitin A; xen-devel >>> > >Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >>> processor >>> > #32 >>> > > >>> > >Nitin, >>> > > >>> > >When I don''t specify "cpu=n", the domain does come up on CPU #32. >>> > > >>> > >Name ID VCPU CPU State Time(s) >>CPU >>> > Map >>> > >Domain-0 0 0 0 r-- 80.1 >>> > >0xffffffffffffffff >>> > >vm1 1 0 31 r-- 7.6 >>> > >0xffffffffffffffff >>> > > >>> > > >>> > >But shouldn''t I be able to specify "cpu=31"? >>> > > >>> > >Thanks, >>> > >Aravindh >>> > > >>> > >> -----Original Message----- >>> > >> From: Kamble, Nitin A [mailto:nitin.a.kamble@intel.com] >>> > >> Sent: Friday, October 21, 2005 5:16 PM >>> > >> To: Puthiyaparambil, Aravindh; xen-devel >>> > >> Subject: RE: [Xen-devel] Unable to bring up x86_64 UP DomU on >>> > >processor >>> > >> #32 >>> > >> >>> > >> Aravindh, >>> > >> By default Domains are assigned highest least loaded cpu. So >>> domU >>> > >> should get the CPU 31 as a default if you don''t specify cpu=n >>> option. >>> > >> >>> > >> What do you see if you don''t specify the "cpu=n"? >>> > >> >>> > >> Thanks & Regards, >>> > >> Nitin >>> > >> >>> > >>> >>>----------------------------------------------------------------------->>> > - >>> > >> ----------- >>> > >> Open Source Technology Center, Intel Corp >>> > >> >>> > >> >-----Original Message----- >>> > >> >From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- >>> > >> >bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, >>> Aravindh >>> > >> >Sent: Friday, October 21, 2005 2:11 PM >>> > >> >To: xen-devel >>> > >> >Subject: [Xen-devel] Unable to bring up x86_64 UP DomU on >>> processor >>> > >#32 >>> > >> > >>> > >> >I am running x86_64 Xen on an ES7000 with 32 logicalprocessors.>>I >>> > am >>> > >> >trying to force a DomU to come up on CPU #32 by specifying >>> "cpu=31" >>> > >in >>> > >> >the DomU configuration file. "xm" gives me the following error >>> > >message: >>> > >> > >>> > >> >"Error: Error creating domain: signed integer is greater than >>> > >maximum" >>> > >> > >>> > >> >I am able to do "cpu=30" successfully. >>> > >> > >>> > >> >Is this a bug? Should I be opening up a bug report? >>> > >> > >>> > >> >BTW, this does NOT happen on x86_32 PAE. >>> > >> > >>> > >> >Aravindh >>> > >> > >>> > >> >_______________________________________________ >>> > >> >Xen-devel mailing list >>> > >> >Xen-devel@lists.xensource.com >>> > >> >http://lists.xensource.com/xen-devel >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel