Re: [PATCH v2] x86/paravirt: Disable virt spinlock on bare metal

2024-06-19 Thread Chen Yu
On 2024-06-19 at 18:34:34 +0300, Nikolay Borisov wrote: > > > On 19.06.24 г. 18:25 ч., Chen Yu wrote: > > Hi Nikolay, > > > > On 2024-06-18 at 11:24:42 +0300, Nikolay Borisov wrote: > > > > > > > > > On 26.05.24 г. 4:58 ч., Chen Yu wrote: > > > > The kernel can change spinlock behavior when

Re: [PATCH v2] x86/paravirt: Disable virt spinlock on bare metal

2024-06-19 Thread Nikolay Borisov
On 19.06.24 г. 18:25 ч., Chen Yu wrote: Hi Nikolay, On 2024-06-18 at 11:24:42 +0300, Nikolay Borisov wrote: On 26.05.24 г. 4:58 ч., Chen Yu wrote: The kernel can change spinlock behavior when running as a guest. But this guest-friendly behavior causes performance problems on bare metal.

Re: [PATCH v2] x86/paravirt: Disable virt spinlock on bare metal

2024-06-19 Thread Chen Yu
Hi Nikolay, On 2024-06-18 at 11:24:42 +0300, Nikolay Borisov wrote: > > > On 26.05.24 г. 4:58 ч., Chen Yu wrote: > > The kernel can change spinlock behavior when running as a guest. But > > this guest-friendly behavior causes performance problems on bare metal. > > So there's a

Re: [PATCH v2] x86/paravirt: Disable virt spinlock on bare metal

2024-06-18 Thread Nikolay Borisov
On 26.05.24 г. 4:58 ч., Chen Yu wrote: The kernel can change spinlock behavior when running as a guest. But this guest-friendly behavior causes performance problems on bare metal. So there's a 'virt_spin_lock_key' static key to switch between the two modes. The static key is always enabled

Re: [PATCH v2] x86/paravirt: Disable virt spinlock on bare metal

2024-06-17 Thread Chen Yu
Hello, On 2024-05-26 at 09:58:47 +0800, Chen Yu wrote: > The kernel can change spinlock behavior when running as a guest. But > this guest-friendly behavior causes performance problems on bare metal. > So there's a 'virt_spin_lock_key' static key to switch between the two > modes. > > The static

[PATCH v2] x86/paravirt: Disable virt spinlock on bare metal

2024-05-25 Thread Chen Yu
The kernel can change spinlock behavior when running as a guest. But this guest-friendly behavior causes performance problems on bare metal. So there's a 'virt_spin_lock_key' static key to switch between the two modes. The static key is always enabled by default (run in guest mode) and should be