kvm: nested: Introduce read_and_check_msr_entry()
authorAaron Lewis <aaronlewis@google.com>
Fri, 8 Nov 2019 05:14:36 +0000 (21:14 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Nov 2019 10:44:18 +0000 (11:44 +0100)
commit365d3d55d6019233c02d68dbd3d2dfde1b8a1467
tree9eeacd4523175a6bbcf6aef6536b77f3e4ddb2be
parentd4069dbeb51e34e1db0458a7455e509daaaa529a
kvm: nested: Introduce read_and_check_msr_entry()

Add the function read_and_check_msr_entry() which just pulls some code
out of nested_vmx_store_msr().  This will be useful as reusable code in
upcoming patches.

Reviewed-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c