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
>>> 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;
>>>
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 {
>>
>>> 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;
>
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