]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: report negative values from wrmsr emulation to userspace
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 1 Oct 2020 11:29:52 +0000 (14:29 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 21:36:34 +0000 (17:36 -0400)
commit5363b1d8a8e639490bf2715e5268a6c879a11515
treedfa7ab8bfa30fa948ce0d0fc2494c69eaf9c27eb
parent61fb157c2a366c8ad4c0bb55bce51eafd39d52e2
KVM: x86: report negative values from wrmsr emulation to userspace

This will allow the KVM to report such errors (e.g -ENOMEM)
to the userspace.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20201001112954.6258-3-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c