connection.c (057841713cfff62b4485cdd2b245f05b7ea3ba16) connection.c (7415aea6072bab15969b6c3c5b2a193d88095326)
1/*
2 *
3 * Copyright (c) 2009, Microsoft Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 82 unchanged lines hidden (view full) ---

91 * This has been the behavior pre-win8. This is not
92 * perf issue and having all channel messages delivered on CPU 0
93 * would be ok.
94 * For post win8 hosts, we support receiving channel messagges on
95 * all the CPUs. This is needed for kexec to work correctly where
96 * the CPU attempting to connect may not be CPU 0.
97 */
98 if (version >= VERSION_WIN8_1) {
1/*
2 *
3 * Copyright (c) 2009, Microsoft Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 82 unchanged lines hidden (view full) ---

91 * This has been the behavior pre-win8. This is not
92 * perf issue and having all channel messages delivered on CPU 0
93 * would be ok.
94 * For post win8 hosts, we support receiving channel messagges on
95 * all the CPUs. This is needed for kexec to work correctly where
96 * the CPU attempting to connect may not be CPU 0.
97 */
98 if (version >= VERSION_WIN8_1) {
99 msg->target_vcpu = hv_context.vp_index[smp_processor_id()];
99 msg->target_vcpu =
100 hv_cpu_number_to_vp_number(smp_processor_id());
100 vmbus_connection.connect_cpu = smp_processor_id();
101 } else {
102 msg->target_vcpu = 0;
103 vmbus_connection.connect_cpu = 0;
104 }
105
106 /*
107 * Add to list before we send the request since we may

--- 306 unchanged lines hidden ---
101 vmbus_connection.connect_cpu = smp_processor_id();
102 } else {
103 msg->target_vcpu = 0;
104 vmbus_connection.connect_cpu = 0;
105 }
106
107 /*
108 * Add to list before we send the request since we may

--- 306 unchanged lines hidden ---