diff options
| -rw-r--r-- | drivers/hv/hv.c | 24 | ||||
| -rw-r--r-- | drivers/hv/hyperv_vmbus.h | 8 |
2 files changed, 0 insertions, 32 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 76304a622140..e989c6fd1f8f 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c | |||
| @@ -34,8 +34,6 @@ | |||
| 34 | struct hv_context hv_context = { | 34 | struct hv_context hv_context = { |
| 35 | .synic_initialized = false, | 35 | .synic_initialized = false, |
| 36 | .hypercall_page = NULL, | 36 | .hypercall_page = NULL, |
| 37 | .signal_event_param = NULL, | ||
| 38 | .signal_event_buffer = NULL, | ||
| 39 | }; | 37 | }; |
| 40 | 38 | ||
| 41 | /* | 39 | /* |
| @@ -170,24 +168,6 @@ int hv_init(void) | |||
| 170 | 168 | ||
| 171 | hv_context.hypercall_page = virtaddr; | 169 | hv_context.hypercall_page = virtaddr; |
| 172 | 170 | ||
| 173 | /* Setup the global signal event param for the signal event hypercall */ | ||
| 174 | hv_context.signal_event_buffer = | ||
| 175 | kmalloc(sizeof(struct hv_input_signal_event_buffer), | ||
| 176 | GFP_KERNEL); | ||
| 177 | if (!hv_context.signal_event_buffer) | ||
| 178 | goto cleanup; | ||
| 179 | |||
| 180 | hv_context.signal_event_param = | ||
| 181 | (struct hv_input_signal_event *) | ||
| 182 | (ALIGN((unsigned long) | ||
| 183 | hv_context.signal_event_buffer, | ||
| 184 | HV_HYPERCALL_PARAM_ALIGN)); | ||
| 185 | hv_context.signal_event_param->connectionid.asu32 = 0; | ||
| 186 | hv_context.signal_event_param->connectionid.u.id = | ||
| 187 | VMBUS_EVENT_CONNECTION_ID; | ||
| 188 | hv_context.signal_event_param->flag_number = 0; | ||
| 189 | hv_context.signal_event_param->rsvdz = 0; | ||
| 190 | |||
| 191 | return 0; | 171 | return 0; |
| 192 | 172 | ||
| 193 | cleanup: | 173 | cleanup: |
| @@ -215,10 +195,6 @@ void hv_cleanup(void) | |||
| 215 | /* Reset our OS id */ | 195 | /* Reset our OS id */ |
| 216 | wrmsrl(HV_X64_MSR_GUEST_OS_ID, 0); | 196 | wrmsrl(HV_X64_MSR_GUEST_OS_ID, 0); |
| 217 | 197 | ||
| 218 | kfree(hv_context.signal_event_buffer); | ||
| 219 | hv_context.signal_event_buffer = NULL; | ||
| 220 | hv_context.signal_event_param = NULL; | ||
| 221 | |||
| 222 | if (hv_context.hypercall_page) { | 198 | if (hv_context.hypercall_page) { |
| 223 | hypercall_msr.as_uint64 = 0; | 199 | hypercall_msr.as_uint64 = 0; |
| 224 | wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); | 200 | wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); |
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 6bbc197cbdfa..9135a6fcf3bd 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h | |||
| @@ -492,14 +492,6 @@ struct hv_context { | |||
| 492 | 492 | ||
| 493 | bool synic_initialized; | 493 | bool synic_initialized; |
| 494 | 494 | ||
| 495 | /* | ||
| 496 | * This is used as an input param to HvCallSignalEvent hypercall. The | ||
| 497 | * input param is immutable in our usage and must be dynamic mem (vs | ||
| 498 | * stack or global). */ | ||
| 499 | struct hv_input_signal_event_buffer *signal_event_buffer; | ||
| 500 | /* 8-bytes aligned of the buffer above */ | ||
| 501 | struct hv_input_signal_event *signal_event_param; | ||
| 502 | |||
| 503 | void *synic_message_page[NR_CPUS]; | 495 | void *synic_message_page[NR_CPUS]; |
| 504 | void *synic_event_page[NR_CPUS]; | 496 | void *synic_event_page[NR_CPUS]; |
| 505 | /* | 497 | /* |
