Subject "load of the GDT" On 28/05/2019 11:32, Juergen Gross wrote: > In preparation for core scheduling carve out the GDT related
"for core scheduling, carve" > functionality (writing GDT related PTEs, loading default of full GDT) > into sub-functions. > > Signed-off-by: Juergen Gross <jgr...@suse.com> > Acked-by: Jan Beulich <jbeul...@suse.com> > --- > RFC V2: split off non-refactoring part > V1: constify pointers, use initializers (Jan Beulich) > --- > xen/arch/x86/domain.c | 57 > +++++++++++++++++++++++++++++++-------------------- > 1 file changed, 35 insertions(+), 22 deletions(-) > > diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c > index d3ee699da6..adc06154ee 100644 > --- a/xen/arch/x86/domain.c > +++ b/xen/arch/x86/domain.c > @@ -1626,6 +1626,37 @@ static inline bool need_full_gdt(const struct domain > *d) > return is_pv_domain(d) && !is_idle_domain(d); > } > > +static inline void write_full_gdt_ptes(seg_desc_t *gdt, const struct vcpu *v) We typically don't use inline for local static functions. All can be fixed on commit. Acked-by: Andrew Cooper <andrew.coop...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel