Re: [PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-22 Thread Chenyi Qiang
On 4/21/2021 11:18 PM, Eduardo Habkost wrote: On Wed, Apr 21, 2021 at 10:50:10PM +0800, Xiaoyao Li wrote: On 4/21/2021 10:12 PM, Eduardo Habkost wrote: On Wed, Apr 21, 2021 at 02:26:42PM +0800, Chenyi Qiang wrote: Hi, Eduardo, thanks for your comments! On 4/21/2021 12:34 AM, Eduardo Habko

Re: [PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-21 Thread Xiaoyao Li
On 4/21/2021 11:18 PM, Eduardo Habkost wrote: On Wed, Apr 21, 2021 at 10:50:10PM +0800, Xiaoyao Li wrote: On 4/21/2021 10:12 PM, Eduardo Habkost wrote: On Wed, Apr 21, 2021 at 02:26:42PM +0800, Chenyi Qiang wrote: Hi, Eduardo, thanks for your comments! On 4/21/2021 12:34 AM, Eduardo Habkost

Re: [PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-21 Thread Eduardo Habkost
On Wed, Apr 21, 2021 at 10:50:10PM +0800, Xiaoyao Li wrote: > On 4/21/2021 10:12 PM, Eduardo Habkost wrote: > > On Wed, Apr 21, 2021 at 02:26:42PM +0800, Chenyi Qiang wrote: > > > Hi, Eduardo, thanks for your comments! > > > > > > > > > On 4/21/2021 12:34 AM, Eduardo Habkost wrote: > > > > Hello,

Re: [PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-21 Thread Xiaoyao Li
On 4/21/2021 10:12 PM, Eduardo Habkost wrote: On Wed, Apr 21, 2021 at 02:26:42PM +0800, Chenyi Qiang wrote: Hi, Eduardo, thanks for your comments! On 4/21/2021 12:34 AM, Eduardo Habkost wrote: Hello, Thanks for the patch. Comments below: On Tue, Apr 20, 2021 at 05:37:36PM +0800, Chenyi Qia

Re: [PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-21 Thread Eduardo Habkost
On Wed, Apr 21, 2021 at 02:26:42PM +0800, Chenyi Qiang wrote: > Hi, Eduardo, thanks for your comments! > > > On 4/21/2021 12:34 AM, Eduardo Habkost wrote: > > Hello, > > > > Thanks for the patch. Comments below: > > > > On Tue, Apr 20, 2021 at 05:37:36PM +0800, Chenyi Qiang wrote: > > > Virtua

Re: [PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-20 Thread Chenyi Qiang
Hi, Eduardo, thanks for your comments! On 4/21/2021 12:34 AM, Eduardo Habkost wrote: Hello, Thanks for the patch. Comments below: On Tue, Apr 20, 2021 at 05:37:36PM +0800, Chenyi Qiang wrote: Virtual Machines can exploit bus locks to degrade the performance of system. To address this kind o

Re: [PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-20 Thread Eduardo Habkost
Hello, Thanks for the patch. Comments below: On Tue, Apr 20, 2021 at 05:37:36PM +0800, Chenyi Qiang wrote: > Virtual Machines can exploit bus locks to degrade the performance of > system. To address this kind of performance DOS attack, bus lock VM exit > is introduced in KVM and it will report t

[PATCH v2] i386: Add ratelimit for bus locks acquired in guest

2021-04-20 Thread Chenyi Qiang
Virtual Machines can exploit bus locks to degrade the performance of system. To address this kind of performance DOS attack, bus lock VM exit is introduced in KVM and it will report the bus locks detected in guest, which can help userspace to enforce throttling policies. The availability of bus lo