diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2017-08-02 12:09:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-08-10 10:50:22 -0400 |
commit | 057841713cfff62b4485cdd2b245f05b7ea3ba16 (patch) | |
tree | 6bb15aa4313f06581a28ee2f0e45fc58fb666a57 /include/linux/hyperv.h | |
parent | 6a8edbd0c54ae266b12f4f63e406313481c9d4bc (diff) |
hyper-v: Use fast hypercall for HVCALL_SIGNAL_EVENT
We need to pass only 8 bytes of input for HvSignalEvent which makes it a
perfect fit for fast hypercall. hv_input_signal_event_buffer is not needed
any more and hv_input_signal_event is converted to union for convenience.
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-5-vkuznets@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r-- | include/linux/hyperv.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 6608a71e7d79..c472bd43bdd7 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
@@ -677,18 +677,6 @@ union hv_connection_id { | |||
677 | } u; | 677 | } u; |
678 | }; | 678 | }; |
679 | 679 | ||
680 | /* Definition of the hv_signal_event hypercall input structure. */ | ||
681 | struct hv_input_signal_event { | ||
682 | union hv_connection_id connectionid; | ||
683 | u16 flag_number; | ||
684 | u16 rsvdz; | ||
685 | }; | ||
686 | |||
687 | struct hv_input_signal_event_buffer { | ||
688 | u64 align8; | ||
689 | struct hv_input_signal_event event; | ||
690 | }; | ||
691 | |||
692 | enum hv_numa_policy { | 680 | enum hv_numa_policy { |
693 | HV_BALANCED = 0, | 681 | HV_BALANCED = 0, |
694 | HV_LOCALIZED, | 682 | HV_LOCALIZED, |
@@ -770,8 +758,7 @@ struct vmbus_channel { | |||
770 | } callback_mode; | 758 | } callback_mode; |
771 | 759 | ||
772 | bool is_dedicated_interrupt; | 760 | bool is_dedicated_interrupt; |
773 | struct hv_input_signal_event_buffer sig_buf; | 761 | u64 sig_event; |
774 | struct hv_input_signal_event *sig_event; | ||
775 | 762 | ||
776 | /* | 763 | /* |
777 | * Starting with win8, this field will be used to specify | 764 | * Starting with win8, this field will be used to specify |