[PATCH v6 2/4] KVM: x86: report negative values from wrmsr emulation to userspace

2020-09-22 Thread Maxim Levitsky
This will allow the KVM to report such errors (e.g -ENOMEM) to the userspace. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/emulate.c | 7 +-- arch/x86/kvm/x86.c | 6 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c i

Re: [PATCH v6 2/4] KVM: x86: report negative values from wrmsr emulation to userspace

2020-10-27 Thread Qian Cai
On Mon, 2020-10-26 at 15:40 -0400, Qian Cai wrote: > On Wed, 2020-09-23 at 00:10 +0300, Maxim Levitsky wrote: > > This will allow the KVM to report such errors (e.g -ENOMEM) > > to the userspace. > > > > Signed-off-by: Maxim Levitsky > > Reverting this and its dependency: > > 72f211ecaa80 KVM:

Re: [PATCH v6 2/4] KVM: x86: report negative values from wrmsr emulation to userspace

2020-10-26 Thread Qian Cai
On Wed, 2020-09-23 at 00:10 +0300, Maxim Levitsky wrote: > This will allow the KVM to report such errors (e.g -ENOMEM) > to the userspace. > > Signed-off-by: Maxim Levitsky Reverting this and its dependency: 72f211ecaa80 KVM: x86: allow kvm_x86_ops.set_efer to return an error value on the top

Re: [PATCH v6 2/4] KVM: x86: report negative values from wrmsr emulation to userspace

2020-10-28 Thread Maxim Levitsky
On Tue, 2020-10-27 at 16:31 -0400, Qian Cai wrote: > On Mon, 2020-10-26 at 15:40 -0400, Qian Cai wrote: > > On Wed, 2020-09-23 at 00:10 +0300, Maxim Levitsky wrote: > > > This will allow the KVM to report such errors (e.g -ENOMEM) > > > to the userspace. > > > > > > Signed-off-by: Maxim Levitsky