From: Steven Smith Subject: Re: [PATCH 1/4] pvSCSI : Add white list to SCSI command emulation Date: Fri, 4 Jul 2008 17:21:54 +0100 Message-ID: <20080704162154.GA21118@weybridge.uk.xensource.com> References: <20080703203710.8583.EB2C8575@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1082831736==" Return-path: In-Reply-To: <20080703203710.8583.EB2C8575@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jun Kamada Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1082831736== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > + bitmap[ERASE] = VSCSIIF_NEED_CMD_EXEC; > + pre_function[ERASE] = NULL; > + post_function[ERASE] = NULL; > + > + bitmap[MODE_SENSE] = VSCSIIF_NEED_CMD_EXEC; > + pre_function[MODE_SENSE] = NULL; > + post_function[MODE_SENSE] = NULL; > + > + bitmap[SEND_DIAGNOSTIC] = VSCSIIF_NEED_CMD_EXEC; > + pre_function[SEND_DIAGNOSTIC] = NULL; > + post_function[SEND_DIAGNOSTIC] = NULL; Hmm, careful here. If the DevOffL bit is set on a SEND DIAGNOSTIC command then it can cause interference in other LUNs on the target, which would be unfortunate if they're exposed to different VMs. > + > + bitmap[READ_CAPACITY] = VSCSIIF_NEED_CMD_EXEC; > + pre_function[READ_CAPACITY] = NULL; > + post_function[READ_CAPACITY] = NULL; > + > + bitmap[READ_10] = VSCSIIF_NEED_CMD_EXEC; > + pre_function[READ_10] = NULL; > + post_function[READ_10] = NULL; > + > + bitmap[WRITE_10] = VSCSIIF_NEED_CMD_EXEC; > + pre_function[WRITE_10] = NULL; > + post_function[WRITE_10] = NULL; Do you know what happens if the SCSI CDB is inconsistent with the scatter list? For instance, if the CDB says to read 16 sectors but the frontend-supplied buffer is only big enough for 8, are we going to end up DMAing over random memory? Steven. --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIbk4iSSW8CTLdF2kRAtumAJoDVEq2iDvMr0BCM08hbtOfXC0TsgCfWVkD +ZHtj3W017LwoFD3p7jXUps= =vWtI -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC-- --===============1082831736== 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 --===============1082831736==--