diff options
| author | Liran Alon <[email protected]> | 2017-11-15 13:43:14 +0200 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2017-12-14 09:26:44 +0100 |
| commit | 52797bf9a875c4a30f846196386684e646e08a91 (patch) | |
| tree | 2343f9d68c7efc9519c7be36e8669d475b100c4f /tools/perf/scripts/python | |
| parent | 431f5d4443964bcc58ac2e4c6fd8ace6dcd3a8d1 (diff) | |
KVM: x86: Add emulation of MSR_SMI_COUNT
This MSR returns the number of #SMIs that occurred on CPU since
boot.
It was seen to be used frequently by ESXi guest.
Patch adds a new vcpu-arch specific var called smi_count to
save the number of #SMIs which occurred on CPU since boot.
It is exposed as a read-only MSR to guest (causing #GP
on wrmsr) in RDMSR/WRMSR emulation code.
MSR_SMI_COUNT is also added to emulated_msrs[] to make sure
user-space can save/restore it for migration purposes.
Signed-off-by: Liran Alon <[email protected]>
Suggested-by: Paolo Bonzini <[email protected]>
Reviewed-by: Nikita Leshenko <[email protected]>
Reviewed-by: Bhavesh Davda <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions