diff options
author | 2013-03-28 17:18:35 +0100 | |
---|---|---|
committer | 2013-04-02 17:42:44 +0300 | |
commit | afd80d85aefac27e6e2f9dc10f60515357c504d2 (patch) | |
tree | f9c59ac17a12e113d9eff004e3bdae40ea995f35 /drivers/s390/kvm | |
parent | KVM: s390: Enable KVM_CAP_NR_MEMSLOTS on s390 (diff) | |
download | linux-dev-afd80d85aefac27e6e2f9dc10f60515357c504d2.tar.xz linux-dev-afd80d85aefac27e6e2f9dc10f60515357c504d2.zip |
pmu: prepare for migration support
In order to migrate the PMU state correctly, we need to restore the
values of MSR_CORE_PERF_GLOBAL_STATUS (a read-only register) and
MSR_CORE_PERF_GLOBAL_OVF_CTRL (which has side effects when written).
We also need to write the full 40-bit value of the performance counter,
which would only be possible with a v3 architectural PMU's full-width
counter MSRs.
To distinguish host-initiated writes from the guest's, pass the
full struct msr_data to kvm_pmu_set_msr.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'drivers/s390/kvm')
0 files changed, 0 insertions, 0 deletions