]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Return -ENOENT on unimplemented MSRs
authorAlexander Graf <graf@amazon.com>
Fri, 25 Sep 2020 14:34:15 +0000 (16:34 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:58:02 +0000 (07:58 -0400)
commit93a2fe3df6ec77272fe8267f5c62b7af5ad24614
tree93c5553aecae9834ca4d09add776e6a880b4fea2
parentf0e5c89fdf59f8985e699e463caf8620fbbd0b37
KVM: x86: Return -ENOENT on unimplemented MSRs

When we find an MSR that we can not handle, bubble up that error code as
MSR error return code. Follow up patches will use that to expose the fact
that an MSR is not handled by KVM to user space.

Suggested-by: Aaron Lewis <aaronlewis@google.com>
Signed-off-by: Alexander Graf <graf@amazon.com>
Message-Id: <20200925143422.21718-2-graf@amazon.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c