@@ -105,45 +105,6 @@ void __init hv_common_free(void)
105
105
hv_synic_eventring_tail = NULL ;
106
106
}
107
107
108
- /*
109
- * Functions for allocating and freeing memory with size and
110
- * alignment HV_HYP_PAGE_SIZE. These functions are needed because
111
- * the guest page size may not be the same as the Hyper-V page
112
- * size. We depend upon kmalloc() aligning power-of-two size
113
- * allocations to the allocation size boundary, so that the
114
- * allocated memory appears to Hyper-V as a page of the size
115
- * it expects.
116
- */
117
-
118
- void * hv_alloc_hyperv_page (void )
119
- {
120
- BUILD_BUG_ON (PAGE_SIZE < HV_HYP_PAGE_SIZE );
121
-
122
- if (PAGE_SIZE == HV_HYP_PAGE_SIZE )
123
- return (void * )__get_free_page (GFP_KERNEL );
124
- else
125
- return kmalloc (HV_HYP_PAGE_SIZE , GFP_KERNEL );
126
- }
127
- EXPORT_SYMBOL_GPL (hv_alloc_hyperv_page );
128
-
129
- void * hv_alloc_hyperv_zeroed_page (void )
130
- {
131
- if (PAGE_SIZE == HV_HYP_PAGE_SIZE )
132
- return (void * )__get_free_page (GFP_KERNEL | __GFP_ZERO );
133
- else
134
- return kzalloc (HV_HYP_PAGE_SIZE , GFP_KERNEL );
135
- }
136
- EXPORT_SYMBOL_GPL (hv_alloc_hyperv_zeroed_page );
137
-
138
- void hv_free_hyperv_page (void * addr )
139
- {
140
- if (PAGE_SIZE == HV_HYP_PAGE_SIZE )
141
- free_page ((unsigned long )addr );
142
- else
143
- kfree (addr );
144
- }
145
- EXPORT_SYMBOL_GPL (hv_free_hyperv_page );
146
-
147
108
static void * hv_panic_page ;
148
109
149
110
/*
0 commit comments