From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Subject: Re: iSCSI connection corrupts Xen block devices. Date: Tue, 26 Mar 2013 10:14:56 +0100 Message-ID: <51516710.8000906@citrix.com> References: <201303260626.r2Q6QOxM011091@wind.enjellic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201303260626.r2Q6QOxM011091@wind.enjellic.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "greg@enjellic.com" Cc: "Dr. Greg Wettstein" , "scst-devel@lists.sourceforge.net" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 26/03/13 07:26, Dr. Greg Wettstein wrote: > Hi, hope the week has started out well for everyone. > > This report may be in the FWIW department since there may be a > fundamental reason why this doesn't work. We elected to report this > to the Xen community since we thought any behavior which corrupted > disk images needed to at least be reported. Hello Greg, I've also noticed this some time ago, the cause of this bug is that we pass granted pages to netback, and when trying to perform the grant copy operation it fails. I've sent a clumsy patch that solved the problem, but it involves additional memcpy in order to avoid passing the granted page to netback: http://lists.xen.org/archives/html/xen-devel/2013-01/msg00717.html The best solution I can think of is storing the grant frame reference somewhere in the p2m table, and then using that reference instead of the mfn when performing the grant copy operation. Regards, Roger.