kvm: x86: use macros to compute bank MSRs
authorChen Yucong <slaoub@gmail.com>
Tue, 23 Sep 2014 02:44:35 +0000 (10:44 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 May 2020 20:19:38 +0000 (21:19 +0100)
commit528bb39449961c9177b540931a1e39fb6c427707
tree8e7edeeaec6357eda409f97b9aa9ce071e60c1be
parent64c977f360f25b60c25fce462d8634386935e796
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>
arch/x86/kvm/x86.c