]> git.proxmox.com Git - qemu.git/commit
scsi-disk: scsi-block device for scsi pass-through should not be removable
authorPavel Hrdina <phrdina@redhat.com>
Wed, 29 May 2013 13:47:23 +0000 (15:47 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 18 Jun 2013 17:58:11 +0000 (12:58 -0500)
commit129db3679c45bfc86d2003ebea808a2d626820e7
tree1e6f1bfbaa810754e46dfc8c8346db1f27e7ce66
parent637d640fbbce498bd43a58b7a20b4190a1534751
scsi-disk: scsi-block device for scsi pass-through should not be removable

This patch adds a new SCSI_DISK_F_NO_REMOVABLE_DEVOPS feature. By this
feature we can set that the scsi-block (scsi pass-through) device will still
be removable from the guest side, but from monitor it cannot be removed.

Cc: qemu-stable@nongnu.org
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 18e673b8f350e1d789b8a50d209eb4a4252ebbda)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/scsi-disk.c