<div dir="ltr"><div dir="ltr"><div dir="ltr">Is this different issue than what was discussed in:<div><a href="https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg109516.html">https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg109516.html</a><br></div><div><br></div><div>The message is slightly different (might be changed in newer qemu used now), but the issue I had before was that features of selected -cpu and host cpu didn't match and qemu failed with:</div><div><div>qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:EDX.ss [bit 27]</div></div><div>when some features were missing and kvm was used.</div><div><br></div><div>If it's the same root cause, then it's not a bug in qemu.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 13, 2018 at 11:33 PM Andre McCurdy <<a href="mailto:armccurdy@gmail.com">armccurdy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Sep 13, 2018 at 12:25 AM, Anuj Mittal <<a href="mailto:anuj.mittal@intel.com" target="_blank">anuj.mittal@intel.com</a>> wrote:<br>
> Fixes warnings in builds using core2-32 tune:<br>
><br>
> warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]<br>
> warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]<br>
><br>
> when executing postinsts using qemu-i386.<br>
><br>
> i386 target doesn't enable CPUID_EXT2_SYSCALL and CPUID_EXT2_LM [1]<br>
> while cpu choice of core2duo that we use for core2-32 TUNE does [2].<br>
> Use n270 cpu instead to use with qemu which supports SSSE3 and doesn't<br>
> have these bits enabled [3].<br>
><br>
> [1] <a href="https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L739" rel="noreferrer" target="_blank">https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L739</a><br>
> [2] <a href="https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1439" rel="noreferrer" target="_blank">https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1439</a><br>
> [3] <a href="https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1603" rel="noreferrer" target="_blank">https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1603</a><br>
><br>
> Fixes [YOCTO #12916]<br>
<br>
Is this working around a bug in qemu?<br>
<br>
> Signed-off-by: Anuj Mittal <<a href="mailto:anuj.mittal@intel.com" target="_blank">anuj.mittal@intel.com</a>>> ---<br>
> meta/conf/machine/include/tune-core2.inc | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/meta/conf/machine/include/tune-core2.inc b/meta/conf/machine/include/tune-core2.inc<br>
> index c686bb4682..ddde719bde 100644<br>
> --- a/meta/conf/machine/include/tune-core2.inc<br>
> +++ b/meta/conf/machine/include/tune-core2.inc<br>
> @@ -21,7 +21,7 @@ TUNE_FEATURES_tune-core2-32 = "${TUNE_FEATURES_tune-x86} core2"<br>
> BASE_LIB_tune-core2-32 = "lib"<br>
> TUNE_PKGARCH_tune-core2-32 = "core2-32"<br>
> PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i686} core2-32"<br>
> -QEMU_EXTRAOPTIONS_core2-32 = " -cpu core2duo"<br>
> +QEMU_EXTRAOPTIONS_core2-32 = " -cpu n270"<br>
><br>
> AVAILTUNES += "core2-64"<br>
> TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2"<br>
> --<br>
> 2.17.1<br>
><br>
> --<br>
> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
> <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>