WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Hotplugging SCSI device to Windows 2k3 GOS

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, "Xen-users@xxxxxxxxxxxxxxxxxxx" <Xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Hotplugging SCSI device to Windows 2k3 GOS
From: "Velayudhan, Vinu" <Vinu.Velayudhan@xxxxxxx>
Date: Mon, 29 Jun 2009 18:57:07 -0600
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Mon, 29 Jun 2009 17:59:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D016DDA03@trantor>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acn4ylBc7pMNGrgNSs6KsBCXDId64AAQXgjgAARD+9A=
Thread-topic: [Xen-users] Hotplugging SCSI device to Windows 2k3 GOS
Here the Windows debug log, when I do a SCSI hotplug from Dom0.


XenPCI --> XenPci_DeviceWatchHandler
XenPCI     path = device/vscsi/1
XenPCI     count = 3
XenPCI     Invalidating Device Relations
XenPCI     IRP_MN_QUERY_DEVICE_RELATIONS
XenVbd     shadow_min_free = 31
XenPCI     BusRelations
XenPCI --> XenPci_Pnp_QueryBusRelations
XenPCI --> XenPci_SendAndWaitForIrp
XenPCI --> XenPci_Pnp_IoCompletion
XenPCI <-- XenPci_Pnp_IoCompletion
XenPCI <-- XenPci_SendAndWaitForIrp
XenPCI <-- XenPci_Pnp_QueryBusRelations
XenVbd     shadow_min_free = 32
XenPCI --> XenPci_Pnp_QueryBusRelationsCallback
XenPCI <-- XenPci_DeviceWatchHandler
XenPCI     Existing device device/vbd/768
XenPCI     Existing device device/vif/0
XenPCI     Existing device device/console/0
XenPCI --> XenPci_DeviceWatchHandler
XenVbd     shadow_min_free = 32
XenPCI     New device device/vscsi/1
XenPCI <-- XenPci_Pnp_QueryBusRelationsCallback
XenVbd --> XenVbd_Pnp
XenVbd     Unknown Minor = 7
XenVbd <-- XenVbd_Pnp
XenVbd     Command = INQUIRY
XenVbd     (LUN = 0, EVPD = 0, Page Code = 00)
XenVbd     (Length = 36)
XenVbd     (Srb->Databuffer = 817b4428)
XenVbd     shadow_min_free = 31
XenVbd     Command = INQUIRY
XenVbd     (LUN = 0, EVPD = 1, Page Code = 80)
XenVbd     (Length = 255)
XenVbd     (Srb->Databuffer = 817b4428)
XenPCI --> XenPci_Pnp_Pdo
XenVbd     shadow_min_free = 31
XenPCI     IRP_MN_QUERY_DEVICE_RELATIONS (status = 00000000)
XenPCI <-- XenPci_Pnp_Pdo
XenVbd --> XenVbd_Pnp
XenVbd     Unknown Minor = 7
XenVbd <-- XenVbd_Pnp
XenNet --> XenNet_Pnp
XenNet     Unknown Minor 7
XenVbd     shadow_min_free = 31
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_DEVICE_RELATIONS (status = c00000bb)
XenPCI <-- XenPci_Pnp_Pdo
XenNet <-- XenNet_Pnp
XenStub --> XenStub_Irp_Pnp
XenStub     IRP_MN_QUERY_DEVICE_RELATIONS
XenPCI --> XenPci_Pnp_Pdo
XenVbd     shadow_min_free = 32
XenPCI     IRP_MN_QUERY_DEVICE_RELATIONS (status = c00000bb)
XenPCI <-- XenPci_Pnp_Pdo
XenPCI     path = device/vscsi/1/state
XenStub <-- XenStub_Irp_Pnp
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_ID (status = c00000bb)
XenPCI     BusQueryDeviceID
XenPCI     Xen\vscsi
XenVbd     shadow_min_free = 31
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_CAPABILITIES (status = c00000bb)
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_DEVICE_TEXT (status = c00000bb)
XenVbd     shadow_min_free = 30
XenPCI     DeviceTextDescription
XenPCI     Xen vscsi device #1
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_DEVICE_TEXT (status = c00000bb)
XenPCI     DeviceTextLocationInformation
XenPCI     Xen Bus
XenVbd     shadow_min_free = 31
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_ID (status = c00000bb)
XenPCI     BusQueryInstanceID
XenPCI     01
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_ID (status = c00000bb)
XenVbd     shadow_min_free = 32
XenPCI     BusQueryHardwareIDs
XenPCI     Xen\vscsi
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     count = 4
XenPCI     IRP_MN_QUERY_ID (status = c00000bb)
XenPCI     BusQueryCompatibleIDs
XenPCI     Xen\vscsi
XenVbd     shadow_min_free = 31
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_RESOURCE_REQUIREMENTS (status = c00000bb)
XenPCI <-- XenPci_Pnp_Pdo
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_BUS_INFORMATION (status = c00000bb)
XenPCI <-- XenPci_Pnp_Pdo
XenVbd     shadow_min_free = 32
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_RESOURCES (status = c00000bb)
XenPCI <-- XenPci_Pnp_Pdo
XenHide --> XenHide_AddDevice
XenHide     Description = Xen SCSI Driver
XenHide <-- XenHide_AddDevice (gplpv == TRUE && bus_type != GUID_BUS_TYPE_PCI)
XenSCSI --> XenScsi_Pnp
XenSCSI     Unknown Minor = 24
XenVbd     shadow_min_free = 32
XenPCI --> XenPci_Pnp_Pdo
XenPCI     Unhandled Minor = 24, Status = c00000bb
XenPCI <-- XenPci_Pnp_Pdo
XenSCSI <-- XenScsi_Pnp
XenSCSI --> XenScsi_Pnp
XenSCSI     Unknown Minor = 13
XenVbd     shadow_min_free = 31
XenPCI --> XenPci_Pnp_Pdo
XenPCI     Unhandled Minor = 13, Status = 00000000
XenPCI <-- XenPci_Pnp_Pdo
XenSCSI <-- XenScsi_Pnp
XenSCSI --> XenScsi_Pnp
XenSCSI     Unknown Minor = 8
XenPCI <-- XenPci_DeviceWatchHandler
XenVbd     shadow_min_free = 32
XenPCI --> XenPci_Pnp_Pdo
XenPCI     Unhandled Minor = 8, Status = c00000bb
XenPCI <-- XenPci_Pnp_Pdo
XenSCSI <-- XenScsi_Pnp
XenSCSI --> XenScsi_Pnp
XenSCSI     IRP_MN_START_DEVICE - DeviceObject = 8140EA40
XenSCSI     PFN[0] = 0000596B
XenVbd     shadow_min_free = 31
XenSCSI     Start = 00000000:0596b000, Length = 4096
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_START_DEVICE (status = c00000bb)
XenPCI --> XenPci_Pnp_StartDevice
XenPCI     pnp_state = NotStarted
XenPCI <-- XenBus_AddWatch
XenVbd     shadow_min_free = 30
XenPCI     irq_number = 11
XenPCI     irq_level = 00b
XenPCI     CmResourceTypeInterrupt
XenPCI     irq_vector = 181
XenPCI     irq_level = 7
XenPCI     CmResourceTypeMemory
XenPCI     Start = 0596b000, Length = 4096
XenVbd     shadow_min_free = 32
XenPCI --> XenPci_DeviceWatchHandler
XenPCI     path = device/vscsi/1/backend-id
XenPCI     count = 4
XenPCI <-- XenPci_DeviceWatchHandler
XenPCI --> XenPci_DeviceWatchHandler
XenPCI     path = device/vscsi/1/backend
XenVbd     shadow_min_free = 30
XenPCI     Still waiting for 2 (currently 0)...
XenPCI     count = 4
XenPCI <-- XenPci_DeviceWatchHandler
XenPCI     Backend State Changed to Initialising
XenPCI --> XenPci_DeviceWatchHandler
XenVbd     shadow_min_free = 32
XenPCI     path = device/vscsi/1/state
XenPCI     count = 4
XenPCI <-- XenPci_DeviceWatchHandler
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 30
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 31
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 30
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Still waiting for 2 (currently 1)...
XenVbd     shadow_min_free = 32
XenPCI     Timed out waiting for 2!
XenPCI <-- XenPci_Pnp_Pdo
XenSCSI <-- XenScsi_Pnp
XenSCSI --> XenScsi_Pnp
XenVbd     shadow_min_free = 32
XenSCSI     IRP_MN_REMOVE_DEVICE
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_REMOVE_DEVICE (status = c00000bb)
XenPCI --> XenPci_Pnp_RemoveDevice
XenPCI     pnp_state = NotStarted
XenPCI --> XenPci_ShutdownDevice
XenPCI <-- XenPci_ShutdownDevice
XenVbd     shadow_min_free = 31
XenPCI     Watch not set - can't remove
XenPCI <-- XenPci_Pnp_RemoveDevice (status = 00000000)
XenPCI <-- XenPci_Pnp_Pdo
XenSCSI <-- XenScsi_Pnp
XenPCI --> XenPci_Pnp_Pdo
XenPCI     IRP_MN_QUERY_RESOURCES (status = c00000bb)
XenPCI <-- XenPci_Pnp_Pdo
XenVbd     shadow_min_free = 32
XenVbd     shadow_min_free = 32


