DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] CPU does not support x86-64 instruction set
@ 2014-06-23 12:42 Alex Markuze
  2014-06-23 14:42 ` Thomas Monjalon
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Markuze @ 2014-06-23 12:42 UTC (permalink / raw)
  To: dev

Hi, I'm new to DPDK and Im trying to compile on a x86 Ubuntu 14.04 VM(KVM).
And I'm getting this error:

"error: CPU you selected does not support x86-64 instruction set"

I've seen in the Archive that Jinho had this same issue last year, I'd be
glad to know how it was resolved.

Thanks
Alex.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] CPU does not support x86-64 instruction set
  2014-06-23 12:42 [dpdk-dev] CPU does not support x86-64 instruction set Alex Markuze
@ 2014-06-23 14:42 ` Thomas Monjalon
       [not found]   ` <CAKfHP0XAfnXU1mC8b+=1d63rnj1J9GR-UM471HAyCQXkDEKDcg@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Monjalon @ 2014-06-23 14:42 UTC (permalink / raw)
  To: Alex Markuze; +Cc: dev

Hi,

2014-06-23 15:42, Alex Markuze:
> Hi, I'm new to DPDK and Im trying to compile on a x86 Ubuntu 14.04 VM(KVM).
> And I'm getting this error:
> 
> "error: CPU you selected does not support x86-64 instruction set"

You should try "-cpu host" option of Qemu/KVM in order to have the full 
instruction set of your host.

Please confirm it's working.
-- 
Thomas

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [dpdk-dev] Fwd:  CPU does not support x86-64 instruction set
       [not found]   ` <CAKfHP0XAfnXU1mC8b+=1d63rnj1J9GR-UM471HAyCQXkDEKDcg@mail.gmail.com>
@ 2014-06-24  8:12     ` Alex Markuze
  2014-06-24  8:21       ` Thomas Monjalon
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Markuze @ 2014-06-24  8:12 UTC (permalink / raw)
  To: dev

Thomas Thanks for your reply,
I've resolved the issue in a similar way by modifying the VM xml config
file with this line
<cpu mode='host-passthrough’/>.

I was wondering if a Makefile/.config solution exists w/o modifying an
existing VM in cases where its not possible.
I've tried to modify the .config file with 'CONFIG_RTE_MACHINE="native" ->
CONFIG_RTE_MACHINE="x86-64"'
But it didn't seem to matter (I didn't explore this much farther, I
dint really try a clean build and didn't make sure that the .config file
I've modified was read).

Alex.



On Mon, Jun 23, 2014 at 5:42 PM, Thomas Monjalon <thomas.monjalon@6wind.com>
wrote:

> Hi,
>
> 2014-06-23 15:42, Alex Markuze:
> > Hi, I'm new to DPDK and Im trying to compile on a x86 Ubuntu 14.04
> VM(KVM).
> > And I'm getting this error:
> >
> > "error: CPU you selected does not support x86-64 instruction set"
>
> You should try "-cpu host" option of Qemu/KVM in order to have the full
> instruction set of your host.
>
> Please confirm it's working.
> --
> Thomas
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] Fwd:  CPU does not support x86-64 instruction set
  2014-06-24  8:12     ` [dpdk-dev] Fwd: " Alex Markuze
@ 2014-06-24  8:21       ` Thomas Monjalon
  2014-06-24  9:14         ` Alex Markuze
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Monjalon @ 2014-06-24  8:21 UTC (permalink / raw)
  To: Alex Markuze; +Cc: dev

Welcome Alex.
Please, for future messages, try to answer below as explained here:
	http://dpdk.org/ml

2014-06-24 11:12, Alex Markuze:
> Thomas Monjalon <thomas.monjalon@6wind.com> wrote:
> > 2014-06-23 15:42, Alex Markuze:
> > > Hi, I'm new to DPDK and Im trying to compile on a x86 Ubuntu 14.04
> > VM(KVM).
> > > And I'm getting this error:
> > >
> > > "error: CPU you selected does not support x86-64 instruction set"
> >
> > You should try "-cpu host" option of Qemu/KVM in order to have the full
> > instruction set of your host.
> 
> I've resolved the issue in a similar way by modifying the VM xml config
> file with this line
> <cpu mode='host-passthrough’/>.
> 
> I was wondering if a Makefile/.config solution exists w/o modifying an
> existing VM in cases where its not possible.
> I've tried to modify the .config file with 'CONFIG_RTE_MACHINE="native" ->
> CONFIG_RTE_MACHINE="x86-64"'
> But it didn't seem to matter (I didn't explore this much farther, I
> dint really try a clean build and didn't make sure that the .config file
> I've modified was read).

Not sure to understand what you want.
If you try to build DPDK for most of machines (including VM), you should set
	CONFIG_RTE_MACHINE="default"
in your .config file.

-- 
Thomas

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] Fwd: CPU does not support x86-64 instruction set
  2014-06-24  8:21       ` Thomas Monjalon
