From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhfEt-0003M2-VF for qemu-devel@nongnu.org; Wed, 29 May 2013 08:12:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhfEl-0005U2-HN for qemu-devel@nongnu.org; Wed, 29 May 2013 08:12:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhfEl-0005Sw-98 for qemu-devel@nongnu.org; Wed, 29 May 2013 08:12:15 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4TCCDxn026630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 May 2013 08:12:14 -0400 From: Pavel Hrdina Date: Wed, 29 May 2013 14:12:09 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] disable the scsi pass-through eject from monitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, phrdina@redhat.com This series do two things, at first it fixes the bug introduced by Paolo's patch series. The bug is that he accidentally removes the check after the bdrv_aio_ioctl() function which still could return NULL. The second patch fixes the issue that you could eject the scsi pass-through device from the guest. Probably it should be later fixed in the way that the eject command will not remove the device from guest, but send the eject request to the real device in case of removable device. Pavel Hrdina (2): scsi-generic: check the return value of bdrv_aio_ioctl in execute_command scsi-disk: scsi-block device for scsi pass-through should not be removable hw/scsi/scsi-disk.c | 10 +++++++--- hw/scsi/scsi-generic.c | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) -- 1.8.1.4