hyperv_vmbus.h (63ed4e0c67df332681ebfef6eca6852da28d6300) hyperv_vmbus.h (8de8af7e0873c4fdac2205327dff922819e16657)
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 *

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

35 */
36#define HV_UTIL_TIMEOUT 30
37
38/*
39 * Timeout for guest-host handshake for services.
40 */
41#define HV_UTIL_NEGO_TIMEOUT 55
42
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 *

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

35 */
36#define HV_UTIL_TIMEOUT 30
37
38/*
39 * Timeout for guest-host handshake for services.
40 */
41#define HV_UTIL_NEGO_TIMEOUT 55
42
43/*
44 * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
45 * is set by CPUID(HVCPUID_VERSION_FEATURES).
46 */
47enum hv_cpuid_function {
48 HVCPUID_VERSION_FEATURES = 0x00000001,
49 HVCPUID_VENDOR_MAXFUNCTION = 0x40000000,
50 HVCPUID_INTERFACE = 0x40000001,
51
52 /*
53 * The remaining functions depend on the value of
54 * HVCPUID_INTERFACE
55 */
56 HVCPUID_VERSION = 0x40000002,
57 HVCPUID_FEATURES = 0x40000003,
58 HVCPUID_ENLIGHTENMENT_INFO = 0x40000004,
59 HVCPUID_IMPLEMENTATION_LIMITS = 0x40000005,
60};
61
62#define HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE 0x400
63
64#define HV_X64_MSR_CRASH_P0 0x40000100
65#define HV_X64_MSR_CRASH_P1 0x40000101
66#define HV_X64_MSR_CRASH_P2 0x40000102
67#define HV_X64_MSR_CRASH_P3 0x40000103
68#define HV_X64_MSR_CRASH_P4 0x40000104
69#define HV_X64_MSR_CRASH_CTL 0x40000105

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

439extern void hv_synic_free(void);
440
441extern int hv_synic_init(unsigned int cpu);
442
443extern int hv_synic_cleanup(unsigned int cpu);
444
445extern void hv_synic_clockevents_cleanup(void);
446
43#define HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE 0x400
44
45#define HV_X64_MSR_CRASH_P0 0x40000100
46#define HV_X64_MSR_CRASH_P1 0x40000101
47#define HV_X64_MSR_CRASH_P2 0x40000102
48#define HV_X64_MSR_CRASH_P3 0x40000103
49#define HV_X64_MSR_CRASH_P4 0x40000104
50#define HV_X64_MSR_CRASH_CTL 0x40000105

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

420extern void hv_synic_free(void);
421
422extern int hv_synic_init(unsigned int cpu);
423
424extern int hv_synic_cleanup(unsigned int cpu);
425
426extern void hv_synic_clockevents_cleanup(void);
427
447/*
448 * Host version information.
449 */
450extern unsigned int host_info_eax;
451extern unsigned int host_info_ebx;
452extern unsigned int host_info_ecx;
453extern unsigned int host_info_edx;
454
455/* Interface */
456
457
458int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info,
459 struct page *pages, u32 pagecnt);
460
461void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
462

--- 193 unchanged lines hidden ---
428/* Interface */
429
430
431int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info,
432 struct page *pages, u32 pagecnt);
433
434void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
435

--- 193 unchanged lines hidden ---