aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorTao Xu <[email protected]>2019-07-16 14:55:50 +0800
committerPaolo Bonzini <[email protected]>2019-09-24 14:34:36 +0200
commit6e3ba4abcea5681eebbfc10f1b56c9fbe80b6685 (patch)
tree98719f3f207dfe3d8ef0b8125c56b6ea2dca02de /lib/mpi
parente69e72faa3a0709dd23df6a4ca060a15e99168a1 (diff)
KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL
UMWAIT and TPAUSE instructions use 32bit IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch emulates MSR IA32_UMWAIT_CONTROL in guest and differentiate IA32_UMWAIT_CONTROL between host and guest. The variable mwait_control_cached in arch/x86/kernel/cpu/umwait.c caches the MSR value, so this patch uses it to avoid frequently rdmsr of IA32_UMWAIT_CONTROL. Co-developed-by: Jingqi Liu <[email protected]> Signed-off-by: Jingqi Liu <[email protected]> Signed-off-by: Tao Xu <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions