commit | 528bb39449961c9177b540931a1e39fb6c427707 | [log] [tgz] |
---|---|---|
author | Chen Yucong <slaoub@gmail.com> | Tue Sep 23 10:44:35 2014 +0800 |
committer | Ben Hutchings <ben@decadent.org.uk> | Fri May 22 21:19:38 2020 +0100 |
tree | 8e7edeeaec6357eda409f97b9aa9ce071e60c1be | |
parent | 64c977f360f25b60c25fce462d8634386935e796 [diff] |
kvm: x86: use macros to compute bank MSRs commit 81760dccf8d1fe5b128b58736fe3f56a566133cb upstream. Avoid open coded calculations for bank MSRs by using well-defined macros that hide the index of higher bank MSRs. No semantic changes. Signed-off-by: Chen Yucong <slaoub@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>