Skip to content
Commit 528bb394 authored by Chen Yucong's avatar Chen Yucong Committed by Ben Hutchings
Browse files

kvm: x86: use macros to compute bank MSRs

commit 81760dcc

 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: default avatarChen Yucong <slaoub@gmail.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 64c977f3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment