From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dow@dreamergraphics.com>
Received: from atl4mhob07.myregisteredsite.com (unknown [209.17.115.100])
 by dpdk.org (Postfix) with ESMTP id 94BBC6A6F
 for <dev@dpdk.org>; Fri,  7 Jun 2013 01:02:12 +0200 (CEST)
Received: from atl4webmail11 ([10.30.71.168])
 by atl4mhob07.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id
 r56N2JgS027540 for <dev@dpdk.org>; Thu, 6 Jun 2013 19:02:19 -0400
Received: from 71.62.178.12 (dow@dreamergraphics.com [71.62.178.12])
 by atl4webmail11 (Netsol 11.2.30) with WEBMAIL id 12643;
 Thu, 06 Jun 2013 23:02:19 +0000
From: dow@dreamergraphics.com
To: dev@dpdk.org
Importance: Normal
Sensitivity: Normal
Message-ID: <W591581093126431370559739@atl4webmail11>
X-Mailer: Network Solutions Webmail, Build 11.2.30
X-Originating-IP: [71.62.178.12]
X-Forwarded-For: [(null)]
X-Authenticated-UID: dow@dreamergraphics.com
Date: Thu, 06 Jun 2013 23:02:19 +0000
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="--=_vm_0011_W591581093_12643_1370559739"
Subject: Re: [dpdk-dev] CPU does not support x86-64 instruction set
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Jun 2013 23:02:12 -0000

----=_vm_0011_W591581093_12643_1370559739
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

>On Thu, Jun 6, 2013 at 5:27 PM, jinho hwang <hwang.jinho at gmail.com> w=
rote:>>> Hi,>>>> I am having trouble to compile the dpdk in a virtual mac=
hine. I am using>> KVM as a hypervisor, and guest os is ubuntu 12.10, ker=
nel 3.5.0, x86_64. I>> have been using dpdk for a week and run the exampl=
es in a native platform.>> But when I try to move it to virtual machine, =
it gives me the following>> error:>>>> /home/guest/dpdk-1.2.3r1/lib/librt=
e_eal/linuxapp/eal/eal.c:1:0: error: CPU>> you selected does not support =
x86-64 instruction set>>>> I am sure that I have installed 64 bit version=
 as it shows in "uname -a".> Also, /proc/cpuinfo shows "model name: QEMU =
Virtual CPU version> >(cpu64-rhe16)".>>>> Do you have any idea?>>>> Thank=
 you,>>>> Jinho>>>>I figured out just now. It was because gcc version. I =
used to use 4.4, but>in the guest virtual machine, I used 4.7 which may h=
ave additional>functions to check strictly. - Jinho>-------------- next p=
art -------------->An HTML attachment was scrubbed...>URL: <http://dpdk.o=
rg/ml/archives/dev/attachments/20130606/0a77b188/attachment.html>


This error can also be cause by the VM's CPU definition not being defined=
. The following xml snippet of code is from my DPDK VM's definition.
<!-- /* Style Definitions */p.MsoNormal, li.MsoNormal, div.MsoNormal=09{m=
so-style-unhide:no;=09mso-style-qformat:yes;=09mso-style-parent:"";=09mar=
gin:0in;=09margin-bottom:.0001pt;=09mso-pagination:widow-orphan;=09font-s=
ize:12.0pt;=09font-family:"Times New Roman";=09mso-fareast-font-family:"T=
imes New Roman";}.MsoChpDefault=09{mso-style-type:export-only;=09mso-defa=
ult-props:yes;}@page WordSection1=09{size:8.5in 11.0in;=09margin:1.0in 1.=
25in 1.0in 1.25in;=09mso-header-margin:.5in;=09mso-footer-margin:.5in;=09=
mso-paper-source:0;}div.WordSection1</style></pre><p class=3D"MsoNormal">=
<span style=3D"font-size:10.0pt;font-family:Courier"><span style=3D"mso-s=
pacerun:yes"> </span><cpu mode=3D'host-passthrough'></span></p><p class=3D=
"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Courier"><span st=
yle=3D"mso-spacerun:yes"> </span><topology sockets=3D'1' cores=3D'6'threa=
ds=3D'2'/></span></p><p class=3D"MsoNormal"><span style=3D"font-size:10.0=
pt;font-family:Courier"><span style=3D"mso-spacerun:yes"> </span></cpu></=
span></p><pre><br><br></pre><div><font face=3D"Verdana" size=3D"2"></font=
></div>

