Bug 12916

Summary: Warnings for MACHINE=genericx86 in do_rootfs
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: coreAssignee: Anuj Mittal <anuj.mittal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: 2.6   
Target Milestone: 2.6 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2018-09-05 14:54:47 UTC
For genericx86 builds during do_rootfs, we see WARNINGS from qemu about mismatched CPU options:

NOTE: recipe core-image-lsb-1.0-r0: task do_rootfs: Started
WARNING: core-image-lsb-1.0-r0 do_rootfs: [log_check] core-image-lsb: found 8 warning messages in the logfile:
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
[log_check] warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]

This shows up in the nightly-x86-lsb builds and nightly-x86.
Comment 1 Ross Burton 2018-09-06 14:50:46 UTC
Anuj, can you take this?

If you don't know, the problem is that the BSP needs to tell qemu what machine it is emulating.  eg intel-corei7-64 sets QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false".  We'll need to identify what hardware the genericx86 (and -64) machines and tell that.
Comment 2 Anuj Mittal 2018-09-07 07:36:22 UTC
Looks like it's specific to 32 bit. 

qemu-i386 doesn't support these features [1] while core2duo that we use for core2-32 does [2]. n270 looks like a good choice, supports SSSE3 and doesn't have these bits enabled [3]

[1] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L739
[2] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1439
[3] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1603