From: Konrad Rzeszutek Wilk Subject: Re: xm save -c problem with GPLPV drivers and winxp Date: Mon, 17 Dec 2012 16:23:33 -0500 Message-ID: <20121217212332.GB13841@konrad-lan.dumpdata.com> References: <1355650190976-5713082.post@n5.nabble.com> <20121216124602.GJ8912@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20121216124602.GJ8912@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= , james.harper@bendigoit.com.au Cc: xen-devel@lists.xensource.com, "Liu.yi" List-Id: xen-devel@lists.xenproject.org On Sun, Dec 16, 2012 at 02:46:02PM +0200, Pasi K=E4rkk=E4inen wrote: > On Sun, Dec 16, 2012 at 01:29:51AM -0800, Liu.yi wrote: > > hi,all > = > Hello, > = > I added the important keywords to the subject.. > = > -- Pasi > = > > I have a winxpsp2 vm with gplpv driver installed. The problem is th= at > > when I excute "xm save -c winxpsp2 save.bin", the command is excuted > > successfully but the vm hang after issuing a disk operaton. > > After installing gplpv debug driver, from the qemu log I found vbd > > resume failed, after a while windows issues disk reset command, then vm > > hang. > > xm debug-keys shows as follows before "xm save -c": > > (XEN) 1 [0/1]: s=3D3 n=3D0 d=3D0 p=3D72 x=3D1 > > (XEN) 2 [0/0]: s=3D3 n=3D0 d=3D0 p=3D71 x=3D0 > > (XEN) 3 [0/1]: s=3D2 n=3D0 d=3D0 x=3D0 > > (XEN) 4 [0/0]: s=3D6 n=3D0 x=3D0 // pdo_event_= channel > > (XEN) 5 [0/0]: s=3D2 n=3D0 d=3D0 x=3D0 // suspend_ev= tchn > > (XEN) 6 [0/0]: s=3D3 n=3D0 d=3D0 p=3D73 x=3D0 // vbd-768 eve= nt-channel > > (XEN) 7 [0/0]: s=3D3 n=3D0 d=3D0 p=3D74 x=3D0 // vif-0 event= -channel > > xm debug-keys shows as follows after "xm save -c": > > (XEN) 1 [0/1]: s=3D3 n=3D0 d=3D0 p=3D72 x=3D1 > > (XEN) 2 [0/0]: s=3D3 n=3D0 d=3D0 p=3D71 x=3D0 > > (XEN) 3 [0/1]: s=3D2 n=3D0 d=3D0 x=3D0 > > (XEN) 4 [0/0]: s=3D6 n=3D0 x=3D0 // pdo_event_= channel > > (XEN) 5 [0/0]: s=3D2 n=3D0 d=3D0 x=3D0 // suspend_ev= tchn > > (XEN) 6 [0/0]: s=3D6 n=3D0 x=3D0 // new pdo_ev= ent_channel > > (XEN) 7 [0/0]: s=3D2 n=3D0 d=3D0 x=3D0 // new suspen= d_evtchn > > (XEN) 8 [0/0]: s=3D3 n=3D0 d=3D0 p=3D? x=3D0 // new vbd-76= 8 event-channel > > // vif-0 > > resume don't start at all because resume hang at vbd > > = > > blkback and blkif driver seem free their event-channel in > > unbind_from_irqhandler when suspending, so when gplpv driver resumes it > > starts allocing event-channel from 6. The strange things is that gplpv > > driver allocs new pdo_event_channel and suspend_evtchn (6 and 7), the > > previous ones retain active. > > I tried to unbind the old pdo_event_channel and suspend_evtchn, but > > suspending vm hang. "xm save -c" wokrs if I reuse the old pdo_event_cha= nnel > > and suspend_evtchn as follows: > > = > > in evtchn.c:EvtChn_Init() > > KeInitializeEvent(&xpdd->pdo_suspend_event, SynchronizationEvent, > > FALSE); > > if (xpdd->pdo_event_channel =3D=3D 0) { > > KdPrint((__DRIVER_NAME " create new pdo_event_channel\n")= ); > > xpdd->pdo_event_channel =3D EvtChn_AllocIpi(xpdd, 0); > > } > > in xenpci_fdo.c:XenPci_ConnectSuspendEvt() > > if (xpdd->suspend_evtchn =3D=3D 0) { > > xpdd->suspend_evtchn =3D EvtChn_AllocUnbound(xpdd, 0); > > KdPrint((__DRIVER_NAME " create new suspend event > > channel\n")); > > } = > > = > > The qemu log show vbd and vif resume successfully, vm runs fine. > > I'm not sure about these modifications to gplpv windows driver. I w= ill > > be grateful for any suggestions, thks. > > = > > = > > = CC-ing the author of the driver (James).