Re: [Xen-devel] [PATCH 4/5] xen/vm_event: Deny MSR writes if refused by vm_event reply

2015-05-11 Thread Razvan Cojocaru
On 05/11/2015 10:03 AM, Jan Beulich wrote: On 08.05.15 at 19:05, wrote: >> On 05/08/2015 07:23 PM, Jan Beulich wrote: >> On 06.05.15 at 19:12, wrote: --- a/xen/include/asm-x86/domain.h +++ b/xen/include/asm-x86/domain.h @@ -518,6 +518,11 @@ struct arch_vcpu s

Re: [Xen-devel] [PATCH 4/5] xen/vm_event: Deny MSR writes if refused by vm_event reply

2015-05-11 Thread Jan Beulich
>>> On 08.05.15 at 19:05, wrote: > On 05/08/2015 07:23 PM, Jan Beulich wrote: > On 06.05.15 at 19:12, wrote: >>> --- a/xen/include/asm-x86/domain.h >>> +++ b/xen/include/asm-x86/domain.h >>> @@ -518,6 +518,11 @@ struct arch_vcpu >>> struct vm_event_emul_read_data emul_read_data; >>>

Re: [Xen-devel] [PATCH 4/5] xen/vm_event: Deny MSR writes if refused by vm_event reply

2015-05-08 Thread Razvan Cojocaru
On 05/08/2015 07:23 PM, Jan Beulich wrote: On 06.05.15 at 19:12, wrote: >> --- a/xen/include/asm-x86/domain.h >> +++ b/xen/include/asm-x86/domain.h >> @@ -518,6 +518,11 @@ struct arch_vcpu >> struct vm_event_emul_read_data emul_read_data; >> } vm_event; >> >> +struct { >>

Re: [Xen-devel] [PATCH 4/5] xen/vm_event: Deny MSR writes if refused by vm_event reply

2015-05-08 Thread Jan Beulich
>>> On 06.05.15 at 19:12, wrote: > --- a/xen/include/asm-x86/domain.h > +++ b/xen/include/asm-x86/domain.h > @@ -518,6 +518,11 @@ struct arch_vcpu > struct vm_event_emul_read_data emul_read_data; > } vm_event; > > +struct { > +bool_t do_write; > +uint64_t msr; >

[Xen-devel] [PATCH 4/5] xen/vm_event: Deny MSR writes if refused by vm_event reply

2015-05-06 Thread Razvan Cojocaru
Deny MSR writes if a vm_client subscribed to mov_to_msr events forbids them. Signed-off-by: Razvan Cojocaru --- xen/arch/x86/hvm/emulate.c|2 +- xen/arch/x86/hvm/hvm.c| 24 ++-- xen/arch/x86/hvm/svm/svm.c|2 +- xen/arch/x86/hvm/vmx/vmx.c