i386/kvm: use a switch statement for MSR detection
commit1d268dece4991915c0dd0f882248cbcb22ae8ffc
authorLadi Prosek <lprosek@redhat.com>
Mon, 7 Aug 2017 08:57:00 +0000 (7 10:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Sep 2017 12:09:33 +0000 (19 14:09 +0200)
treeed479555d4b06bdcfd22c1d0254db1c4ee88a9b5
parent7a5bd53d09b1fb42376388ee703dc81be6994baa
i386/kvm: use a switch statement for MSR detection

Switch is easier on the eye and might lead to better codegen.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170807085703.32267-2-lprosek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c