linux/drivers/hv
Vitaly Kuznetsov 2ffd9e33ce x86/hyper-v: Use hypercall for remote TLB flush
Hyper-V host can suggest us to use hypercall for doing remote TLB flush,
this is supposed to work faster than IPIs.

Implementation details: to do HvFlushVirtualAddress{Space,List} hypercalls
we need to put the input somewhere in memory and we don't really want to
have memory allocation on each call so we pre-allocate per cpu memory areas
on boot.

pv_ops patching is happening very early so we need to separate
hyperv_setup_mmu_ops() and hyper_alloc_mmu().

It is possible and easy to implement local TLB flushing too and there is
even a hint for that. However, I don't see a room for optimization on the
host side as both hypercall and native tlb flush will result in vmexit. The
hint is also not set on modern Hyper-V versions.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Jork Loeser <Jork.Loeser@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Simon Xiao <sixiao@microsoft.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: devel@linuxdriverproject.org
Link: http://lkml.kernel.org/r/20170802160921.21791-8-vkuznets@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-08-10 20:16:44 +02:00
..
channel_mgmt.c hyper-v: Globalize vp_index 2017-08-10 16:50:23 +02:00
channel.c vmbus: re-enable channel tasklet 2017-07-17 15:00:47 +02:00
connection.c hyper-v: Globalize vp_index 2017-08-10 16:50:23 +02:00
hv_balloon.c vmbus: remove useless return's 2017-03-17 15:10:48 +09:00
hv_fcopy.c Merge 4.11-rc4 into char-misc-next 2017-03-27 09:13:04 +02:00
hv_kvp.c HV: properly delay KVP packets when negotiation is in progress 2017-05-18 16:55:28 +02:00
hv_snapshot.c Merge 4.11-rc4 into char-misc-next 2017-03-27 09:13:04 +02:00
hv_util.c hv_utils: fix TimeSync work on pre-TimeSync-v4 hosts 2017-05-25 15:42:42 +02:00
hv_utils_transport.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv_utils_transport.h Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv.c hyper-v: Globalize vp_index 2017-08-10 16:50:23 +02:00
hyperv_vmbus.h hyper-v: Globalize vp_index 2017-08-10 16:50:23 +02:00
Kconfig x86/hyper-v: Use hypercall for remote TLB flush 2017-08-10 20:16:44 +02:00
Makefile Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
ring_buffer.c char/misc patches for 4.12-rc1 2017-05-04 19:15:35 -07:00
vmbus_drv.c hyper-v: Globalize vp_index 2017-08-10 16:50:23 +02:00