Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-10-03 Thread Zhenzhong Duan
On 2019/10/3 0:47, Sean Christopherson wrote: On Tue, Oct 01, 2019 at 05:47:00PM +0800, Zhenzhong Duan wrote: On 2019/10/1 16:39, Vitaly Kuznetsov wrote: Zhenzhong Duan writes: On 2019/9/30 23:41, Vitaly Kuznetsov wrote: Zhenzhong Duan writes: There are cases where a guest tries to

Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-10-02 Thread Sean Christopherson
On Tue, Oct 01, 2019 at 05:47:00PM +0800, Zhenzhong Duan wrote: > > On 2019/10/1 16:39, Vitaly Kuznetsov wrote: > >Zhenzhong Duan writes: > > > >>On 2019/9/30 23:41, Vitaly Kuznetsov wrote: > >>>Zhenzhong Duan writes: > >>> > There are cases where a guest tries to switch spinlocks to bare

Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-10-01 Thread Zhenzhong Duan
On 2019/10/1 16:39, Vitaly Kuznetsov wrote: Zhenzhong Duan writes: On 2019/9/30 23:41, Vitaly Kuznetsov wrote: Zhenzhong Duan writes: There are cases where a guest tries to switch spinlocks to bare metal behavior (e.g. by setting "xen_nopvspin" on XEN platform and "hv_nopvspin" on

Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-10-01 Thread Vitaly Kuznetsov
Zhenzhong Duan writes: > On 2019/9/30 23:41, Vitaly Kuznetsov wrote: >> Zhenzhong Duan writes: >> >>> There are cases where a guest tries to switch spinlocks to bare metal >>> behavior (e.g. by setting "xen_nopvspin" on XEN platform and >>> "hv_nopvspin" on HYPER_V). >>> >>> That feature is

Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-09-30 Thread Zhenzhong Duan
On 2019/9/30 23:41, Vitaly Kuznetsov wrote: Zhenzhong Duan writes: There are cases where a guest tries to switch spinlocks to bare metal behavior (e.g. by setting "xen_nopvspin" on XEN platform and "hv_nopvspin" on HYPER_V). That feature is missed on KVM, add a new parameter "nopvspin" to

Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-09-30 Thread Vitaly Kuznetsov
Zhenzhong Duan writes: > There are cases where a guest tries to switch spinlocks to bare metal > behavior (e.g. by setting "xen_nopvspin" on XEN platform and > "hv_nopvspin" on HYPER_V). > > That feature is missed on KVM, add a new parameter "nopvspin" to disable > PV spinlocks for KVM guest. >

[PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-09-30 Thread Zhenzhong Duan
There are cases where a guest tries to switch spinlocks to bare metal behavior (e.g. by setting "xen_nopvspin" on XEN platform and "hv_nopvspin" on HYPER_V). That feature is missed on KVM, add a new parameter "nopvspin" to disable PV spinlocks for KVM guest. This new parameter is also intended