Thanks,
VinuV


> Hi,
> 
> I am trying to do a scsi hotplug to a Windows GOS using the xm
scsi-attach
> command.
> 
> This is my configuration
> RHEL 5.2 DOM0 with Xen 3.3
> 32 bit Windows 2k3 GOS with WindowsXenPV-0.9.4 installed. boot.ini has
/gplpv
> added
> 
> I have a SATA harddisk which I am tryng to hotplug to win GOS. The
output of
> lsscsi is as below
> #lsscsi
> [0:0:0:0]    disk    ATA      ST380013AS             3.18  /dev/sda
> [1:0:0:0]    disk    ATA      WDC WD2500YS-01M 02.0  /dev/sdb
> 
> and I am using the below command to attach /dev/sdb to GOS
> # xm list
> Name                                        ID   Mem VCPUs      State
> Time(s)
> Domain-0                                    0   512     8
r-----
> 3381.5
> Windows2003                               5   256     1         -b----
35.7
> 
> #xm scsi-attach Windows2003 1:0:0:0 1:0:0:0
> #
> 
> As soon as I run the above command, I see a pop up coming in Win2k3
GOS
> indicating that a xen vscsi device is hotplugged. But when I go to the
Device
> Manager in Windows and look at this device, it appears with an Yellow
bang and
> the driver tab indicates error Code 10 (reinstall driver).
> 
> I tried this multiple times, but always end up at the same state. Have
anyone
> tried something similar ? Do you know what might going wrong here ?
> 

It should work, it certainly used to. Can you please run DebugView from
sysinternals.com on your windows machine, turn on kernel logging, then
try the hotplug? That should capture some debug logging. Email it to me
and I'll have a look.

Thanks

James

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>