Bug 663538

Summary: Add AES to CPUID ext_features recognized by kvm..
Product: Red Hat Enterprise Linux 6 Reporter: john cooper <john.cooper>
Component: kernelAssignee: john cooper <john.cooper>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: arozansk, gcosta, jdenemar, john.cooper, juzhang, khong, lihuang, michen, mjenner, mkenneth, nobody, qcai, shuang, snagar, tburke, virt-maint
Target Milestone: rcKeywords: FutureFeature, Reopened
Target Release: 6.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-112.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 647308 Environment:
Last Closed: 2011-05-23 20:32:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 632257, 647308, 647310    
Bug Blocks: 580951, 647037, 647306    

Comment 4 Aristeu Rozanski 2011-02-03 15:19:34 UTC
Patch(es) available on kernel-2.6.32-112.el6

Comment 7 Suqin Huang 2011-02-10 06:25:09 UTC
result:
guest boot successfully with -cpu Westmere,enforce on Westmere host, flag aes is exported to guest, guest family/model/stepping/level is the same as the info in dump

guest quit with error when boot with -cpu Westmere,enforce on host < Westmere

1. qemu-kvm & kernel
kernel: 2.6.32-113.el6.x86_64
qemu: qemu-kvm-0.12.1.2-2.144.el6.x86_64

2. cmd
qemu-kvm -monitor stdio -drive file=/images/RHEL-Server-6.0-32-virtio.qcow2,index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,format=qcow2,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,id=virtio-disk1 -device virtio-net-pci,netdev=idx1i8qD,mac=9a:42:99:6d:c8:2d,netdev=idx1i8qD,id=ndev00idx1i8qD,bus=pci.0,addr=0x3 -netdev tap,id=idx1i8qD,script='/kvm/scripts/qemu-ifup-switch',downscript='no' -m 2048 -smp 2,cores=1,threads=1,sockets=2 -cpu Westmere,enforce -vnc :0 -rtc base=utc,clock=host,driftfix=none -usbdevice tablet -no-kvm-pit-reinjection -enable-kvm

3. host1 (E5620)

processor : 15
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2393.932
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 10
cpu cores : 4
apicid : 21
initial apicid : 21
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt aes lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid

3. guest cpuinfo
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Westmere E56xx/L56xx/X56xx (Nehalem-C)
stepping : 1
cpu MHz : 2393.932
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc rep_good unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm

4. guest quit with error when boot in 1216 host

Using CPU model "Westmere,enforce"
warning: host cpuid 0000_0001:ecx lacks requested flag 'ssse3' [0x00000200]
warning: host cpuid 0000_0001:ecx lacks requested flag 'sse4.1|sse4_1' [0x00080000]
warning: host cpuid 0000_0001:ecx lacks requested flag 'sse4.2|sse4_2' [0x00100000]
warning: host cpuid 0000_0001:ecx lacks requested flag 'popcnt' [0x00800000]
warning: host cpuid 0000_0001:ecx lacks requested flag 'aes' [0x02000000]
Unable to support requested x86 CPU definition

Comment 8 Miya Chen 2011-02-24 06:26:45 UTC
change status to verified based on comment#7

Comment 9 errata-xmlrpc 2011-05-23 20:32:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0542.html