Re: [Xen-devel] [PATCH v4 1/3] x86/hypervisor: pass flags to hypervisor_flush_tlb

2020-03-10 Thread Wei Liu
On Tue, Mar 10, 2020 at 10:58:09AM +0100, Jan Beulich wrote: > On 09.03.2020 18:25, Wei Liu wrote: > > On Mon, Mar 09, 2020 at 05:38:12PM +0100, Jan Beulich wrote: > >> On 19.02.2020 12:44, Wei Liu wrote: > >>> --- a/xen/include/asm-x86/flushtlb.h > >>> +++ b/xen/include/asm-x86/flushtlb.h > >>> @@

Re: [Xen-devel] [PATCH v4 1/3] x86/hypervisor: pass flags to hypervisor_flush_tlb

2020-03-10 Thread Jan Beulich
On 09.03.2020 18:25, Wei Liu wrote: > On Mon, Mar 09, 2020 at 05:38:12PM +0100, Jan Beulich wrote: >> On 19.02.2020 12:44, Wei Liu wrote: >>> --- a/xen/include/asm-x86/flushtlb.h >>> +++ b/xen/include/asm-x86/flushtlb.h >>> @@ -123,6 +123,9 @@ void switch_cr3_cr4(unsigned long cr3, unsigned long >

Re: [Xen-devel] [PATCH v4 1/3] x86/hypervisor: pass flags to hypervisor_flush_tlb

2020-03-09 Thread Wei Liu
On Mon, Mar 09, 2020 at 05:38:12PM +0100, Jan Beulich wrote: > On 19.02.2020 12:44, Wei Liu wrote: > > --- a/xen/include/asm-x86/flushtlb.h > > +++ b/xen/include/asm-x86/flushtlb.h > > @@ -123,6 +123,9 @@ void switch_cr3_cr4(unsigned long cr3, unsigned long > > cr4); > > /* Flush all HVM guests

Re: [Xen-devel] [PATCH v4 1/3] x86/hypervisor: pass flags to hypervisor_flush_tlb

2020-03-09 Thread Jan Beulich
On 19.02.2020 12:44, Wei Liu wrote: > --- a/xen/include/asm-x86/flushtlb.h > +++ b/xen/include/asm-x86/flushtlb.h > @@ -123,6 +123,9 @@ void switch_cr3_cr4(unsigned long cr3, unsigned long cr4); > /* Flush all HVM guests linear TLB (using ASID/VPID) */ > #define FLUSH_GUESTS_TLB 0x4000 > > +#d

[Xen-devel] [PATCH v4 1/3] x86/hypervisor: pass flags to hypervisor_flush_tlb

2020-02-19 Thread Wei Liu
Hyper-V's L0 assisted flush has fine-grained control over what gets flushed. We need all the flags available to make the best decisions possible. No functional change because Xen's implementation doesn't care about what is passed to it. Signed-off-by: Wei Liu Reviewed-by: Roger Pau Monné Review