qemu has an option `*qemu* -*cpu host` that will use the host cpu features*

2011/7/17 Kfir Lavi <lavi.k...@gmail.com>

>
>
> On Sat, Jul 16, 2011 at 9:13 PM, Michael Orlitzky <mich...@orlitzky.com>wrote:
>
>> On 07/16/2011 09:54 AM, Kfir Lavi wrote:
>> > Hi,
>> > I'm creating a router based on Gentoo, that needs to run as a vm using
>> > qemu.
>> > The mother machine will be Core I7 4 cores.
>> > What cpu and CFLAGS should I use to get the best performance out of this
>> vm?
>> >
>> > Thanks,
>> > Kfir
>>
>> CFLAGS="-march=native -O2 -pipe" enables everything safe these days.
>>
>> Hi,
> I think -march=native is a problem, as it will compile for my cpu.
> Qemu has different CPU, and i would like to compile my code to suit the vm
> environment
> as close as possible.
>
> Kfir
>

Reply via email to