]> 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)
commit7de70fbc2c96ef74ea7ba8abc0b99344bb97972c
treedfa7ab8bfa30fa948ce0d0fc2494c69eaf9c27eb
parentdc8949df4859e5472c0327f78051c21f8430b4c1
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