Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-12-05 Thread Nadav Amit
Radim Krčmář wrote: > 2017-11-29 01:31-0800, Wanpeng Li: >> From: Wanpeng Li >> >> MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored >> each time during world switch. Jim from Google pointed out that >> when running schbench in L2,

Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-12-05 Thread Nadav Amit
Radim Krčmář wrote: > 2017-11-29 01:31-0800, Wanpeng Li: >> From: Wanpeng Li >> >> MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored >> each time during world switch. Jim from Google pointed out that >> when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, >>

Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-12-05 Thread Radim Krčmář
2017-11-29 01:31-0800, Wanpeng Li: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim from Google pointed out that > when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, > and the

Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-12-05 Thread Radim Krčmář
2017-11-29 01:31-0800, Wanpeng Li: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim from Google pointed out that > when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, > and the 25% of vmx_vcpu_run cpu

Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread David Hildenbrand
On 29.11.2017 10:31, Wanpeng Li wrote: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim from Google pointed out that > when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, > and

Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread David Hildenbrand
On 29.11.2017 10:31, Wanpeng Li wrote: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim from Google pointed out that > when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, > and the 25% of vmx_vcpu_run

Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Jim Mattson
Thanks for doing this! Reviewed-by: Jim Mattson On Wed, Nov 29, 2017 at 1:31 AM, Wanpeng Li wrote: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim

Re: [PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Jim Mattson
Thanks for doing this! Reviewed-by: Jim Mattson On Wed, Nov 29, 2017 at 1:31 AM, Wanpeng Li wrote: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim from Google pointed out that > when running schbench in L2,

[PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Wanpeng Li
From: Wanpeng Li MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored each time during world switch. Jim from Google pointed out that when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, and the 25% of vmx_vcpu_run cpu time is occupied by

[PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Wanpeng Li
From: Wanpeng Li MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored each time during world switch. Jim from Google pointed out that when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, and the 25% of vmx_vcpu_run cpu time is occupied by get_debugctlmsr(). This