Received: from eggs.gnu.org ([2001:4830:134:3::10]:51670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oyk-0008Is-FM for qemu-devel@nongnu.org; Tue, 31 May 2016 15:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7oyg-0008BH-8H for qemu-devel@nongnu.org; Tue, 31 May 2016 15:05:25 -0400 Received: from james.piipiip.net ([176.31.107.179]:58426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oyg-0008Az-1h for qemu-devel@nongnu.org; Tue, 31 May 2016 15:05:22 -0400 Received: from jlavi by james.piipiip.net with local (Exim 4.80) (envelope-from ) id 1b7obc-0005OE-SL for qemu-devel@nongnu.org; Tue, 31 May 2016 21:41:32 +0300 Date: Tue, 31 May 2016 21:41:32 +0300 From: Jarkko Lavinen Message-ID: <20160531184132.GA18806@ks392938.kimsufi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Film scanner and large transfer sizes with pvscsi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I am trying to get a Minolta Multi Pro film scanner to work in a Qemu VM with pvsci interface and linux as both guest and host (kernel 4.4). The scanning stalls at VM with no error in the scanning program but I can spot out of memory error when initiating a transfer at host side log. The host has many gigabytes of free memory, though. And the same scanning program works alright at host side. When using 022077 SCSI logging level at host (max level or error and timeouts). I can see on the host log: ... [sg6] tag#0 CDB: Test Unit Ready 00 00 00 00 00 00 [sg6] sg_cmd_done: pack_id=0, res=0x0 [sg6] sg_finish_rem_req: res_used=0 [sg6] sg_remove_scat: k_use_sg=0 [sg6] sg_ioctl: cmd=0x2285 (SG_IO) [sg6] sg_common_write: scsi opcode=0x28, cmd_size=10 (0x28 is READ cmd) [sg6] sg_start_req: dxfer_len=30408704 [sg6] sg_build_indirect: buff_size=30408704, blk_size=30408704 [sg6] sg_build_indirect: k=0, num=32768, ret_sz=32768 ... [sg6] sg_build_indirect: k=127, num=32768, ret_sz=32768 [sg6] sg_build_indirect: k_use_sg=128, rem_sz=26214400 [sg6] sg_common_write: start_req err=-12 [sg6] sg_finish_rem_req: res_used=0 [sg6] sg_remove_scat: k_use_sg=128 [sg6] sg_remove_scat: k=0, pg=0xffffea0000802800 ... [sg6] sg_remove_scat: k=127, pg=0xffffea00052e8600 [sg6] sg_ioctl: cmd=0x2285 Two problems here. There is an error in host kernel side and the error does not propagate to the guest side scanning program. Jarkko Lavinen