Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228263
b: refs/heads/master
c: 6d26e38
h: refs/heads/master
i:
  228261: 91b7af4
  228259: 31fb272
  228255: df1db47
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Dec 2, 2010
1 parent 4a93cc0 commit 6c8e588
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0bdb250c69251499f53a4ac6f9dae117da490696
refs/heads/master: 6d26e38fa2085ab3ba37a52e34caf46f8e049544
60 changes: 23 additions & 37 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,40 +294,6 @@ int vmbus_on_isr(struct hv_driver *drv)
return ret;
}

/*
* VmbusInitialize - Main entry point
*/
static int VmbusInitialize(struct hv_driver *driver)
{
int ret;

DPRINT_INFO(VMBUS, "+++++++ HV Driver version = %s +++++++",
HV_DRV_VERSION);
DPRINT_INFO(VMBUS, "+++++++ Vmbus supported version = %d +++++++",
VMBUS_REVISION_NUMBER);
DPRINT_INFO(VMBUS, "+++++++ Vmbus using SINT %d +++++++",
VMBUS_MESSAGE_SINT);
DPRINT_DBG(VMBUS, "sizeof(vmbus_channel_packet_page_buffer)=%zd, "
"sizeof(VMBUS_CHANNEL_PACKET_MULITPAGE_BUFFER)=%zd",
sizeof(struct vmbus_channel_packet_page_buffer),
sizeof(struct vmbus_channel_packet_multipage_buffer));

driver->name = gDriverName;
memcpy(&driver->deviceType, &gVmbusDeviceType, sizeof(struct hv_guid));

/* Setup dispatch table */
driver->OnDeviceAdd = VmbusOnDeviceAdd;
driver->OnDeviceRemove = VmbusOnDeviceRemove;
driver->OnCleanup = VmbusOnCleanup;

/* Hypervisor initialization...setup hypercall page..etc */
ret = hv_init();
if (ret != 0)
DPRINT_ERR(VMBUS, "Unable to initialize the hypervisor - 0x%x",
ret);
return ret;
}

static void get_channel_info(struct hv_device *device,
struct hv_device_info *info)
{
Expand Down Expand Up @@ -496,10 +462,30 @@ static int vmbus_bus_init(void)
int ret;
unsigned int vector;

/* Call to bus driver to initialize */
ret = VmbusInitialize(driver);
DPRINT_INFO(VMBUS, "+++++++ HV Driver version = %s +++++++",
HV_DRV_VERSION);
DPRINT_INFO(VMBUS, "+++++++ Vmbus supported version = %d +++++++",
VMBUS_REVISION_NUMBER);
DPRINT_INFO(VMBUS, "+++++++ Vmbus using SINT %d +++++++",
VMBUS_MESSAGE_SINT);
DPRINT_DBG(VMBUS, "sizeof(vmbus_channel_packet_page_buffer)=%zd, "
"sizeof(VMBUS_CHANNEL_PACKET_MULITPAGE_BUFFER)=%zd",
sizeof(struct vmbus_channel_packet_page_buffer),
sizeof(struct vmbus_channel_packet_multipage_buffer));

driver->name = gDriverName;
memcpy(&driver->deviceType, &gVmbusDeviceType, sizeof(struct hv_guid));

/* Setup dispatch table */
driver->OnDeviceAdd = VmbusOnDeviceAdd;
driver->OnDeviceRemove = VmbusOnDeviceRemove;
driver->OnCleanup = VmbusOnCleanup;

/* Hypervisor initialization...setup hypercall page..etc */
ret = hv_init();
if (ret != 0) {
DPRINT_ERR(VMBUS_DRV, "Unable to initialize vmbus (%d)", ret);
DPRINT_ERR(VMBUS, "Unable to initialize the hypervisor - 0x%x",
ret);
goto cleanup;
}

Expand Down

0 comments on commit 6c8e588

Please sign in to comment.