Re: [PATCH v4 05/10] common/domain: allocate vmtrace_pt_buffer

2020-07-01 Thread Julien Grall
Hi, On 30/06/2020 13:33, Michał Leszczyński wrote: +static int vmtrace_alloc_buffers(struct vcpu *v) +{ +struct page_info *pg; +uint64_t size = v->domain->vmtrace_pt_size; + +if ( size < PAGE_SIZE || size > GB(4) || (size & (size - 1)) ) +{ +/* + * We don't accept

Re: [PATCH v4 05/10] common/domain: allocate vmtrace_pt_buffer

2020-07-01 Thread Roger Pau Monné
On Tue, Jun 30, 2020 at 02:33:48PM +0200, Michał Leszczyński wrote: > From: Michal Leszczynski > > Allocate processor trace buffer for each vCPU when the domain > is created, deallocate trace buffers on domain destruction. > > Signed-off-by: Michal Leszczynski > --- > xen/arch/x86/domain.c

[PATCH v4 05/10] common/domain: allocate vmtrace_pt_buffer

2020-06-30 Thread Michał Leszczyński
From: Michal Leszczynski Allocate processor trace buffer for each vCPU when the domain is created, deallocate trace buffers on domain destruction. Signed-off-by: Michal Leszczynski --- xen/arch/x86/domain.c| 11 +++ xen/common/domain.c | 32