@ 2014-06-24  9:14         ` Alex Markuze
  0 siblings, 0 replies; 8+ messages in thread
From: Alex Markuze @ 2014-06-24  9:14 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

On Tue, Jun 24, 2014 at 11:21 AM, Thomas Monjalon <thomas.monjalon@6wind.com
> wrote:

> Welcome Alex.
> Please, for future messages, try to answer below as explained here:
>         http://dpdk.org/ml
>
> 2014-06-24 11:12, Alex Markuze:
> > Thomas Monjalon <thomas.monjalon@6wind.com> wrote:
> > > 2014-06-23 15:42, Alex Markuze:
> > > > Hi, I'm new to DPDK and Im trying to compile on a x86 Ubuntu 14.04
> > > VM(KVM).
> > > > And I'm getting this error:
> > > >
> > > > "error: CPU you selected does not support x86-64 instruction set"
> > >
> > > You should try "-cpu host" option of Qemu/KVM in order to have the full
> > > instruction set of your host.
> >
> > I've resolved the issue in a similar way by modifying the VM xml config
> > file with this line
> > <cpu mode='host-passthrough’/>.
> >
> > I was wondering if a Makefile/.config solution exists w/o modifying an
> > existing VM in cases where its not possible.
> > I've tried to modify the .config file with 'CONFIG_RTE_MACHINE="native"
> ->
> > CONFIG_RTE_MACHINE="x86-64"'
> > But it didn't seem to matter (I didn't explore this much farther, I
> > dint really try a clean build and didn't make sure that the .config file
> > I've modified was read).
>
> Not sure to understand what you want.
> If you try to build DPDK for most of machines (including VM), you should
> set
>         CONFIG_RTE_MACHINE="default"
> in your .config file.
>
>    My wish is to be able to compile DPDK on a VM that has "model name :
QEMU Virtual CPU version 2.0.0"
   I'm guessing that the gcc doesn't understand the Arch so it throws this
error:
  "error: CPU you selected does not support x86-64 instruction set"

   I was looking for a way to tell the gcc not to worry about the QEMU cpu
and just compile x86_64 binary.

> --
> Thomas
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] CPU does not support x86-64 instruction set
@ 2013-06-06 23:02 dow
  0 siblings, 0 replies; 8+ messages in thread
From: dow @ 2013-06-06 23:02 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 2279 bytes --]

>On Thu, Jun 6, 2013 at 5:27 PM, jinho hwang <hwang.jinho at gmail.com> wrote:>>> Hi,>>>> I am having trouble to compile the dpdk in a virtual machine. I am using>> KVM as a hypervisor, and guest os is ubuntu 12.10, kernel 3.5.0, x86_64. I>> have been using dpdk for a week and run the examples 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/librte_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 have additional>functions to check strictly. - Jinho>-------------- next part -------------->An HTML attachment was scrubbed...>URL: <http://dpdk.org/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	{mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}.MsoChpDefault	{mso-style-type:export-only;	mso-default-props:yes;}@page WordSection1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.WordSection1</style></pre><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier"><span style="mso-spacerun:yes"> </span><cpu mode='host-passthrough'></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier"><span style="mso-spacerun:yes"> </span><topology sockets='1' cores='6'threads='2'/></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier"><span style="mso-spacerun:yes"> </span></cpu></span></p><pre><br><br></pre><div><font face="Verdana" size="2"></font></div>

[-- Attachment #2: Type: text/html, Size: 2975 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] CPU does not support x86-64 instruction set
  2013-06-06 21:27 jinho hwang
@ 2013-06-06 22:22 ` jinho hwang
  0 siblings, 0 replies; 8+ messages in thread
From: jinho hwang @ 2013-06-06 22:22 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

On Thu, Jun 6, 2013 at 5:27 PM, jinho hwang <hwang.jinho@gmail.com> wrote:

> Hi,
>
> I am having trouble to compile the dpdk in a virtual machine. I am using
> KVM as a hypervisor, and guest os is ubuntu 12.10, kernel 3.5.0, x86_64. I
> have been using dpdk for a week and run the examples 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/librte_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 have additional
functions to check strictly. - Jinho

[-- Attachment #2: Type: text/html, Size: 1379 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [dpdk-dev]  CPU does not support x86-64 instruction set
@ 2013-06-06 21:27 jinho hwang
  2013-06-06 22:22 ` jinho hwang
  0 siblings, 1 reply; 8+ messages in thread
From: jinho hwang @ 2013-06-06 21:27 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

Hi,

I am having trouble to compile the dpdk in a virtual machine. I am using
KVM as a hypervisor, and guest os is ubuntu 12.10, kernel 3.5.0, x86_64. I
have been using dpdk for a week and run the examples 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/librte_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

[-- Attachment #2: Type: text/html, Size: 792 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-06-24  9:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-23 12:42 [dpdk-dev] CPU does not support x86-64 instruction set Alex Markuze
2014-06-23 14:42 ` Thomas Monjalon
     [not found]   ` <CAKfHP0XAfnXU1mC8b+=1d63rnj1J9GR-UM471HAyCQXkDEKDcg@mail.gmail.com>
2014-06-24  8:12     ` [dpdk-dev] Fwd: " Alex Markuze
2014-06-24  8:21       ` Thomas Monjalon
2014-06-24  9:14         ` Alex Markuze
  -- strict thread matches above, loose matches on Subject: below --
2013-06-06 23:02 [dpdk-dev] " dow
2013-06-06 21:27 jinho hwang
2013-06-06 22:22 ` jinho hwang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).