RE: [tip:x86/platform] x86/hyper-v: Use hypercall for remote TLB flush

2017-08-10 Thread Jork Loeser
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Thursday, August 10, 2017 12:28 > To: Jork Loeser > Cc: KY Srinivasan ; Simon Xiao ; > Haiyang Zhang ; Stephen Hemminger > ; torva...@linux-foundation.org; l...@kernel.org; &g

RE: [tip:x86/platform] x86/hyper-v: Use hypercall for remote TLB flush

2017-08-10 Thread Jork Loeser
> -Original Message- > From: KY Srinivasan > > -Original Message- > > From: Peter Zijlstra [mailto:pet...@infradead.org] > > Sent: Thursday, August 10, 2017 11:57 AM > > To: Simon Xiao ; Haiyang Zhang > > ; Jork Loeser ; > > Stephen Hemm

RE: [PATCH v8 07/10] hyper-v: globalize vp_index

2017-06-13 Thread Jork Loeser
> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, June 13, 2017 19:29 > > Stephen Hemminger writes: > > > On Fri, 9 Jun 2017 15:27:33 +0200 > > Vitaly Kuznetsov wrote: > > > >> To support implementing remote TLB flushing on Hyper-V with a > >> hypercall we need to make vp_

RE: [PATCH v5 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-05-30 Thread Jork Loeser
Hemminger ; > Thomas Gleixner ; Ingo Molnar ; H. > Peter Anvin ; Steven Rostedt ; Jork > Loeser ; Simon Xiao ; > Andy Lutomirski > Subject: Re: [PATCH v5 08/10] x86/hyper-v: use hypercall for remote TLB flush > > On Tue, May 30, 2017 at 2:34 PM, Vitaly Kuznetsov >

RE: [PATCH v5 09/10] x86/hyper-v: support extended CPU ranges for TLB flush hypercalls

2017-05-30 Thread Jork Loeser
r ; Ingo > Molnar ; H. Peter Anvin ; Steven > Rostedt ; Jork Loeser ; > Simon Xiao ; Andy Lutomirski ; Andy > Shevchenko > Subject: [PATCH v5 09/10] x86/hyper-v: support extended CPU ranges for TLB > flush hypercalls > > Hyper-V hosts m

[PATCH-v2 4/5] Hyper-V vPCI: Add vPCI version protocol negotiation

2017-05-24 Thread Jork Loeser
From: Jork Loeser Hyper-V vPCI offers different protocol versions. This patch creates the the infra for negotiating the one to use. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 72 +++ 1 file changed, 53 insertions(+), 19 deletions

[PATCH-v2 5/5] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-24 Thread Jork Loeser
From: Jork Loeser Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI protocol, fixing MSI creation and retargeting issues. Signed-off-by: Jork Loeser --- arch/x86/include/uapi/asm/hyperv.h | 6 + drivers/pci/host/pci-hyperv.c | 300

[PATCH-v2 0/5] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-24 Thread Jork Loeser
From: Jork Loeser Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI protocol, fixing MSI creation and retargeting issues. Changes since v1: - reduced spew in protocol negotiation (Dan Carpenter) - work-around work racing Hyper-V patch (Stephen Hemminger) - formatting

[PATCH-v2 3/5] PCI-HyperV vPCI: Temporary own CPU-number-to-vCPU-number infra

2017-05-24 Thread Jork Loeser
From: Jork Loeser To ease parallel effort to centralize CPU-number-to-vCPU-number conversion, temporarily stand up own version, file-local hv_tmp_cpu_nr_to_vp_nr(). Once the changes have merged, this work-around can be removed, and the calls replaced with hv_cpu_number_to_vp_number(). Signed

[PATCH-v2 1/5] Hyper-V vPCI: Minor format and semantic fix

2017-05-24 Thread Jork Loeser
From: Jork Loeser Fix comment formatting and use proper integer fields. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index 8493638

[PATCH-v2 2/5] Hyper-V vPCI: Use page allocation for hbus structure

2017-05-24 Thread Jork Loeser
From: Jork Loeser The hv_pcibus_device structure contains an in-memory hypercall argument that must not cross a page boundary. Allocate the structure as a page to ensure that. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 15 --- 1 file changed, 12 insertions

RE: [PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-24 Thread Jork Loeser
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, May 19, 2017 04:27 > To: Jork Loeser > Cc: helg...@kernel.org; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...

RE: [PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-24 Thread Jork Loeser
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, May 19, 2017 02:59 > To: Jork Loeser > Cc: Jork Loeser ; helg...@kernel.org; linux- > p...@vger.kernel.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.o

RE: [PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-18 Thread Jork Loeser
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Thursday, May 18, 2017 16:59 > > > From: Jork Loeser > > > > Update the Hyper-V vPCI driver to use the Server-2016 version of the > > vPCI protocol, fixing

[PATCH 3/4] Hyper-V vPCI: Add vPCI version protocol negotiation

2017-05-18 Thread Jork Loeser
From: Jork Loeser Hyper-V vPCI offers different protocol versions. This patch creates the the infra for negotiating the one to use. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 72 +--- 1 files changed, 52 insertions(+), 20 deletions

[PATCH 1/4] Hyper-V vPCI: Minor format and semantic fix

2017-05-18 Thread Jork Loeser
From: Jork Loeser Fix comment formatting and use proper integer fields. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index 8493638

[PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-18 Thread Jork Loeser
From: Jork Loeser Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI protocol, fixing MSI creation and retargeting issues. Signed-off-by: Jork Loeser --- arch/x86/include/uapi/asm/hyperv.h |6 + drivers/pci/host/pci-hyperv.c | 297

Hyper-V vPCI: Use current vPCI protocol

2017-05-18 Thread Jork Loeser
Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI protocol, fixing MSI creation and retargeting issues. [PATCH 1/4] Hyper-V vPCI: Minor format and semantic fix [PATCH 2/4] Hyper-V vPCI: Use page allocation for hbus structure [PATCH 3/4] Hyper-V vPCI: Add vPCI version protoc

[PATCH 2/4] Hyper-V vPCI: Use page allocation for hbus structure

2017-05-18 Thread Jork Loeser
From: Jork Loeser The hv_pcibus_device structure contains an in-memory hypercall argument that must not cross a page boundary. Allocate the structure as a page to ensure that. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 12 +--- 1 files changed, 9 insertions(+), 3

RE: [PATCH 6/7] x86/hyper-v: use hypercall for remove TLB flush

2017-04-10 Thread Jork Loeser
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > > We may be supporting more than 64 CPUs in this hypercall. I am going > > to inquire with the Windows folks and get back to you. > > Thanks! It is even specified in the specification: > "Future versions of the h

RE: [PATCH 2/7] x86/hyper-v: fast hypercall implementation

2017-04-10 Thread Jork Loeser
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Vitaly Kuznetsov writes: > > > Jork Loeser writes: > > > > [snip] > > > > >>> + } > >>> +#else > >>> + { > >>> +

RE: [PATCH 6/7] x86/hyper-v: use hypercall for remove TLB flush

2017-04-07 Thread Jork Loeser
r ; Ingo > Molnar ; H. Peter Anvin ; Steven > Rostedt ; Jork Loeser > Subject: [PATCH 6/7] x86/hyper-v: use hypercall for remove TLB flush > diff --git a/arch/x86/hyperv/mmu.c b/arch/x86/hyperv/mmu.c new file > mode 100644 index 000..fb487cb > --- /dev/null > ++

RE: [PATCH 4/7] x86/hyperv: implement rep hypercalls

2017-04-07 Thread Jork Loeser
r ; Ingo > Molnar ; H. Peter Anvin ; Steven > Rostedt ; Jork Loeser > Subject: [PATCH 4/7] x86/hyperv: implement rep hypercalls > diff --git a/arch/x86/include/asm/mshyperv.h > b/arch/x86/include/asm/mshyperv.h index 9a5f58b..a2c996b 100644 > --- a/arch/x86/include/asm/

RE: [PATCH 2/7] x86/hyper-v: fast hypercall implementation

2017-04-07 Thread Jork Loeser
r ; Ingo > Molnar ; H. Peter Anvin ; Steven > Rostedt ; Jork Loeser > Subject: [PATCH 2/7] x86/hyper-v: fast hypercall implementation > diff --git a/arch/x86/include/asm/mshyperv.h > b/arch/x86/include/asm/mshyperv.h index 331e834..9a5f58b 100644 > --- a/arch/x86/include/asm/

RE: [PATCH 1/7] x86/hyperv: make hv_do_hypercall() inline

2017-04-07 Thread Jork Loeser
r ; Ingo > Molnar ; H. Peter Anvin ; Steven > Rostedt ; Jork Loeser > Subject: [PATCH 1/7] x86/hyperv: make hv_do_hypercall() inline > diff --git a/arch/x86/include/asm/mshyperv.h > b/arch/x86/include/asm/mshyperv.h index 7c9c895..331e834 100644 > --- a/arch/x86/include/asm/