[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 3/7] x86/paging: add TLB flush hooks
On Mon, Jan 27, 2020 at 07:11:11PM +0100, Roger Pau Monne wrote: [...] > > diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c > index 26798b317c..dfe264cf83 100644 > --- a/xen/arch/x86/mm/shadow/multi.c > +++ b/xen/arch/x86/mm/shadow/multi.c > @@ -4157,7 +4157,6 @@ sh_update_cr3(struct vcpu *v, int do_locking, bool > noflush) > if ( do_locking ) paging_unlock(v->domain); > } > > - Stray change. > /**************************************************************************/ > /* Functions to revoke guest rights */ > > diff --git a/xen/include/asm-x86/hap.h b/xen/include/asm-x86/hap.h > index b94bfb4ed0..0c6aa26b9b 100644 > --- a/xen/include/asm-x86/hap.h > +++ b/xen/include/asm-x86/hap.h > @@ -46,6 +46,9 @@ int hap_track_dirty_vram(struct domain *d, > extern const struct paging_mode *hap_paging_get_mode(struct vcpu *); > int hap_set_allocation(struct domain *d, unsigned int pages, bool > *preempted); > > +bool hap_flush_tlb(bool (*flush_vcpu)(void *ctxt, struct vcpu *v), > + void *ctxt); > + > #endif /* XEN_HAP_H */ > > /* > diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h > index 907c71f497..3c1f6df478 100644 > --- a/xen/include/asm-x86/shadow.h > +++ b/xen/include/asm-x86/shadow.h > @@ -95,6 +95,10 @@ void shadow_blow_tables_per_domain(struct domain *d); > int shadow_set_allocation(struct domain *d, unsigned int pages, > bool *preempted); > > +/* Flush the TLB of the selected vCPUs. */ > +bool shadow_flush_tlb(bool (*flush_vcpu)(void *ctxt, struct vcpu *v), > + void *ctxt); > + > #else /* !CONFIG_SHADOW_PAGING */ > > #define shadow_teardown(d, p) ASSERT(is_pv_domain(d)) > @@ -106,6 +110,14 @@ int shadow_set_allocation(struct domain *d, unsigned int > pages, > #define shadow_set_allocation(d, pages, preempted) \ > ({ ASSERT_UNREACHABLE(); -EOPNOTSUPP; }) > > +static inline bool shadow_flush_tlb(bool (*flush_vcpu)(void *ctxt, > + struct vcpu *v), > + void *ctxt) > +{ > + ASSERT_UNREACHABLE(); > + return -EOPNOTSUPP; This function needs to return true/false per its signature. With this fixed: Reviewed-by: Wei Liu <wl@xxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |