From: K. Y. Srinivasan Date: Thu, 16 Jan 2014 01:12:58 +0000 (-0800) Subject: Drivers: hv: vmbus: Specify the target CPU that should receive notification X-Git-Tag: v3.12.20~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b6ea659ce4e37ffab2f6f4aac9582d3af5ec857;p=thirdparty%2Fkernel%2Fstable.git Drivers: hv: vmbus: Specify the target CPU that should receive notification commit e28bab4828354583bb66ac09021ca69b341a7db4 upstream. During the initial VMBUS connect phase, starting with WS2012 R2, we should specify the VPCU in the guest that should receive the notification. Fix this issue. This fix is required to properly connect to the host in the kexeced kernel. Signed-off-by: K. Y. Srinivasan Cc: [3.9+] Signed-off-by: Greg Kroah-Hartman Signed-off-by: Jiri Slaby --- diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 13c23a4789de0..d6b1e29b0ad26 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c @@ -79,6 +79,8 @@ static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo, msg->monitor_page2 = virt_to_phys( (void *)((unsigned long)vmbus_connection.monitor_pages + PAGE_SIZE)); + if (version == VERSION_WIN8) + msg->target_vcpu = hv_context.vp_index[smp_processor_id()]; /* * Add to list before we send the request since we may diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index d98503bde7e9b..1835c615948c0 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -884,7 +884,7 @@ struct vmbus_channel_relid_released { struct vmbus_channel_initiate_contact { struct vmbus_channel_message_header header; u32 vmbus_version_requested; - u32 padding2; + u32 target_vcpu; /* The VCPU the host should respond to */ u64 interrupt_page; u64 monitor_page1; u64 monitor_page2;