diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2013-01-23 20:42:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-25 14:17:31 -0500 |
commit | 7fb96565e3e18ad41857ca6ffdaa9a26ae92df5a (patch) | |
tree | 8024dd5aed8477eed9ba8a8e96be3160479186fb /drivers/hv | |
parent | 5a19b78972c39be0c5378c14c23e6c998683e80f (diff) |
Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h
Consolidate all GUID definitions in hyperv.h and use these definitions in implementing
channel bindings (as far as interrupt delivery goes).
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/channel_mgmt.c | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 7478ef914b9a..53a8600162a5 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c | |||
@@ -265,36 +265,17 @@ enum { | |||
265 | }; | 265 | }; |
266 | 266 | ||
267 | /* | 267 | /* |
268 | * This is an array of channels (devices) that are performance critical. | 268 | * This is an array of device_ids (device types) that are performance critical. |
269 | * We attempt to distribute the interrupt load for these devices across | 269 | * We attempt to distribute the interrupt load for these devices across |
270 | * all available CPUs. | 270 | * all available CPUs. |
271 | */ | 271 | */ |
272 | static const uuid_le hp_devs[] = { | 272 | static const struct hv_vmbus_device_id hp_devs[] = { |
273 | /* {32412632-86cb-44a2-9b5c-50d1417354f5} */ | ||
274 | /* IDE */ | 273 | /* IDE */ |
275 | { | 274 | { HV_IDE_GUID, }, |
276 | .b = { | ||
277 | 0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44, | ||
278 | 0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5 | ||
279 | } | ||
280 | }, | ||
281 | /* {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f} */ | ||
282 | /* Storage - SCSI */ | 275 | /* Storage - SCSI */ |
283 | { | 276 | { HV_SCSI_GUID, }, |
284 | .b = { | ||
285 | 0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d, | ||
286 | 0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f | ||
287 | } | ||
288 | }, | ||
289 | /* {F8615163-DF3E-46c5-913F-F2D2F965ED0E} */ | ||
290 | /* Network */ | 277 | /* Network */ |
291 | { | 278 | { HV_NIC_GUID, }, |
292 | .b = { | ||
293 | 0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46, | ||
294 | 0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E | ||
295 | } | ||
296 | }, | ||
297 | |||
298 | }; | 279 | }; |
299 | 280 | ||
300 | 281 | ||
@@ -320,7 +301,7 @@ static u32 get_vp_index(uuid_le *type_guid) | |||
320 | u32 max_cpus = num_online_cpus(); | 301 | u32 max_cpus = num_online_cpus(); |
321 | 302 | ||
322 | for (i = IDE; i < MAX_PERF_CHN; i++) { | 303 | for (i = IDE; i < MAX_PERF_CHN; i++) { |
323 | if (!memcmp(type_guid->b, hp_devs[i].b, | 304 | if (!memcmp(type_guid->b, hp_devs[i].guid, |
324 | sizeof(uuid_le))) { | 305 | sizeof(uuid_le))) { |
325 | perf_chn = true; | 306 | perf_chn = true; |
326 | break; | 307 | break; |