History

vmbus: Switch to use new generic UUID API

There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here.

Andy Shevchenko committed 7 years ago

Commit 593db801 parent 8834f565 files · +79 −93Browse files

Unified · Split

5 files
  1. drivers/hv/channel.c +2 −2
  2. drivers/hv/channel_mgmt.c +9 −9
  3. drivers/hv/hyperv_vmbus.h +2 −2
  4. drivers/hv/vmbus_drv.c +17 −31
  5. include/linux/hyperv.h +49 −49
drivers/hv/channel.c+2−2
@@ -282,8 +282,8 @@ int vmbus_open(struct vmbus_channel *newchannel, · 281 unmodified lines
282EXPORT_SYMBOL_GPL(vmbus_open);282EXPORT_SYMBOL_GPL(vmbus_open);
283 283
284/* Used for Hyper-V Socket: a guest client's connect() to the host */284/* Used for Hyper-V Socket: a guest client's connect() to the host */
285int vmbus_send_tl_connect_request(const uuid_le *shv_guest_servie_id,285int vmbus_send_tl_connect_request(const guid_t *shv_guest_servie_id,
286 const uuid_le *shv_host_servie_id)286 const guid_t *shv_host_servie_id)
287{287{
288 struct vmbus_channel_tl_connect_request conn_msg;288 struct vmbus_channel_tl_connect_request conn_msg;
289 int ret;289 int ret;
drivers/hv/channel_mgmt.c+9−9
@@ -141,7 +141,7 @@ static const struct vmbus_device vmbus_devs[] = { · 140 unmodified lines
141};141};
142 142
143static const struct {143static const struct {
144 uuid_le guid;144 guid_t guid;
145} vmbus_unsupported_devs[] = {145} vmbus_unsupported_devs[] = {
146 { HV_AVMA1_GUID },146 { HV_AVMA1_GUID },
147 { HV_AVMA2_GUID },147 { HV_AVMA2_GUID },
@@ -171,26 +171,26 @@ static void vmbus_rescind_cleanup(struct vmbus_channel *channel) · 23 unmodified lines
171 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);171 spin_unlock_irqrestore(&vmbus_connection.channelmsg_lock, flags);
172}172}
173 173
174static bool is_unsupported_vmbus_devs(const uuid_le *guid)174static bool is_unsupported_vmbus_devs(const guid_t *guid)
175{175{
176 int i;176 int i;
177 177
178 for (i = 0; i < ARRAY_SIZE(vmbus_unsupported_devs); i++)178 for (i = 0; i < ARRAY_SIZE(vmbus_unsupported_devs); i++)
179 if (!uuid_le_cmp(*guid, vmbus_unsupported_devs[i].guid))179 if (guid_equal(guid, &vmbus_unsupported_devs[i].guid))
180 return true;180 return true;
181 return false;181 return false;
182}182}
183 183
184static u16 hv_get_dev_type(const struct vmbus_channel *channel)184static u16 hv_get_dev_type(const struct vmbus_channel *channel)
185{185{
186 const uuid_le *guid = &channel->offermsg.offer.if_type;186 const guid_t *guid = &channel->offermsg.offer.if_type;
187 u16 i;187 u16 i;
188 188
189 if (is_hvsock_channel(channel) || is_unsupported_vmbus_devs(guid))189 if (is_hvsock_channel(channel) || is_unsupported_vmbus_devs(guid))
190 return HV_UNKNOWN;190 return HV_UNKNOWN;
191 191
192 for (i = HV_IDE; i < HV_UNKNOWN; i++) {192 for (i = HV_IDE; i < HV_UNKNOWN; i++) {
193 if (!uuid_le_cmp(*guid, vmbus_devs[i].guid))193 if (guid_equal(guid, &vmbus_devs[i].guid))
194 return i;194 return i;
195 }195 }
196 pr_info("Unknown GUID: %pUl\n", guid);196 pr_info("Unknown GUID: %pUl\n", guid);
@@ -561,10 +561,10 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel) · 364 unmodified lines
561 atomic_dec(&vmbus_connection.offer_in_progress);561 atomic_dec(&vmbus_connection.offer_in_progress);
562 562
563 list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {563 list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) {
564 if (!uuid_le_cmp(channel->offermsg.offer.if_type,564 if (guid_equal(&channel->offermsg.offer.if_type,
565 newchannel->offermsg.offer.if_type) &&565 &newchannel->offermsg.offer.if_type) &&
566 !uuid_le_cmp(channel->offermsg.offer.if_instance,566 guid_equal(&channel->offermsg.offer.if_instance,
567 newchannel->offermsg.offer.if_instance)) {567 &newchannel->offermsg.offer.if_instance)) {
568 fnew = false;568 fnew = false;
569 break;569 break;
570 }570 }
drivers/hv/hyperv_vmbus.h+2−2
@@ -312,8 +312,8 @@ extern const struct vmbus_channel_message_table_entry · 311 unmodified lines
312 312
313/* General vmbus interface */313/* General vmbus interface */
314 314
315struct hv_device *vmbus_device_create(const uuid_le *type,315struct hv_device *vmbus_device_create(const guid_t *type,
316 const uuid_le *instance,316 const guid_t *instance,
317 struct vmbus_channel *channel);317 struct vmbus_channel *channel);
318 318
319int vmbus_device_register(struct hv_device *child_device_obj);319int vmbus_device_register(struct hv_device *child_device_obj);
drivers/hv/vmbus_drv.c+17−31
@@ -654,38 +654,28 @@ static int vmbus_uevent(struct device *device, struct kobj_uevent_env *env) · 653 unmodified lines
654 return ret;654 return ret;
655}655}
656 656
657static const uuid_le null_guid;
658
659static inline bool is_null_guid(const uuid_le *guid)
660{
661 if (uuid_le_cmp(*guid, null_guid))
662 return false;
663 return true;
664}
665
666static const struct hv_vmbus_device_id *657static const struct hv_vmbus_device_id *
667hv_vmbus_dev_match(const struct hv_vmbus_device_id *id, const uuid_le *guid)658hv_vmbus_dev_match(const struct hv_vmbus_device_id *id, const guid_t *guid)
668
669{659{
670 if (id == NULL)660 if (id == NULL)
671 return NULL; /* empty device table */661 return NULL; /* empty device table */
672 662
673 for (; !is_null_guid(&id->guid); id++)663 for (; !guid_is_null(&id->guid); id++)
674 if (!uuid_le_cmp(id->guid, *guid))664 if (guid_equal(&id->guid, guid))
675 return id;665 return id;
676 666
677 return NULL;667 return NULL;
678}668}
679 669
680static const struct hv_vmbus_device_id *670static const struct hv_vmbus_device_id *
681hv_vmbus_dynid_match(struct hv_driver *drv, const uuid_le *guid)671hv_vmbus_dynid_match(struct hv_driver *drv, const guid_t *guid)
682{672{
683 const struct hv_vmbus_device_id *id = NULL;673 const struct hv_vmbus_device_id *id = NULL;
684 struct vmbus_dynid *dynid;674 struct vmbus_dynid *dynid;
685 675
686 spin_lock(&drv->dynids.lock);676 spin_lock(&drv->dynids.lock);
687 list_for_each_entry(dynid, &drv->dynids.list, node) {677 list_for_each_entry(dynid, &drv->dynids.list, node) {
688 if (!uuid_le_cmp(dynid->id.guid, *guid)) {678 if (guid_equal(&dynid->id.guid, guid)) {
689 id = &dynid->id;679 id = &dynid->id;
690 break;680 break;
691 }681 }
@@ -695,9 +685,7 @@ hv_vmbus_dynid_match(struct hv_driver *drv, const uuid_le *guid) · 3 unmodified lines
695 return id;685 return id;
696}686}
697 687
698static const struct hv_vmbus_device_id vmbus_device_null = {688static const struct hv_vmbus_device_id vmbus_device_null;
699 .guid = NULL_UUID_LE,
700};
701 689
702/*690/*
703 * Return a matching hv_vmbus_device_id pointer.691 * Return a matching hv_vmbus_device_id pointer.
@@ -706,7 +694,7 @@ static const struct hv_vmbus_device_id vmbus_device_null = { · 2 unmodified lines
706static const struct hv_vmbus_device_id *hv_vmbus_get_id(struct hv_driver *drv,694static const struct hv_vmbus_device_id *hv_vmbus_get_id(struct hv_driver *drv,
707 struct hv_device *dev)695 struct hv_device *dev)
708{696{
709 const uuid_le *guid = &dev->dev_type;697 const guid_t *guid = &dev->dev_type;
710 const struct hv_vmbus_device_id *id;698 const struct hv_vmbus_device_id *id;
711 699
712 /* When driver_override is set, only bind to the matching driver */700 /* When driver_override is set, only bind to the matching driver */
@@ -726,7 +714,7 @@ static const struct hv_vmbus_device_id *hv_vmbus_get_id(struct hv_driver *drv, · 13 unmodified lines
726}714}
727 715
728/* vmbus_add_dynid - add a new device ID to this driver and re-probe devices */716/* vmbus_add_dynid - add a new device ID to this driver and re-probe devices */
729static int vmbus_add_dynid(struct hv_driver *drv, uuid_le *guid)717static int vmbus_add_dynid(struct hv_driver *drv, guid_t *guid)
730{718{
731 struct vmbus_dynid *dynid;719 struct vmbus_dynid *dynid;
732 720
@@ -764,10 +752,10 @@ static ssize_t new_id_store(struct device_driver *driver, const char *buf, · 31 unmodified lines
764 size_t count)752 size_t count)
765{753{
766 struct hv_driver *drv = drv_to_hv_drv(driver);754 struct hv_driver *drv = drv_to_hv_drv(driver);
767 uuid_le guid;755 guid_t guid;
768 ssize_t retval;756 ssize_t retval;
769 757
770 retval = uuid_le_to_bin(buf, &guid);758 retval = guid_parse(buf, &guid);
771 if (retval)759 if (retval)
772 return retval;760 return retval;
773 761
@@ -791,10 +779,10 @@ static ssize_t remove_id_store(struct device_driver *driver, const char *buf, · 17 unmodified lines
791{779{
792 struct hv_driver *drv = drv_to_hv_drv(driver);780 struct hv_driver *drv = drv_to_hv_drv(driver);
793 struct vmbus_dynid *dynid, *n;781 struct vmbus_dynid *dynid, *n;
794 uuid_le guid;782 guid_t guid;
795 ssize_t retval;783 ssize_t retval;
796 784
797 retval = uuid_le_to_bin(buf, &guid);785 retval = guid_parse(buf, &guid);
798 if (retval)786 if (retval)
799 return retval;787 return retval;
800 788
@@ -803,7 +791,7 @@ static ssize_t remove_id_store(struct device_driver *driver, const char *buf, · 2 unmodified lines
803 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) {791 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) {
804 struct hv_vmbus_device_id *id = &dynid->id;792 struct hv_vmbus_device_id *id = &dynid->id;
805 793
806 if (!uuid_le_cmp(id->guid, guid)) {794 if (guid_equal(&id->guid, &guid)) {
807 list_del(&dynid->node);795 list_del(&dynid->node);
808 kfree(dynid);796 kfree(dynid);
809 retval = count;797 retval = count;
@@ -1556,8 +1544,8 @@ int vmbus_add_channel_kobj(struct hv_device *dev, struct vmbus_channel *channel) · 746 unmodified lines
1556 * vmbus_device_create - Creates and registers a new child device1544 * vmbus_device_create - Creates and registers a new child device
1557 * on the vmbus.1545 * on the vmbus.
1558 */1546 */
1559struct hv_device *vmbus_device_create(const uuid_le *type,1547struct hv_device *vmbus_device_create(const guid_t *type,
1560 const uuid_le *instance,1548 const guid_t *instance,
1561 struct vmbus_channel *channel)1549 struct vmbus_channel *channel)
1562{1550{
1563 struct hv_device *child_device_obj;1551 struct hv_device *child_device_obj;
@@ -1569,12 +1557,10 @@ struct hv_device *vmbus_device_create(const uuid_le *type, · 5 unmodified lines
1569 }1557 }
1570 1558
1571 child_device_obj->channel = channel;1559 child_device_obj->channel = channel;
1572 memcpy(&child_device_obj->dev_type, type, sizeof(uuid_le));1560 guid_copy(&child_device_obj->dev_type, type);
1573 memcpy(&child_device_obj->dev_instance, instance,1561 guid_copy(&child_device_obj->dev_instance, instance);
1574 sizeof(uuid_le));
1575 child_device_obj->vendor_id = 0x1414; /* MSFT vendor ID */1562 child_device_obj->vendor_id = 0x1414; /* MSFT vendor ID */
1576 1563
1577
1578 return child_device_obj;1564 return child_device_obj;
1579}1565}
1580 1566
include/linux/hyperv.h+49−49
@@ -222,8 +222,8 @@ static inline u32 hv_get_avail_to_write_percent( · 221 unmodified lines
222 * struct contains the fundamental information about an offer.222 * struct contains the fundamental information about an offer.
223 */223 */
224struct vmbus_channel_offer {224struct vmbus_channel_offer {
225 uuid_le if_type;225 guid_t if_type;
226 uuid_le if_instance;226 guid_t if_instance;
227 227
228 /*228 /*
229 * These two fields are not currently used.229 * These two fields are not currently used.
@@ -614,8 +614,8 @@ struct vmbus_channel_initiate_contact { · 384 unmodified lines
614/* Hyper-V socket: guest's connect()-ing to host */614/* Hyper-V socket: guest's connect()-ing to host */
615struct vmbus_channel_tl_connect_request {615struct vmbus_channel_tl_connect_request {
616 struct vmbus_channel_message_header header;616 struct vmbus_channel_message_header header;
617 uuid_le guest_endpoint_id;617 guid_t guest_endpoint_id;
618 uuid_le host_service_id;618 guid_t host_service_id;
619} __packed;619} __packed;
620 620
621struct vmbus_channel_version_response {621struct vmbus_channel_version_response {
@@ -714,7 +714,7 @@ enum vmbus_device_type { · 92 unmodified lines
714 714
715struct vmbus_device {715struct vmbus_device {
716 u16 dev_type;716 u16 dev_type;
717 uuid_le guid;717 guid_t guid;
718 bool perf_device;718 bool perf_device;
719};719};
720 720
@@ -1096,7 +1096,7 @@ struct hv_driver { · 375 unmodified lines
1096 bool hvsock;1096 bool hvsock;
1097 1097
1098 /* the device type supported by this driver */1098 /* the device type supported by this driver */
1099 uuid_le dev_type;1099 guid_t dev_type;
1100 const struct hv_vmbus_device_id *id_table;1100 const struct hv_vmbus_device_id *id_table;
1101 1101
1102 struct device_driver driver;1102 struct device_driver driver;
@@ -1116,10 +1116,10 @@ struct hv_driver { · 13 unmodified lines
1116/* Base device object */1116/* Base device object */
1117struct hv_device {1117struct hv_device {
1118 /* the device type id of this device */1118 /* the device type id of this device */
1119 uuid_le dev_type;1119 guid_t dev_type;
1120 1120
1121 /* the device instance id of this device */1121 /* the device instance id of this device */
1122 uuid_le dev_instance;1122 guid_t dev_instance;
1123 u16 vendor_id;1123 u16 vendor_id;
1124 u16 device_id;1124 u16 device_id;
1125 1125
@@ -1188,102 +1188,102 @@ void vmbus_free_mmio(resource_size_t start, resource_size_t size); · 62 unmodified lines
1188 * {f8615163-df3e-46c5-913f-f2d2f965ed0e}1188 * {f8615163-df3e-46c5-913f-f2d2f965ed0e}
1189 */1189 */
1190#define HV_NIC_GUID \1190#define HV_NIC_GUID \
1191 .guid = UUID_LE(0xf8615163, 0xdf3e, 0x46c5, 0x91, 0x3f, \1191 .guid = GUID_INIT(0xf8615163, 0xdf3e, 0x46c5, 0x91, 0x3f, \
1192 0xf2, 0xd2, 0xf9, 0x65, 0xed, 0x0e)1192 0xf2, 0xd2, 0xf9, 0x65, 0xed, 0x0e)
1193 1193
1194/*1194/*
1195 * IDE GUID1195 * IDE GUID
1196 * {32412632-86cb-44a2-9b5c-50d1417354f5}1196 * {32412632-86cb-44a2-9b5c-50d1417354f5}
1197 */1197 */
1198#define HV_IDE_GUID \1198#define HV_IDE_GUID \
1199 .guid = UUID_LE(0x32412632, 0x86cb, 0x44a2, 0x9b, 0x5c, \1199 .guid = GUID_INIT(0x32412632, 0x86cb, 0x44a2, 0x9b, 0x5c, \
1200 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5)1200 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5)
1201 1201
1202/*1202/*
1203 * SCSI GUID1203 * SCSI GUID
1204 * {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f}1204 * {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f}
1205 */1205 */
1206#define HV_SCSI_GUID \1206#define HV_SCSI_GUID \
1207 .guid = UUID_LE(0xba6163d9, 0x04a1, 0x4d29, 0xb6, 0x05, \1207 .guid = GUID_INIT(0xba6163d9, 0x04a1, 0x4d29, 0xb6, 0x05, \
1208 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f)1208 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f)
1209 1209
1210/*1210/*
1211 * Shutdown GUID1211 * Shutdown GUID
1212 * {0e0b6031-5213-4934-818b-38d90ced39db}1212 * {0e0b6031-5213-4934-818b-38d90ced39db}
1213 */1213 */
1214#define HV_SHUTDOWN_GUID \1214#define HV_SHUTDOWN_GUID \
1215 .guid = UUID_LE(0x0e0b6031, 0x5213, 0x4934, 0x81, 0x8b, \1215 .guid = GUID_INIT(0x0e0b6031, 0x5213, 0x4934, 0x81, 0x8b, \
1216 0x38, 0xd9, 0x0c, 0xed, 0x39, 0xdb)1216 0x38, 0xd9, 0x0c, 0xed, 0x39, 0xdb)
1217 1217
1218/*1218/*
1219 * Time Synch GUID1219 * Time Synch GUID
1220 * {9527E630-D0AE-497b-ADCE-E80AB0175CAF}1220 * {9527E630-D0AE-497b-ADCE-E80AB0175CAF}
1221 */1221 */
1222#define HV_TS_GUID \1222#define HV_TS_GUID \
1223 .guid = UUID_LE(0x9527e630, 0xd0ae, 0x497b, 0xad, 0xce, \1223 .guid = GUID_INIT(0x9527e630, 0xd0ae, 0x497b, 0xad, 0xce, \
1224 0xe8, 0x0a, 0xb0, 0x17, 0x5c, 0xaf)1224 0xe8, 0x0a, 0xb0, 0x17, 0x5c, 0xaf)
1225 1225
1226/*1226/*
1227 * Heartbeat GUID1227 * Heartbeat GUID
1228 * {57164f39-9115-4e78-ab55-382f3bd5422d}1228 * {57164f39-9115-4e78-ab55-382f3bd5422d}
1229 */1229 */
1230#define HV_HEART_BEAT_GUID \1230#define HV_HEART_BEAT_GUID \
1231 .guid = UUID_LE(0x57164f39, 0x9115, 0x4e78, 0xab, 0x55, \1231 .guid = GUID_INIT(0x57164f39, 0x9115, 0x4e78, 0xab, 0x55, \
1232 0x38, 0x2f, 0x3b, 0xd5, 0x42, 0x2d)1232 0x38, 0x2f, 0x3b, 0xd5, 0x42, 0x2d)
1233 1233
1234/*1234/*
1235 * KVP GUID1235 * KVP GUID
1236 * {a9a0f4e7-5a45-4d96-b827-8a841e8c03e6}1236 * {a9a0f4e7-5a45-4d96-b827-8a841e8c03e6}
1237 */1237 */
1238#define HV_KVP_GUID \1238#define HV_KVP_GUID \
1239 .guid = UUID_LE(0xa9a0f4e7, 0x5a45, 0x4d96, 0xb8, 0x27, \1239 .guid = GUID_INIT(0xa9a0f4e7, 0x5a45, 0x4d96, 0xb8, 0x27, \
1240 0x8a, 0x84, 0x1e, 0x8c, 0x03, 0xe6)1240 0x8a, 0x84, 0x1e, 0x8c, 0x03, 0xe6)
1241 1241
1242/*1242/*
1243 * Dynamic memory GUID1243 * Dynamic memory GUID
1244 * {525074dc-8985-46e2-8057-a307dc18a502}1244 * {525074dc-8985-46e2-8057-a307dc18a502}
1245 */1245 */
1246#define HV_DM_GUID \1246#define HV_DM_GUID \
1247 .guid = UUID_LE(0x525074dc, 0x8985, 0x46e2, 0x80, 0x57, \1247 .guid = GUID_INIT(0x525074dc, 0x8985, 0x46e2, 0x80, 0x57, \
1248 0xa3, 0x07, 0xdc, 0x18, 0xa5, 0x02)1248 0xa3, 0x07, 0xdc, 0x18, 0xa5, 0x02)
1249 1249
1250/*1250/*
1251 * Mouse GUID1251 * Mouse GUID
1252 * {cfa8b69e-5b4a-4cc0-b98b-8ba1a1f3f95a}1252 * {cfa8b69e-5b4a-4cc0-b98b-8ba1a1f3f95a}
1253 */1253 */
1254#define HV_MOUSE_GUID \1254#define HV_MOUSE_GUID \
1255 .guid = UUID_LE(0xcfa8b69e, 0x5b4a, 0x4cc0, 0xb9, 0x8b, \1255 .guid = GUID_INIT(0xcfa8b69e, 0x5b4a, 0x4cc0, 0xb9, 0x8b, \
1256 0x8b, 0xa1, 0xa1, 0xf3, 0xf9, 0x5a)1256 0x8b, 0xa1, 0xa1, 0xf3, 0xf9, 0x5a)
1257 1257
1258/*1258/*
1259 * Keyboard GUID1259 * Keyboard GUID
1260 * {f912ad6d-2b17-48ea-bd65-f927a61c7684}1260 * {f912ad6d-2b17-48ea-bd65-f927a61c7684}
1261 */1261 */
1262#define HV_KBD_GUID \1262#define HV_KBD_GUID \
1263 .guid = UUID_LE(0xf912ad6d, 0x2b17, 0x48ea, 0xbd, 0x65, \1263 .guid = GUID_INIT(0xf912ad6d, 0x2b17, 0x48ea, 0xbd, 0x65, \
1264 0xf9, 0x27, 0xa6, 0x1c, 0x76, 0x84)1264 0xf9, 0x27, 0xa6, 0x1c, 0x76, 0x84)
1265 1265
1266/*1266/*
1267 * VSS (Backup/Restore) GUID1267 * VSS (Backup/Restore) GUID
1268 */1268 */
1269#define HV_VSS_GUID \1269#define HV_VSS_GUID \
1270 .guid = UUID_LE(0x35fa2e29, 0xea23, 0x4236, 0x96, 0xae, \1270 .guid = GUID_INIT(0x35fa2e29, 0xea23, 0x4236, 0x96, 0xae, \
1271 0x3a, 0x6e, 0xba, 0xcb, 0xa4, 0x40)1271 0x3a, 0x6e, 0xba, 0xcb, 0xa4, 0x40)
1272/*1272/*
1273 * Synthetic Video GUID1273 * Synthetic Video GUID
1274 * {DA0A7802-E377-4aac-8E77-0558EB1073F8}1274 * {DA0A7802-E377-4aac-8E77-0558EB1073F8}
1275 */1275 */
1276#define HV_SYNTHVID_GUID \1276#define HV_SYNTHVID_GUID \
1277 .guid = UUID_LE(0xda0a7802, 0xe377, 0x4aac, 0x8e, 0x77, \1277 .guid = GUID_INIT(0xda0a7802, 0xe377, 0x4aac, 0x8e, 0x77, \
1278 0x05, 0x58, 0xeb, 0x10, 0x73, 0xf8)1278 0x05, 0x58, 0xeb, 0x10, 0x73, 0xf8)
1279 1279
1280/*1280/*
1281 * Synthetic FC GUID1281 * Synthetic FC GUID
1282 * {2f9bcc4a-0069-4af3-b76b-6fd0be528cda}1282 * {2f9bcc4a-0069-4af3-b76b-6fd0be528cda}
1283 */1283 */
1284#define HV_SYNTHFC_GUID \1284#define HV_SYNTHFC_GUID \
1285 .guid = UUID_LE(0x2f9bcc4a, 0x0069, 0x4af3, 0xb7, 0x6b, \1285 .guid = GUID_INIT(0x2f9bcc4a, 0x0069, 0x4af3, 0xb7, 0x6b, \
1286 0x6f, 0xd0, 0xbe, 0x52, 0x8c, 0xda)1286 0x6f, 0xd0, 0xbe, 0x52, 0x8c, 0xda)
1287 1287
1288/*1288/*
1289 * Guest File Copy Service1289 * Guest File Copy Service
@@ -1291,16 +1291,16 @@ void vmbus_free_mmio(resource_size_t start, resource_size_t size); · 1 unmodified line
1291 */1291 */
1292 1292
1293#define HV_FCOPY_GUID \1293#define HV_FCOPY_GUID \
1294 .guid = UUID_LE(0x34d14be3, 0xdee4, 0x41c8, 0x9a, 0xe7, \1294 .guid = GUID_INIT(0x34d14be3, 0xdee4, 0x41c8, 0x9a, 0xe7, \
1295 0x6b, 0x17, 0x49, 0x77, 0xc1, 0x92)1295 0x6b, 0x17, 0x49, 0x77, 0xc1, 0x92)
1296 1296
1297/*1297/*
1298 * NetworkDirect. This is the guest RDMA service.1298 * NetworkDirect. This is the guest RDMA service.
1299 * {8c2eaf3d-32a7-4b09-ab99-bd1f1c86b501}1299 * {8c2eaf3d-32a7-4b09-ab99-bd1f1c86b501}
1300 */1300 */
1301#define HV_ND_GUID \1301#define HV_ND_GUID \
1302 .guid = UUID_LE(0x8c2eaf3d, 0x32a7, 0x4b09, 0xab, 0x99, \1302 .guid = GUID_INIT(0x8c2eaf3d, 0x32a7, 0x4b09, 0xab, 0x99, \
1303 0xbd, 0x1f, 0x1c, 0x86, 0xb5, 0x01)1303 0xbd, 0x1f, 0x1c, 0x86, 0xb5, 0x01)
1304 1304
1305/*1305/*
1306 * PCI Express Pass Through1306 * PCI Express Pass Through
@@ -1308,8 +1308,8 @@ void vmbus_free_mmio(resource_size_t start, resource_size_t size); · 1 unmodified line
1308 */1308 */
1309 1309
1310#define HV_PCIE_GUID \1310#define HV_PCIE_GUID \
1311 .guid = UUID_LE(0x44c4f61d, 0x4444, 0x4400, 0x9d, 0x52, \1311 .guid = GUID_INIT(0x44c4f61d, 0x4444, 0x4400, 0x9d, 0x52, \
1312 0x80, 0x2e, 0x27, 0xed, 0xe1, 0x9f)1312 0x80, 0x2e, 0x27, 0xed, 0xe1, 0x9f)
1313 1313
1314/*1314/*
1315 * Linux doesn't support the 3 devices: the first two are for1315 * Linux doesn't support the 3 devices: the first two are for
@@ -1321,16 +1321,16 @@ void vmbus_free_mmio(resource_size_t start, resource_size_t size); · 5 unmodified lines
1321 */1321 */
1322 1322
1323#define HV_AVMA1_GUID \1323#define HV_AVMA1_GUID \
1324 .guid = UUID_LE(0xf8e65716, 0x3cb3, 0x4a06, 0x9a, 0x60, \1324 .guid = GUID_INIT(0xf8e65716, 0x3cb3, 0x4a06, 0x9a, 0x60, \
1325 0x18, 0x89, 0xc5, 0xcc, 0xca, 0xb5)1325 0x18, 0x89, 0xc5, 0xcc, 0xca, 0xb5)
1326 1326
1327#define HV_AVMA2_GUID \1327#define HV_AVMA2_GUID \
1328 .guid = UUID_LE(0x3375baf4, 0x9e15, 0x4b30, 0xb7, 0x65, \1328 .guid = GUID_INIT(0x3375baf4, 0x9e15, 0x4b30, 0xb7, 0x65, \
1329 0x67, 0xac, 0xb1, 0x0d, 0x60, 0x7b)1329 0x67, 0xac, 0xb1, 0x0d, 0x60, 0x7b)
1330 1330
1331#define HV_RDV_GUID \1331#define HV_RDV_GUID \
1332 .guid = UUID_LE(0x276aacf4, 0xac15, 0x426c, 0x98, 0xdd, \1332 .guid = GUID_INIT(0x276aacf4, 0xac15, 0x426c, 0x98, 0xdd, \
1333 0x75, 0x21, 0xad, 0x3f, 0x01, 0xfe)1333 0x75, 0x21, 0xad, 0x3f, 0x01, 0xfe)
1334 1334
1335/*1335/*
1336 * Common header for Hyper-V ICs1336 * Common header for Hyper-V ICs
@@ -1432,7 +1432,7 @@ struct ictimesync_ref_data { · 95 unmodified lines
1432struct hyperv_service_callback {1432struct hyperv_service_callback {
1433 u8 msg_type;1433 u8 msg_type;
1434 char *log_msg;1434 char *log_msg;
1435 uuid_le data;1435 guid_t data;
1436 struct vmbus_channel *channel;1436 struct vmbus_channel *channel;
1437 void (*callback)(void *context);1437 void (*callback)(void *context);
1438};1438};
@@ -1452,8 +1452,8 @@ void vmbus_setevent(struct vmbus_channel *channel); · 13 unmodified lines
1452 1452
1453extern __u32 vmbus_proto_version;1453extern __u32 vmbus_proto_version;
1454 1454
1455int vmbus_send_tl_connect_request(const uuid_le *shv_guest_servie_id,1455int vmbus_send_tl_connect_request(const guid_t *shv_guest_servie_id,
1456 const uuid_le *shv_host_servie_id);1456 const guid_t *shv_host_servie_id);
1457void vmbus_set_event(struct vmbus_channel *channel);1457void vmbus_set_event(struct vmbus_channel *channel);
1458 1458
1459/* Get the start of the ring buffer. */1459/* Get the start of the ring buffer. */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t