diff options
author | Sean Christopherson <[email protected]> | 2023-05-11 16:33:51 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-06-01 13:41:06 -0700 |
commit | dee321977a230802a5065af4ad4f4f5e8558a738 (patch) | |
tree | f8729cd9aa8796f138a94b65eb7f4f9cea5df318 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 3a5f49078eb5106f9b918066908508c3044b5ada (diff) |
KVM: x86: Move common handling of PAT MSR writes to kvm_set_msr_common()
Move the common check-and-set handling of PAT MSR writes out of vendor
code and into kvm_set_msr_common(). This aligns writes with reads, which
are already handled in common code, i.e. makes the handling of reads and
writes symmetrical in common code.
Alternatively, the common handling in kvm_get_msr_common() could be moved
to vendor code, but duplicating code is generally undesirable (even though
the duplicatated code is trivial in this case), and guest writes to PAT
should be rare, i.e. the overhead of the extra function call is a
non-issue in practice.
Suggested-by: Kai Huang <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions