Re: [Xen-devel] [PATCH 4/4] x86/hyperv: L0 assisted TLB flush

2020-02-14 Thread Wei Liu
On Thu, Feb 13, 2020 at 01:41:27PM +0100, Roger Pau Monné wrote: > On Thu, Feb 13, 2020 at 12:20:33PM +, Wei Liu wrote: > > On Wed, Feb 12, 2020 at 06:43:47PM +0100, Roger Pau Monné wrote: > > > On Wed, Feb 12, 2020 at 04:09:18PM +, Wei Liu wrote: > > > > +static uint64_t flush_tlb_ex(const

Re: [Xen-devel] [PATCH 4/4] x86/hyperv: L0 assisted TLB flush

2020-02-13 Thread Roger Pau Monné
On Thu, Feb 13, 2020 at 12:20:33PM +, Wei Liu wrote: > On Wed, Feb 12, 2020 at 06:43:47PM +0100, Roger Pau Monné wrote: > > On Wed, Feb 12, 2020 at 04:09:18PM +, Wei Liu wrote: > > > +static uint64_t flush_tlb_ex(const cpumask_t *mask, const void *va, > > > + uns

Re: [Xen-devel] [PATCH 4/4] x86/hyperv: L0 assisted TLB flush

2020-02-13 Thread Wei Liu
On Thu, Feb 13, 2020 at 10:49:39AM +0100, Jan Beulich wrote: > >> diff --git a/xen/arch/x86/guest/hyperv/Makefile > >> b/xen/arch/x86/guest/hyperv/Makefile > >> index 18902c33e9..0e39410968 100644 > >> --- a/xen/arch/x86/guest/hyperv/Makefile > >> +++ b/xen/arch/x86/guest/hyperv/Makefile > >> @@ -

Re: [Xen-devel] [PATCH 4/4] x86/hyperv: L0 assisted TLB flush

2020-02-13 Thread Wei Liu
On Wed, Feb 12, 2020 at 06:43:47PM +0100, Roger Pau Monné wrote: > On Wed, Feb 12, 2020 at 04:09:18PM +, Wei Liu wrote: > > Implement L0 assisted TLB flush for Xen on Hyper-V. It takes advantage > > of several hypercalls: > > > > * HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST > > * HVCALL_FLUSH_VIRTUAL

Re: [Xen-devel] [PATCH 4/4] x86/hyperv: L0 assisted TLB flush

2020-02-13 Thread Jan Beulich
On 12.02.2020 18:43, Roger Pau Monné wrote: > On Wed, Feb 12, 2020 at 04:09:18PM +, Wei Liu wrote: >> Implement L0 assisted TLB flush for Xen on Hyper-V. It takes advantage >> of several hypercalls: >> >> * HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST >> * HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST_EX >> * HVCA

Re: [Xen-devel] [PATCH 4/4] x86/hyperv: L0 assisted TLB flush

2020-02-12 Thread Roger Pau Monné
On Wed, Feb 12, 2020 at 04:09:18PM +, Wei Liu wrote: > Implement L0 assisted TLB flush for Xen on Hyper-V. It takes advantage > of several hypercalls: > > * HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST > * HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST_EX > * HVCALL_FLUSH_VIRTUAL_ADDRESS_SPACE > * HVCALL_FLUSH_VI

[Xen-devel] [PATCH 4/4] x86/hyperv: L0 assisted TLB flush

2020-02-12 Thread Wei Liu
Implement L0 assisted TLB flush for Xen on Hyper-V. It takes advantage of several hypercalls: * HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST * HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST_EX * HVCALL_FLUSH_VIRTUAL_ADDRESS_SPACE * HVCALL_FLUSH_VIRTUAL_ADDRESS_SPACE_EX Pick the most efficient hypercalls available.