kvm: x86: use macros to compute bank MSRs
authorChen Yucong <slaoub@gmail.com>
Tue, 23 Sep 2014 02:44:35 +0000 (10:44 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Sep 2014 12:07:56 +0000 (14:07 +0200)
commit81760dccf8d1fe5b128b58736fe3f56a566133cb
treea7026b56a0e800c368c0e2ec6a53aa2fed608030
parentd5262739cbb8a6414ba521a79bf0549717459a09
kvm: x86: use macros to compute bank MSRs

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>
arch/x86/kvm/x86.c