target/i386: Add kvm_get_one_msr helper
authorYang Weijiang <weijiang.yang@intel.com>
Tue, 15 Feb 2022 19:52:53 +0000 (14:52 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 14 May 2022 10:32:41 +0000 (12:32 +0200)
commit5a778a5f820fdd907b95e93560637a61f6ea3c71
tree8bdd3de4515b48ab4e967c10237171dc35c20ae4
parentf06d8a18abc9d29d052f628eefd1d4a86c99fcea
target/i386: Add kvm_get_one_msr helper

When try to get one msr from KVM, I found there's no such kind of
existing interface while kvm_put_one_msr() is there. So here comes
the patch. It'll remove redundant preparation code before finally
call KVM_GET_MSRS IOCTL.

No functional change intended.

Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
Message-Id: <20220215195258.29149-4-weijiang.yang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/kvm.c