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

2020-09-22 Thread Maxim Levitsky
On Mon, 2020-09-21 at 09:08 -0700, Sean Christopherson wrote: > On Mon, Sep 21, 2020 at 04:19:21PM +0300, Maxim Levitsky wrote: > > This will allow us to make some MSR writes fatal to the guest > > (e.g when out of memory condition occurs) > > > > Signed-off-by: Maxim Levitsky > > --- > >

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

2020-09-21 Thread Sean Christopherson
On Mon, Sep 21, 2020 at 04:19:21PM +0300, Maxim Levitsky wrote: > This will allow us to make some MSR writes fatal to the guest > (e.g when out of memory condition occurs) > > Signed-off-by: Maxim Levitsky > --- > arch/x86/kvm/emulate.c | 7 +-- > arch/x86/kvm/x86.c | 5 +++-- > 2 files

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

2020-09-21 Thread Maxim Levitsky
This will allow us to make some MSR writes fatal to the guest (e.g when out of memory condition occurs) Signed-off-by: Maxim Levitsky --- arch/x86/kvm/emulate.c | 7 +-- arch/x86/kvm/x86.c | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/emulate.c