Re: [PATCH v7 02/10] xen/domain: Add vmtrace_frames domain creation parameter

2021-01-29 Thread Jan Beulich
On 25.01.2021 16:08, Jan Beulich wrote: > On 21.01.2021 22:27, Andrew Cooper wrote: >> --- a/xen/common/domain.c >> +++ b/xen/common/domain.c >> @@ -132,6 +132,48 @@ static void vcpu_info_reset(struct vcpu *v) >> v->vcpu_info_mfn = INVALID_MFN; >> } >> >> +static void

Re: [PATCH v7 02/10] xen/domain: Add vmtrace_frames domain creation parameter

2021-01-26 Thread Jan Beulich
On 25.01.2021 18:17, Andrew Cooper wrote: > On 25/01/2021 15:08, Jan Beulich wrote: >> On 21.01.2021 22:27, Andrew Cooper wrote: >>> --- a/xen/include/xen/sched.h >>> +++ b/xen/include/xen/sched.h >>> @@ -257,6 +257,10 @@ struct vcpu >>> /* vPCI per-vCPU area, used to store data for long

Re: [PATCH v7 02/10] xen/domain: Add vmtrace_frames domain creation parameter

2021-01-25 Thread Andrew Cooper
On 25/01/2021 15:08, Jan Beulich wrote: > On 21.01.2021 22:27, Andrew Cooper wrote: >> --- a/xen/common/domain.c >> +++ b/xen/common/domain.c >> @@ -132,6 +132,48 @@ static void vcpu_info_reset(struct vcpu *v) >> v->vcpu_info_mfn = INVALID_MFN; >> } >> >> +static void

Re: [PATCH v7 02/10] xen/domain: Add vmtrace_frames domain creation parameter

2021-01-25 Thread Jan Beulich
On 21.01.2021 22:27, Andrew Cooper wrote: > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -132,6 +132,48 @@ static void vcpu_info_reset(struct vcpu *v) > v->vcpu_info_mfn = INVALID_MFN; > } > > +static void vmtrace_free_buffer(struct vcpu *v) > +{ > +const struct domain *d

[PATCH v7 02/10] xen/domain: Add vmtrace_frames domain creation parameter

2021-01-21 Thread Andrew Cooper
From: Michał Leszczyński To use vmtrace, buffers of a suitable size need allocating, and different tasks will want different sizes. Add a domain creation parameter, and audit it appropriately in the {arch_,}sanitise_domain_config() functions. For now, the x86 specific auditing is tuned to