From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOjlN-0008PK-EH for qemu-devel@nongnu.org; Thu, 18 Oct 2012 02:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOjlM-00032M-5p for qemu-devel@nongnu.org; Thu, 18 Oct 2012 02:39:25 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:47161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOjlL-00032E-VQ for qemu-devel@nongnu.org; Thu, 18 Oct 2012 02:39:24 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp2so8108915pbb.4 for ; Wed, 17 Oct 2012 23:39:23 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <507FA416.4060104@redhat.com> Date: Thu, 18 Oct 2012 08:39:18 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] hdd and ssd passthrough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mario Giammarco Cc: qemu-devel@nongnu.org Il 17/10/2012 23:20, Mario Giammarco ha scritto: > Hello, > I hope I am in the right list. > I would like to pass a real disk to a guest (freenas) in kvm/qemu without > iommu/vt-d. > > I need guest to be able to: > > - use hdd smart; > - configure hdd params like power saving; > - understand real make and model of hdd; > - understand when the hdd is an ssd. This is really a libvirt question more than QEMU... anyway if your guest is new enough (Linux 3.4 or RHEL/CentOS 6.3) you can probably use virtio-scsi with XML that looks like this (using "virsh edit"): For passthrough you need the "device='lun'" setting. You can also use virsh from the command line to achieve the same. Write the and elements to a new file, like hba.xml and sdb.xml. Then: # virsh attach-device --persistent Guest1 ~/hba.xml # virsh attach-device --persistent Guest1 ~/sdb.xml virt-manager and virt-install don't yet fully support virtio-scsi. Paolo