Hi Keir, Ian,
Attached is a patch to provide right view of cpuid to the
HVM guests. Some of the CPU features such as APIC, PAE, MTRR, HT are virtualized;
while others are not virtualized yet such as TM1, TM2, MCA and there are some
features which do not need virtualization such as MMX. With the patch Guest
sees only those processor features in the cpuid which are virtualized in the hyper
visor, or do not need any virtualization in hyper visor.
diffstat cpuid_13.patch
arch/x86/hvm/hvm.c | 2
arch/x86/hvm/vmx/vmx.c | 96
+++++++++++++++++++++++++-----------------
include/asm-x86/cpufeature.h | 3 -
include/asm-x86/hvm/domain.h | 1
include/asm-x86/hvm/vmx/cpu.h | 17 +++++++
5 files changed, 81 insertions(+), 38 deletions(-)
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@xxxxxxxxx>
Signed-Off-By: Jun Nakajima <jun.nakajima@xxxxxxxxx>
Signed-Off-By: Asit Mallick <asit.k.mallick@xxxxxxxxx>
Thanks & Regards,
Nitin
-----------------------------------------------------------------------------------
Open Source Technology Center, Intel Corp