]> git.proxmox.com Git - mirror_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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2013 10:43:03 +0000 (12:43 +0200)
commit18e673b8f350e1d789b8a50d209eb4a4252ebbda
treef079619cc05bf1da755341dad017bf1b28e6b481
parentd836f8d35dc418e24c3b11e2ea67d361b867b650
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>
hw/scsi/scsi-disk.c