From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joanna Rutkowska Subject: Re: PV driver domains and S3 sleep Date: Thu, 16 Sep 2010 21:04:28 +0200 Message-ID: <4C926A3C.6090409@invisiblethingslab.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1874942836==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" , Rafal Wojtczuk List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1874942836== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig70F6CD9E50CABC5D6DAB9E97" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig70F6CD9E50CABC5D6DAB9E97 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 09/16/10 13:52, Keir Fraser wrote: > On 16/09/2010 12:44, "Rafal Wojtczuk" wr= ote: >=20 >> The topic is self-explanatory: how to ensure that a PV driver domain c= orrectly >> prepares its PCI devices for S3 sleep? >> If I do "pm-suspend" in dom0, and the driver domain has active network= >> interfaces,=20 >> suspend hangs the system. Yes, in case of this particular machine, sus= pend >> works >> fine when there is no driver domain. >> It is possible to manually invoke scripts from /usr/lib64/pm-utils/sle= ep.d/ in >> driver=20 >> domain. In the test case, "ifconfig down wlan0" in the driver domain a= llows >> the suspend to go smoothly. But generally, is it enough ? The kernel d= evice >> driver should=20 >> prepare the PCI device properly for S3, shouldn't it ? >> Would it be more proper to [somehow] notify a driver domain _kernel_ t= hat we >> are=20 >> going to S3 (just like dom0 kernel is notified), and let it execute al= l >> necessary actions >> (including, but not only, launching of usermode pm-utils scripts), jus= t like >> dom0 kernel=20 >> does ? Would it work at all, considering that driver domain kernel has= no >> access to=20 >> ACPI tables ?=20 >> Currently, how are these issues taken care of in the mainstream Xen? >=20 > I don't think it currently is handled. HVM driver domains (using VT-d o= r > equivalent) can be put into virtual S3. We would need an equivalent con= cept > for PV driver domains. Or for devices to be hot-unplugged from the driv= er > domain, and re-plugged on resume? >=20 But, can you explain how Xen notifies Dom0 when the system enters S3, and if the same mechanism could be (easily) used to do the same for a driver PV domain? Thanks, joanna. --------------enig70F6CD9E50CABC5D6DAB9E97 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMkmo8AAoJEDaIqHeRBUM0NqQIAMGZA9HlILIZ1j/DuiX92HV4 GyDeZY2RyAALm/mXArBecI0yfesyeg7uLGWTpWwyn7Q7ABKA/Kp6qcVWSOqAPxcx JkqdGXh8WqNLlElppK3/KSwqN3h0Of4oNzzK2IRktb/wBM1sFi8aBcY8KEhRJhRx lJHMOpANPWO4Qw9ujtZAQZEbA8kXakE6GqpHCLDhRafIEpW8zyg9Ya3t9+eJnqBD IKmBylHtXlz8WQxpmsz79KZQnY+H6eB3KerUvLdegu6ru0dqPy86Ss/g4PAy62Op ZHAVHcQXkAmhMwvOSbiOqq5xGo1VgcH/yxt16tgNmuqb/GCs/gGpzxg0j6Qb9C0= =4lRo -----END PGP SIGNATURE----- --------------enig70F6CD9E50CABC5D6DAB9E97-- --===============1874942836== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1874942836==--