From: Hannes Reinecke <hare@suse.de>
To: ya su <suya94335@gmail.com>
Cc: Christoph Hellwig <chellwig@redhat.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
kvm@vger.kernel.org, "Michael S. Tsirkin" <mst@redhat.com>,
Stefan Hajnoczi <stefanha@gmail.com>,
qemu-devel <qemu-devel@nongnu.org>,
"Nicholas A. Bellinger" <nab@linux-iscsi.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Christoph Hellwig <hch@infradead.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Linux Virtualization <virtualization@lists.linux-foundation.org>
Subject: Re: [Qemu-devel] about NPIV with qemu-kvm.
Date: Wed, 26 Oct 2011 07:26:38 +0200 [thread overview]
Message-ID: <4EA79A0E.8030604@suse.de> (raw)
In-Reply-To: <CA+tHM2Hw4jzTNmNtD3ttVpyCFCHnFB9USWK5XsUK6vqGJVmGRg@mail.gmail.com>
On 10/26/2011 06:40 AM, ya su wrote:
> hi, hannes:
>
> I want to use NPIV with qemu-kvm, I issued the following command:
>
> echo '1111222233334444:5555666677778888' >
> /sys/class/fc_host/host0/vport_create
>
> and it will produce a new host6 and one vport succesfully, but it
> does not create any virtual hba pci device. so I don't know how to
> assign the virtual host to qemu-kvm.
>
Well, you can't. There is no mechanism for. When using NPIV you need
to pass in the individual LUNs via eg virtio-blk.
> from your this mail, does array will first need to assign a lun to
> this vport? and through this new created disk, like device /dev/sdf,
> then I add qemu-kvm with -drive file=/dev/sdf,if=virtio... arguments?
>
Yes. That's what you need to do.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2011-10-26 5:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-26 4:40 [Qemu-devel] about NPIV with qemu-kvm ya su
2011-10-26 5:26 ` Hannes Reinecke [this message]
2011-10-27 12:53 ` ya su
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=4EA79A0E.8030604@suse.de \
--to=hare@suse.de \
--cc=chellwig@redhat.com \
--cc=hch@infradead.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=nab@linux-iscsi.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=stefanha@linux.vnet.ibm.com \
--cc=suya94335@gmail.com \
--cc=virtualization@lists.linux-foundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).