From: Paolo Bonzini Date: Thu, 28 Mar 2013 16:18:35 +0000 (+0100) Subject: pmu: prepare for migration support X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~32^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afd80d85aefac27e6e2f9dc10f60515357c504d2;p=pandora-kernel.git 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 Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed