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)
commit7dffecaf4eabb700e7aef3cc6da333517cfc242a
treedfa7ab8bfa30fa948ce0d0fc2494c69eaf9c27eb
parent36385ccc9b185e6958e2911d41202dd0f386298d
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