From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Doktor Subject: [KVM-autotest] virt.kvm_vm: Add virtio-scsi support Date: Thu, 9 Feb 2012 08:33:00 +0100 Message-ID: <1328772781-27339-1-git-send-email-ldoktor@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: autotest@test.kernel.org, kvm@vger.kernel.org, kvm-autotest@redhat.com, ldoktor@redhat.com, jzupka@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46865 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751718Ab2BIHdI (ORCPT ); Thu, 9 Feb 2012 02:33:08 -0500 Sender: kvm-owner@vger.kernel.org List-ID: This patch adds support for virtio-scsi devices. Added block variants: * virtio_scsi (default) * virtio_scsi_disk (legacy scsi) * virtio_scsi_block (only raw /dev/sd* files) * virtio_scsi_generic (only raw /dev/sg* files) Please keep in mind that virtio-scsi is not yet upstream. To test this = patch you have to: 1) have a guest OS with virtio-scsi support ( https://github.com/bonzin= i/virtio-scsi/commits/master ) 2) qemu support for virtio-scsi devices ( git://github.com/bonzini/qemu= =2Egit ) 3) qemu bios support (http://people.redhat.com/pbonzini/virtio-scsi/ ) NOTE: you can download testing rpm packages for all of the above on Pao= lo Bonzini's page http://people.redhat.com/pbonzini/virtio-scsi/ NOTE2: without modified qemu bios you won't be able to boot from virtio= -scsi device NOTE3: currently only boot from lun0 is supported NOTE4: automatic hotplug that doesn't work. You have to initialize the = device (echo "scsi add-single-device" 2 0 1 0 > /proc/scsi/scsi ) Also please be aware that virtio_scsi_block and virtio_scsi_generic dev= ices are pass-through targets thus you can specify only /dev/sg (resp. = /dev/sd*) devices. Also in my version of qemu it was impossible to set = those targets directly from cmd-line, although hot-plug worked fine. Pull request: https://github.com/autotest/autotest/pull/170 Regards, Luk=C3=A1=C5=A1 Doktor Signed-off-by: Lukas Doktor ldoktor@redhat.com