----=_vm_0011_W591581093_12643_1370559739
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html><body  bgcolor=3D"#ffffff"><pre>&gt;On Thu, Jun 6, 2013 at 5:27 PM,=
 jinho hwang &lt;<a href=3D"http://dpdk.org/ml/listinfo/dev">hwang.jinho =
at gmail.com</a>&gt; wrote:
&gt;
&gt;&gt;<i> Hi,
</i>&gt;&gt;<i>
</i>&gt;&gt;<i> I am having trouble to compile the dpdk in a virtual mach=
ine. I am using
</i>&gt;&gt;<i> KVM as a hypervisor, and guest os is ubuntu 12.10, kernel=
 3.5.0, x86_64. I
</i>&gt;&gt;<i> have been using dpdk for a week and run the examples in a=
 native platform.
</i>&gt;&gt;<i> But when I try to move it to virtual machine, it gives me=
 the following
</i>&gt;&gt;<i> error:
</i>&gt;&gt;<i>
</i>&gt;&gt;<i> /home/guest/dpdk-1.2.3r1/lib/librte_eal/linuxapp/eal/eal.=
c:1:0: error: CPU
</i>&gt;&gt;<i> you selected does not support x86-64 instruction set
</i>&gt;&gt;<i>
</i>&gt;&gt;<i> I am sure that I have installed 64 bit version as it show=
s in "uname -a".
</i>&gt;<i> Also, /proc/cpuinfo shows "model name: QEMU Virtual CPU versi=
on
</i>&gt;<i> &gt;(cpu64-rhe16)".
</i>&gt;&gt;<i>
</i>&gt;<i>&gt; Do you have any idea?
</i>&gt;&gt;<i>
</i>&gt;<i>&gt; Thank you,
</i>&gt;&gt;<i>
</i>&gt;<i>&gt; Jinho
</i>&gt;&gt;<i>
</i>&gt;
&gt;I figured out just now. It was because gcc version. I used to use 4.4=
, but
&gt;in the guest virtual machine, I used 4.7 which may have additional
&gt;functions to check strictly. - Jinho
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;<a href=3D"http://dpdk.org/ml/archives/dev/attachments/20130=
606/0a77b188/attachment.html">http://dpdk.org/ml/archives/dev/attachments=
/20130606/0a77b188/attachment.html</a>&gt;<br><br><br>This error can also=
 be cause by the VM's CPU definition not being defined.   The following x=
ml snippet of code is from my DPDK VM's definition.<br>
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{mso-style-unhide:no;
=09mso-style-qformat:yes;
=09mso-style-parent:"";
=09margin:0in;
=09margin-bottom:.0001pt;
=09mso-pagination:widow-orphan;
=09font-size:12.0pt;
=09font-family:"Times New Roman";
=09mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
=09{mso-style-type:export-only;
=09mso-default-props:yes;}
@page WordSection1
=09{size:8.5in 11.0in;
=09margin:1.0in 1.25in 1.0in 1.25in;
=09mso-header-margin:.5in;
=09mso-footer-margin:.5in;
=09mso-paper-source:0;}
div.WordSection1
</style>

</pre><p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:=
Courier"><span style=3D"mso-spacerun:yes">&nbsp; </span>&lt;cpu mode=3D'h=
ost-passthrough'&gt;</span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Courie=
r"><span style=3D"mso-spacerun:yes">&nbsp;&nbsp;&nbsp; </span>&lt;topolog=
y sockets=3D'1' cores=3D'6'
threads=3D'2'/&gt;</span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Courie=
r"><span style=3D"mso-spacerun:yes">&nbsp; </span>&lt;/cpu&gt;</span></p>=






<pre><br><br></pre><div><font face=3D"Verdana" size=3D"2"></font></div>
</body></html>

----=_vm_0011_W591581093_12643_1370559739--