>>> On 17.02.17 at 16:42, wrote:
> --- a/xen/arch/x86/hvm/vmx/vmcs.c
> +++ b/xen/arch/x86/hvm/vmx/vmcs.c
> @@ -1347,17 +1347,12 @@ struct vmx_msr_entry *vmx_find_msr(u32 msr, int type)
>
> int vmx_read_guest_msr(u32 msr, u64 *val)
> {
> -struct vcpu *curr = current;
> -unsigned int i,
> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com]
> Sent: Friday, February 17, 2017 11:43 PM
>
> Replace linear scan with vmx_find_msr(). This way the time complexity
> of searching for required MSR reduces from linear to logarithmic.
>
> Signed-off-by: Sergey Dyasli
Acked-by: Kevin Tian
Replace linear scan with vmx_find_msr(). This way the time complexity
of searching for required MSR reduces from linear to logarithmic.
Signed-off-by: Sergey Dyasli
---
v1 --> v2:
- a new patch, factored out from v1 1/2
xen/arch/x86/hvm/vmx/vmcs.c | 26 --
1 file change