]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: add feature flags for CPUID[EAX=0xd,ECX=1]
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Nov 2014 14:54:43 +0000 (15:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Dec 2014 11:21:01 +0000 (12:21 +0100)
commit0bb0b2d2fe7f645ddaf1f0ff40ac669c9feb4aa1
tree49b189c9f4607639b1cf102871b38c56bbddd452
parente9af2fef242ce92f86d3d5c1a94c3199ff1e24c9
target-i386: add feature flags for CPUID[EAX=0xd,ECX=1]

These represent xsave-related capabilities of the processor, and KVM may
or may not support them.

Add feature bits so that they are considered by "-cpu ...,enforce", and use
the new feature work instead of calling kvm_arch_get_supported_cpuid.

Bit 3 (XSAVES) is not migratables because it requires saving MSR_IA32_XSS.
Neither KVM nor any commonly available hardware supports it anyway.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/cpu.c
target-i386/cpu.h