History

Drivers: hv: vmbus: Remove the target_vp field from the vmbus_channel struct

The field is read only in __vmbus_open() and it is already stored twice (after a call to hv_cpu_number_to_vp_number()) in target_cpu_store() and init_vp_index(); there is no need to "cache" its value in the channel data structure.

Andrea Parri (Microsoft) committed 6 years ago

Commit 5bf74681 parent b3a9e3b4 files · +9 −14Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/hyperv.h+7−8
@@ -803,15 +803,14 @@ struct vmbus_channel { · 802 unmodified lines
803803 u64 sig_event;
804804
805805 /*
806− * Starting with win8, this field will be used to specify
807− * the target virtual processor on which to deliver the interrupt for
808− * the host to guest communication.
809− * Prior to win8, incoming channel interrupts would only
810− * be delivered on cpu 0. Setting this value to 0 would
811− * preserve the earlier behavior.
806+ * Starting with win8, this field will be used to specify the
807+ * target CPU on which to deliver the interrupt for the host
808+ * to guest communication.
809+ *
810+ * Prior to win8, incoming channel interrupts would only be
811+ * delivered on CPU 0. Setting this value to 0 would preserve
812+ * the earlier behavior.
812813 */
813− u32 target_vp;
814− /* The corresponding CPUID in the guest */
815814 u32 target_cpu;
816815 int numa_node;
817816 /*