Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-07 Thread Roger Pau Monné
On Tue, Jun 07, 2022 at 08:54:15AM +0200, Jan Beulich wrote: > On 06.06.2022 15:27, Andrew Cooper wrote: > > On 26/05/2022 12:11, Roger Pau Monne wrote: > >> diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c > >> index f08a00dcbb..476ab72463 100644 > >> --- a/xen/arch/x86/hvm/vmx

Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-07 Thread Jan Beulich
On 03.06.2022 16:29, Roger Pau Monné wrote: > On Fri, Jun 03, 2022 at 02:16:47PM +0200, Jan Beulich wrote: >> On 26.05.2022 13:11, Roger Pau Monne wrote: >>> Add support for enabling Bus Lock Detection on Intel systems. Such >>> detection works by triggering a vmexit, which ought to be enough of a

Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-06 Thread Jan Beulich
On 06.06.2022 15:27, Andrew Cooper wrote: > On 26/05/2022 12:11, Roger Pau Monne wrote: >> diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c >> index f08a00dcbb..476ab72463 100644 >> --- a/xen/arch/x86/hvm/vmx/vmx.c >> +++ b/xen/arch/x86/hvm/vmx/vmx.c >> @@ -4065,6 +4065,16 @@ vo

Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-06 Thread Andrew Cooper
On 26/05/2022 12:11, Roger Pau Monne wrote: > diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c > index f08a00dcbb..476ab72463 100644 > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -4065,6 +4065,16 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)

Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-03 Thread Roger Pau Monné
On Fri, Jun 03, 2022 at 02:16:47PM +0200, Jan Beulich wrote: > On 26.05.2022 13:11, Roger Pau Monne wrote: > > Add support for enabling Bus Lock Detection on Intel systems. Such > > detection works by triggering a vmexit, which ought to be enough of a > > pause to prevent a guest from abusing of t

Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-03 Thread Jan Beulich
On 26.05.2022 13:11, Roger Pau Monne wrote: > Add support for enabling Bus Lock Detection on Intel systems. Such > detection works by triggering a vmexit, which ought to be enough of a > pause to prevent a guest from abusing of the Bus Lock. > > Add an extra Xen perf counter to track the number o

[PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-05-26 Thread Roger Pau Monne
Add support for enabling Bus Lock Detection on Intel systems. Such detection works by triggering a vmexit, which ought to be enough of a pause to prevent a guest from abusing of the Bus Lock. Add an extra Xen perf counter to track the number of Bus Locks detected. This is done because Bus Locks c