commit | f7bfb57b3e89ff89c0da9f93dedab89f68d6ca27 | [log] [tgz] |
---|---|---|
author | Xiao Guangrong <guangrong.xiao@linux.intel.com> | Mon Jun 15 16:55:32 2015 +0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jun 19 17:16:28 2015 +0200 |
tree | a27ab306e80b1d48705a61335122f4aa30175324 | |
parent | 19efffa244071ccd0385b240d03adb38feaab04e [diff] |
KVM: MTRR: introduce fixed_mtrr_addr_* functions Two functions are introduced: - fixed_mtrr_addr_to_seg() translates the address to the fixed MTRR segment - fixed_mtrr_addr_seg_to_range_index() translates the address to the index of kvm_mtrr.fixed_ranges[] They will be used in the later patch Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> [Adjust for range_size->range_shift change. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>