All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Qixiaozhen <qixiaozhen@huawei.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "Luohao (brian)" <brian.luohao@huawei.com>, Xujunxi <xujunxi@huawei.com>
Subject: Re: [Qemu-devel] [Qemu/Virtio-scsi]The feature of 'raw device mapping' cannot isolate the LUN to the owning virtual machine
Date: Mon, 27 Jan 2014 13:42:35 +0100	[thread overview]
Message-ID: <52E6543B.4080208@redhat.com> (raw)
In-Reply-To: <F3FF02E5B1A52F44A89CA6A3523CE5577184ED17@szxema507-mbx.china.huawei.com>

Il 27/01/2014 13:22, Qixiaozhen ha scritto:
>     <!-- #############Raw Device Mapping with virtio-scsi################## -->
>     <disk type='block' device='lun'>
>       <driver name='qemu' type='raw' cache='none'/>
>       <source dev='/dev/mapper/360022a110000ecba5db427db00000023'/>
>       <target dev='vdb' bus='virtio'/>
>       <alias name='virtio-disk1'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
>     </disk>

This is not using virtio-scsi.

A virtio-scsi disk would appear as /devs/sda in the VM.  For example:

     <disk type='block' device='lun'>
       <driver name='qemu' type='raw' cache='none'/>
       <source dev='/dev/mapper/360022a110000ecba5db427db00000023'/>
       <target dev='sdb' bus='scsi'/>
       <address type='drive' controller='0' bus='0'/>
     </disk>

     <disk type='block' device='disk'>
       <driver name='qemu' type='raw' cache='none'/>
       <source dev='/dev/mapper/360022a110000ecba5db4074800000022'/>
       <target dev='sda' bus='scsi'/>
       <address type='drive' controller='0' bus='1'/>
     </disk>

     <controller type='scsi' index='0' model='virtio-scsi'/>

You can now try sg_inq for both disks.  One will show your NAS's product 
and vendor names, the other will show QEMU as vendor and QEMU HARD DISK 
as product.

Paolo

  reply	other threads:[~2014-01-27 12:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-27  2:50 [Qemu-devel] [Qemu/Virtio-scsi]The feature of 'raw device mapping' cannot isolate the LUN to the owning virtual machine Qixiaozhen
2014-01-27 11:35 ` Paolo Bonzini
2014-01-27 12:22   ` Qixiaozhen
2014-01-27 12:42     ` Paolo Bonzini [this message]
2014-01-27 14:06 ` Stefan Hajnoczi
2014-01-28  1:28   ` Qixiaozhen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52E6543B.4080208@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=brian.luohao@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qixiaozhen@huawei.com \
    --cc=xujunxi@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.