hyperv_vmbus.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. /*
  2. *
  3. * Copyright (c) 2011, 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. *
  9. * This program is distributed in the hope it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  16. * Place - Suite 330, Boston, MA 02111-1307 USA.
  17. *
  18. * Authors:
  19. * Haiyang Zhang <haiyangz@microsoft.com>
  20. * Hank Janssen <hjanssen@microsoft.com>
  21. * K. Y. Srinivasan <kys@microsoft.com>
  22. *
  23. */
  24. #ifndef _HYPERV_VMBUS_H
  25. #define _HYPERV_VMBUS_H
  26. #include <linux/list.h>
  27. #include <asm/sync_bitops.h>
  28. #include <linux/atomic.h>
  29. #include <linux/hyperv.h>
  30. /*
  31. * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
  32. * is set by CPUID(HVCPUID_VERSION_FEATURES).
  33. */
  34. enum hv_cpuid_function {
  35. HVCPUID_VERSION_FEATURES = 0x00000001,
  36. HVCPUID_VENDOR_MAXFUNCTION = 0x40000000,
  37. HVCPUID_INTERFACE = 0x40000001,
  38. /*
  39. * The remaining functions depend on the value of
  40. * HVCPUID_INTERFACE
  41. */
  42. HVCPUID_VERSION = 0x40000002,
  43. HVCPUID_FEATURES = 0x40000003,
  44. HVCPUID_ENLIGHTENMENT_INFO = 0x40000004,
  45. HVCPUID_IMPLEMENTATION_LIMITS = 0x40000005,
  46. };
  47. /* Define version of the synthetic interrupt controller. */
  48. #define HV_SYNIC_VERSION (1)
  49. /* Define the expected SynIC version. */
  50. #define HV_SYNIC_VERSION_1 (0x1)
  51. /* Define synthetic interrupt controller message constants. */
  52. #define HV_MESSAGE_SIZE (256)
  53. #define HV_MESSAGE_PAYLOAD_BYTE_COUNT (240)
  54. #define HV_MESSAGE_PAYLOAD_QWORD_COUNT (30)
  55. #define HV_ANY_VP (0xFFFFFFFF)
  56. /* Define synthetic interrupt controller flag constants. */
  57. #define HV_EVENT_FLAGS_COUNT (256 * 8)
  58. #define HV_EVENT_FLAGS_BYTE_COUNT (256)
  59. #define HV_EVENT_FLAGS_DWORD_COUNT (256 / sizeof(u32))
  60. /* Define hypervisor message types. */
  61. enum hv_message_type {
  62. HVMSG_NONE = 0x00000000,
  63. /* Memory access messages. */
  64. HVMSG_UNMAPPED_GPA = 0x80000000,
  65. HVMSG_GPA_INTERCEPT = 0x80000001,
  66. /* Timer notification messages. */
  67. HVMSG_TIMER_EXPIRED = 0x80000010,
  68. /* Error messages. */
  69. HVMSG_INVALID_VP_REGISTER_VALUE = 0x80000020,
  70. HVMSG_UNRECOVERABLE_EXCEPTION = 0x80000021,
  71. HVMSG_UNSUPPORTED_FEATURE = 0x80000022,
  72. /* Trace buffer complete messages. */
  73. HVMSG_EVENTLOG_BUFFERCOMPLETE = 0x80000040,
  74. /* Platform-specific processor intercept messages. */
  75. HVMSG_X64_IOPORT_INTERCEPT = 0x80010000,
  76. HVMSG_X64_MSR_INTERCEPT = 0x80010001,
  77. HVMSG_X64_CPUID_INTERCEPT = 0x80010002,
  78. HVMSG_X64_EXCEPTION_INTERCEPT = 0x80010003,
  79. HVMSG_X64_APIC_EOI = 0x80010004,
  80. HVMSG_X64_LEGACY_FP_ERROR = 0x80010005
  81. };
  82. /* Define the number of synthetic interrupt sources. */
  83. #define HV_SYNIC_SINT_COUNT (16)
  84. #define HV_SYNIC_STIMER_COUNT (4)
  85. /* Define invalid partition identifier. */
  86. #define HV_PARTITION_ID_INVALID ((u64)0x0)
  87. /* Define port identifier type. */
  88. union hv_port_id {
  89. u32 asu32;
  90. struct {
  91. u32 id:24;
  92. u32 reserved:8;
  93. } u ;
  94. };
  95. /* Define port type. */
  96. enum hv_port_type {
  97. HVPORT_MSG = 1,
  98. HVPORT_EVENT = 2,
  99. HVPORT_MONITOR = 3
  100. };
  101. /* Define port information structure. */
  102. struct hv_port_info {
  103. enum hv_port_type port_type;
  104. u32 padding;
  105. union {
  106. struct {
  107. u32 target_sint;
  108. u32 target_vp;
  109. u64 rsvdz;
  110. } message_port_info;
  111. struct {
  112. u32 target_sint;
  113. u32 target_vp;
  114. u16 base_flag_bumber;
  115. u16 flag_count;
  116. u32 rsvdz;
  117. } event_port_info;
  118. struct {
  119. u64 monitor_address;
  120. u64 rsvdz;
  121. } monitor_port_info;
  122. };
  123. };
  124. struct hv_connection_info {
  125. enum hv_port_type port_type;
  126. u32 padding;
  127. union {
  128. struct {
  129. u64 rsvdz;
  130. } message_connection_info;
  131. struct {
  132. u64 rsvdz;
  133. } event_connection_info;
  134. struct {
  135. u64 monitor_address;
  136. } monitor_connection_info;
  137. };
  138. };
  139. /* Define synthetic interrupt controller message flags. */
  140. union hv_message_flags {
  141. u8 asu8;
  142. struct {
  143. u8 msg_pending:1;
  144. u8 reserved:7;
  145. };
  146. };
  147. /* Define synthetic interrupt controller message header. */
  148. struct hv_message_header {
  149. enum hv_message_type message_type;
  150. u8 payload_size;
  151. union hv_message_flags message_flags;
  152. u8 reserved[2];
  153. union {
  154. u64 sender;
  155. union hv_port_id port;
  156. };
  157. };
  158. /* Define timer message payload structure. */
  159. struct hv_timer_message_payload {
  160. u32 timer_index;
  161. u32 reserved;
  162. u64 expiration_time; /* When the timer expired */
  163. u64 delivery_time; /* When the message was delivered */
  164. };
  165. /* Define synthetic interrupt controller message format. */
  166. struct hv_message {
  167. struct hv_message_header header;
  168. union {
  169. u64 payload[HV_MESSAGE_PAYLOAD_QWORD_COUNT];
  170. } u ;
  171. };
  172. /* Define the number of message buffers associated with each port. */
  173. #define HV_PORT_MESSAGE_BUFFER_COUNT (16)
  174. /* Define the synthetic interrupt message page layout. */
  175. struct hv_message_page {
  176. struct hv_message sint_message[HV_SYNIC_SINT_COUNT];
  177. };
  178. /* Define the synthetic interrupt controller event flags format. */
  179. union hv_synic_event_flags {
  180. u8 flags8[HV_EVENT_FLAGS_BYTE_COUNT];
  181. u32 flags32[HV_EVENT_FLAGS_DWORD_COUNT];
  182. };
  183. /* Define the synthetic interrupt flags page layout. */
  184. struct hv_synic_event_flags_page {
  185. union hv_synic_event_flags sintevent_flags[HV_SYNIC_SINT_COUNT];
  186. };
  187. /* Define SynIC control register. */
  188. union hv_synic_scontrol {
  189. u64 as_uint64;
  190. struct {
  191. u64 enable:1;
  192. u64 reserved:63;
  193. };
  194. };
  195. /* Define synthetic interrupt source. */
  196. union hv_synic_sint {
  197. u64 as_uint64;
  198. struct {
  199. u64 vector:8;
  200. u64 reserved1:8;
  201. u64 masked:1;
  202. u64 auto_eoi:1;
  203. u64 reserved2:46;
  204. };
  205. };
  206. /* Define the format of the SIMP register */
  207. union hv_synic_simp {
  208. u64 as_uint64;
  209. struct {
  210. u64 simp_enabled:1;
  211. u64 preserved:11;
  212. u64 base_simp_gpa:52;
  213. };
  214. };
  215. /* Define the format of the SIEFP register */
  216. union hv_synic_siefp {
  217. u64 as_uint64;
  218. struct {
  219. u64 siefp_enabled:1;
  220. u64 preserved:11;
  221. u64 base_siefp_gpa:52;
  222. };
  223. };
  224. /* Definitions for the monitored notification facility */
  225. union hv_monitor_trigger_group {
  226. u64 as_uint64;
  227. struct {
  228. u32 pending;
  229. u32 armed;
  230. };
  231. };
  232. struct hv_monitor_parameter {
  233. union hv_connection_id connectionid;
  234. u16 flagnumber;
  235. u16 rsvdz;
  236. };
  237. union hv_monitor_trigger_state {
  238. u32 asu32;
  239. struct {
  240. u32 group_enable:4;
  241. u32 rsvdz:28;
  242. };
  243. };
  244. /* struct hv_monitor_page Layout */
  245. /* ------------------------------------------------------ */
  246. /* | 0 | TriggerState (4 bytes) | Rsvd1 (4 bytes) | */
  247. /* | 8 | TriggerGroup[0] | */
  248. /* | 10 | TriggerGroup[1] | */
  249. /* | 18 | TriggerGroup[2] | */
  250. /* | 20 | TriggerGroup[3] | */
  251. /* | 28 | Rsvd2[0] | */
  252. /* | 30 | Rsvd2[1] | */
  253. /* | 38 | Rsvd2[2] | */
  254. /* | 40 | NextCheckTime[0][0] | NextCheckTime[0][1] | */
  255. /* | ... | */
  256. /* | 240 | Latency[0][0..3] | */
  257. /* | 340 | Rsvz3[0] | */
  258. /* | 440 | Parameter[0][0] | */
  259. /* | 448 | Parameter[0][1] | */
  260. /* | ... | */
  261. /* | 840 | Rsvd4[0] | */
  262. /* ------------------------------------------------------ */
  263. struct hv_monitor_page {
  264. union hv_monitor_trigger_state trigger_state;
  265. u32 rsvdz1;
  266. union hv_monitor_trigger_group trigger_group[4];
  267. u64 rsvdz2[3];
  268. s32 next_checktime[4][32];
  269. u16 latency[4][32];
  270. u64 rsvdz3[32];
  271. struct hv_monitor_parameter parameter[4][32];
  272. u8 rsvdz4[1984];
  273. };
  274. /* Declare the various hypercall operations. */
  275. enum hv_call_code {
  276. HVCALL_POST_MESSAGE = 0x005c,
  277. HVCALL_SIGNAL_EVENT = 0x005d,
  278. };
  279. /* Definition of the hv_post_message hypercall input structure. */
  280. struct hv_input_post_message {
  281. union hv_connection_id connectionid;
  282. u32 reserved;
  283. enum hv_message_type message_type;
  284. u32 payload_size;
  285. u64 payload[HV_MESSAGE_PAYLOAD_QWORD_COUNT];
  286. };
  287. /*
  288. * Versioning definitions used for guests reporting themselves to the
  289. * hypervisor, and visa versa.
  290. */
  291. /* Version info reported by guest OS's */
  292. enum hv_guest_os_vendor {
  293. HVGUESTOS_VENDOR_MICROSOFT = 0x0001
  294. };
  295. enum hv_guest_os_microsoft_ids {
  296. HVGUESTOS_MICROSOFT_UNDEFINED = 0x00,
  297. HVGUESTOS_MICROSOFT_MSDOS = 0x01,
  298. HVGUESTOS_MICROSOFT_WINDOWS3X = 0x02,
  299. HVGUESTOS_MICROSOFT_WINDOWS9X = 0x03,
  300. HVGUESTOS_MICROSOFT_WINDOWSNT = 0x04,
  301. HVGUESTOS_MICROSOFT_WINDOWSCE = 0x05
  302. };
  303. /*
  304. * Declare the MSR used to identify the guest OS.
  305. */
  306. #define HV_X64_MSR_GUEST_OS_ID 0x40000000
  307. union hv_x64_msr_guest_os_id_contents {
  308. u64 as_uint64;
  309. struct {
  310. u64 build_number:16;
  311. u64 service_version:8; /* Service Pack, etc. */
  312. u64 minor_version:8;
  313. u64 major_version:8;
  314. u64 os_id:8; /* enum hv_guest_os_microsoft_ids (if Vendor=MS) */
  315. u64 vendor_id:16; /* enum hv_guest_os_vendor */
  316. };
  317. };
  318. /*
  319. * Declare the MSR used to setup pages used to communicate with the hypervisor.
  320. */
  321. #define HV_X64_MSR_HYPERCALL 0x40000001
  322. union hv_x64_msr_hypercall_contents {
  323. u64 as_uint64;
  324. struct {
  325. u64 enable:1;
  326. u64 reserved:11;
  327. u64 guest_physical_address:52;
  328. };
  329. };
  330. enum {
  331. VMBUS_MESSAGE_CONNECTION_ID = 1,
  332. VMBUS_MESSAGE_PORT_ID = 1,
  333. VMBUS_EVENT_CONNECTION_ID = 2,
  334. VMBUS_EVENT_PORT_ID = 2,
  335. VMBUS_MONITOR_CONNECTION_ID = 3,
  336. VMBUS_MONITOR_PORT_ID = 3,
  337. VMBUS_MESSAGE_SINT = 2,
  338. };
  339. /* #defines */
  340. #define HV_PRESENT_BIT 0x80000000
  341. /*
  342. * The guest OS needs to register the guest ID with the hypervisor.
  343. * The guest ID is a 64 bit entity and the structure of this ID is
  344. * specified in the Hyper-V specification:
  345. *
  346. * http://msdn.microsoft.com/en-us/library/windows/hardware/ff542653%28v=vs.85%29.aspx
  347. *
  348. * While the current guideline does not specify how Linux guest ID(s)
  349. * need to be generated, our plan is to publish the guidelines for
  350. * Linux and other guest operating systems that currently are hosted
  351. * on Hyper-V. The implementation here conforms to this yet
  352. * unpublished guidelines.
  353. *
  354. *
  355. * Bit(s)
  356. * 63 - Indicates if the OS is Open Source or not; 1 is Open Source
  357. * 62:56 - Os Type; Linux is 0x100
  358. * 55:48 - Distro specific identification
  359. * 47:16 - Linux kernel version number
  360. * 15:0 - Distro specific identification
  361. *
  362. *
  363. */
  364. #define HV_LINUX_VENDOR_ID 0x8100
  365. /*
  366. * Generate the guest ID based on the guideline described above.
  367. */
  368. static inline __u64 generate_guest_id(__u8 d_info1, __u32 kernel_version,
  369. __u16 d_info2)
  370. {
  371. __u64 guest_id = 0;
  372. guest_id = (((__u64)HV_LINUX_VENDOR_ID) << 48);
  373. guest_id |= (((__u64)(d_info1)) << 48);
  374. guest_id |= (((__u64)(kernel_version)) << 16);
  375. guest_id |= ((__u64)(d_info2));
  376. return guest_id;
  377. }
  378. #define HV_CPU_POWER_MANAGEMENT (1 << 0)
  379. #define HV_RECOMMENDATIONS_MAX 4
  380. #define HV_X64_MAX 5
  381. #define HV_CAPS_MAX 8
  382. #define HV_HYPERCALL_PARAM_ALIGN sizeof(u64)
  383. /* Service definitions */
  384. #define HV_SERVICE_PARENT_PORT (0)
  385. #define HV_SERVICE_PARENT_CONNECTION (0)
  386. #define HV_SERVICE_CONNECT_RESPONSE_SUCCESS (0)
  387. #define HV_SERVICE_CONNECT_RESPONSE_INVALID_PARAMETER (1)
  388. #define HV_SERVICE_CONNECT_RESPONSE_UNKNOWN_SERVICE (2)
  389. #define HV_SERVICE_CONNECT_RESPONSE_CONNECTION_REJECTED (3)
  390. #define HV_SERVICE_CONNECT_REQUEST_MESSAGE_ID (1)
  391. #define HV_SERVICE_CONNECT_RESPONSE_MESSAGE_ID (2)
  392. #define HV_SERVICE_DISCONNECT_REQUEST_MESSAGE_ID (3)
  393. #define HV_SERVICE_DISCONNECT_RESPONSE_MESSAGE_ID (4)
  394. #define HV_SERVICE_MAX_MESSAGE_ID (4)
  395. #define HV_SERVICE_PROTOCOL_VERSION (0x0010)
  396. #define HV_CONNECT_PAYLOAD_BYTE_COUNT 64
  397. /* #define VMBUS_REVISION_NUMBER 6 */
  398. /* Our local vmbus's port and connection id. Anything >0 is fine */
  399. /* #define VMBUS_PORT_ID 11 */
  400. /* 628180B8-308D-4c5e-B7DB-1BEB62E62EF4 */
  401. static const uuid_le VMBUS_SERVICE_ID = {
  402. .b = {
  403. 0xb8, 0x80, 0x81, 0x62, 0x8d, 0x30, 0x5e, 0x4c,
  404. 0xb7, 0xdb, 0x1b, 0xeb, 0x62, 0xe6, 0x2e, 0xf4
  405. },
  406. };
  407. struct hv_context {
  408. /* We only support running on top of Hyper-V
  409. * So at this point this really can only contain the Hyper-V ID
  410. */
  411. u64 guestid;
  412. void *hypercall_page;
  413. bool synic_initialized;
  414. void *synic_message_page[NR_CPUS];
  415. void *synic_event_page[NR_CPUS];
  416. /*
  417. * Hypervisor's notion of virtual processor ID is different from
  418. * Linux' notion of CPU ID. This information can only be retrieved
  419. * in the context of the calling CPU. Setup a map for easy access
  420. * to this information:
  421. *
  422. * vp_index[a] is the Hyper-V's processor ID corresponding to
  423. * Linux cpuid 'a'.
  424. */
  425. u32 vp_index[NR_CPUS];
  426. /*
  427. * Starting with win8, we can take channel interrupts on any CPU;
  428. * we will manage the tasklet that handles events on a per CPU
  429. * basis.
  430. */
  431. struct tasklet_struct *event_dpc[NR_CPUS];
  432. };
  433. extern struct hv_context hv_context;
  434. /* Hv Interface */
  435. extern int hv_init(void);
  436. extern void hv_cleanup(void);
  437. extern int hv_post_message(union hv_connection_id connection_id,
  438. enum hv_message_type message_type,
  439. void *payload, size_t payload_size);
  440. extern u16 hv_signal_event(void *con_id);
  441. extern void hv_synic_init(void *irqarg);
  442. extern void hv_synic_cleanup(void *arg);
  443. /*
  444. * Host version information.
  445. */
  446. extern unsigned int host_info_eax;
  447. extern unsigned int host_info_ebx;
  448. extern unsigned int host_info_ecx;
  449. extern unsigned int host_info_edx;
  450. /* Interface */
  451. int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info, void *buffer,
  452. u32 buflen);
  453. void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
  454. int hv_ringbuffer_write(struct hv_ring_buffer_info *ring_info,
  455. struct scatterlist *sglist,
  456. u32 sgcount, bool *signal);
  457. int hv_ringbuffer_peek(struct hv_ring_buffer_info *ring_info, void *buffer,
  458. u32 buflen);
  459. int hv_ringbuffer_read(struct hv_ring_buffer_info *ring_info,
  460. void *buffer,
  461. u32 buflen,
  462. u32 offset, bool *signal);
  463. void hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
  464. struct hv_ring_buffer_debug_info *debug_info);
  465. void hv_begin_read(struct hv_ring_buffer_info *rbi);
  466. u32 hv_end_read(struct hv_ring_buffer_info *rbi);
  467. /*
  468. * Maximum channels is determined by the size of the interrupt page
  469. * which is PAGE_SIZE. 1/2 of PAGE_SIZE is for send endpoint interrupt
  470. * and the other is receive endpoint interrupt
  471. */
  472. #define MAX_NUM_CHANNELS ((PAGE_SIZE >> 1) << 3) /* 16348 channels */
  473. /* The value here must be in multiple of 32 */
  474. /* TODO: Need to make this configurable */
  475. #define MAX_NUM_CHANNELS_SUPPORTED 256
  476. enum vmbus_connect_state {
  477. DISCONNECTED,
  478. CONNECTING,
  479. CONNECTED,
  480. DISCONNECTING
  481. };
  482. #define MAX_SIZE_CHANNEL_MESSAGE HV_MESSAGE_PAYLOAD_BYTE_COUNT
  483. struct vmbus_connection {
  484. enum vmbus_connect_state conn_state;
  485. atomic_t next_gpadl_handle;
  486. /*
  487. * Represents channel interrupts. Each bit position represents a
  488. * channel. When a channel sends an interrupt via VMBUS, it finds its
  489. * bit in the sendInterruptPage, set it and calls Hv to generate a port
  490. * event. The other end receives the port event and parse the
  491. * recvInterruptPage to see which bit is set
  492. */
  493. void *int_page;
  494. void *send_int_page;
  495. void *recv_int_page;
  496. /*
  497. * 2 pages - 1st page for parent->child notification and 2nd
  498. * is child->parent notification
  499. */
  500. void *monitor_pages;
  501. struct list_head chn_msg_list;
  502. spinlock_t channelmsg_lock;
  503. /* List of channels */
  504. struct list_head chn_list;
  505. spinlock_t channel_lock;
  506. struct workqueue_struct *work_queue;
  507. };
  508. struct vmbus_msginfo {
  509. /* Bookkeeping stuff */
  510. struct list_head msglist_entry;
  511. /* The message itself */
  512. unsigned char msg[0];
  513. };
  514. extern struct vmbus_connection vmbus_connection;
  515. /* General vmbus interface */
  516. struct hv_device *vmbus_device_create(uuid_le *type,
  517. uuid_le *instance,
  518. struct vmbus_channel *channel);
  519. int vmbus_device_register(struct hv_device *child_device_obj);
  520. void vmbus_device_unregister(struct hv_device *device_obj);
  521. /* static void */
  522. /* VmbusChildDeviceDestroy( */
  523. /* struct hv_device *); */
  524. struct vmbus_channel *relid2channel(u32 relid);
  525. void vmbus_free_channels(void);
  526. /* Connection interface */
  527. int vmbus_connect(void);
  528. int vmbus_post_msg(void *buffer, size_t buflen);
  529. int vmbus_set_event(struct vmbus_channel *channel);
  530. void vmbus_on_event(unsigned long data);
  531. #endif /* _HYPERV_VMBUS_H */