Re: [Xen-devel] [PATCH v2 4/9] x86/vmx: Support remote access to the MSR lists
>>> On 08.06.18 at 20:48, wrote: > At the moment, all modifications of the MSR lists are in current context. > However, future changes may need to put MSR_EFER into the lists from domctl > hypercall context. > > Plumb a struct vcpu parameter down through the infrastructure, and use > vmx_vmcs_{enter,exit}() for safe access to the VMCS in vmx_add_msr(). Use > assertions to ensure that access is either in current context, or while the > vcpu is paused. > > Note these expectations beside the fields in arch_vmx_struct, and reorder the > fields to avoid unnecessary padding. > > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH v2 4/9] x86/vmx: Support remote access to the MSR lists
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Saturday, June 9, 2018 2:49 AM > > At the moment, all modifications of the MSR lists are in current context. > However, future changes may need to put MSR_EFER into the lists from > domctl > hypercall context. > > Plumb a struct vcpu parameter down through the infrastructure, and use > vmx_vmcs_{enter,exit}() for safe access to the VMCS in vmx_add_msr(). > Use > assertions to ensure that access is either in current context, or while the > vcpu is paused. > > Note these expectations beside the fields in arch_vmx_struct, and reorder > the > fields to avoid unnecessary padding. > > Signed-off-by: Andrew Cooper Acked-by: Kevin Tian ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel