From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasile Catalin-B50542 Subject: Re: Trying to make VHOST-BLK to work Date: Wed, 20 May 2015 13:01:58 +0300 Message-ID: <555C5B96.2010407@freescale.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5804435976077383832==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Sudheer K Cc: "Michael S. Tsirkin" , virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org --===============5804435976077383832== Content-Type: multipart/alternative; boundary="------------010203000503020200040500" --------------010203000503020200040500 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit There is no code in >>QEMU<< that actually triggers notifications to the guest when using vhost. When you are using vhost, interrupts are triggered directly to the guest. The interrupt lines are mapped as a shared memory, that don't pass through QEMU, if they don't have to. Indeed, there is an initial setup in QEMU that makes this configuration. Note: The things that I am saying are somewhat deductions from what I've studied from the code myself and some answers from qemu-devel (so I cannot assure you on the correctness of this answer), as the kvm and virtualization community themselves aren't very active. On 19.05.2015 14:13, Sudheer K wrote: > Hi Kernel KVM folks and Michael, > > I am trying to make VHOST-BLK to work by myself since I did not hear > from Asias on my personal mail to him. I will be grateful to you for > your time and response. > > The problem I am seeing is there is no response seen by the VM through > the HOST has executed the IO successfully and issued > vhost_add_used_and_signal. Here is my question. Which code in QEMU > issues virtio_notify() when the VHOST completes the IO in kernel? > > I have some related questions. Could I connect a iscsi LUN to a VM via > vhost-scsi? Could you please point me to some documents if there are any? > > Thanks and Regards > > Sudheer > > > _______________________________________________ > Virtualization mailing list > Virtualization@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/virtualization -- CatalinVasile Intern, DN-Software FreescaleSemiconductor, Inc. www.freescale.com phone: 073-021-1938 e-mail: catalin.vasile@freescale.com *Freescale_Logo-nosemi_Lh_4c*** This e-mail, and any associated attachments have been classified as: [ ] Public [ ] Freescale Semiconductor Internal Use Only [ ] Freescale Semiconductor Confidential Proprietary --------------010203000503020200040500 Content-Type: multipart/related; boundary="------------070708010300010403020809" --------------070708010300010403020809 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There is no code in >>QEMU<< that actually triggers notifications to the guest when using vhost.
When you are using vhost, interrupts are triggered directly to the guest.
The interrupt lines are mapped as a shared memory, that don't pass through QEMU, if they don't have to.
Indeed, there is an initial setup in QEMU that makes this configuration.

Note:
The things that I am saying are somewhat deductions from what I've studied from the code myself and some answers
from qemu-devel (so I cannot assure you on the correctness of this answer), as the kvm and virtualization community themselves
aren't very active.

On 19.05.2015 14:13, Sudheer K wrote:<= br>
Hi Kernel KVM folks and Michael,

I am trying to make VHOST-BLK to work by myself since I did not hear from Asias on my personal mail to him. I will be grateful to you for your time and response.

The problem I am seeing is there is no response seen by the VM through the HOST has executed the IO successfully and issued vhost_add_used_and_signal.=C2=A0 Here is my question. Which cod= e in QEMU issues virtio_notify() when the VHOST completes the IO in kernel?

I have some related questions. Could I connect a iscsi LUN to a VM via vhost-scsi? Could you please point me to some documents if there are any?

Thanks and Regards

Sudheer


_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/ma=
ilman/listinfo/virtualization

--

Catalin Vasile

Intern, DN-Software

Freescale Semiconductor, Inc.

www.freescale.com

phone: 073-021-1938

e-mail: catalin.vasile@free= scale.com=

<= !--[if gte vml 1]> 3D"Freescale_Logo-nosemi_Lh_4c"

This e-mail, and any associated attachments have been classified as:<= /o:p>

[ ] Public

[ ] Freescale Semiconductor Internal Use Only

[ ] Freescale Semiconductor Confidential Proprietary

--------------070708010300010403020809 Content-Type: image/gif; name="image002.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="image002.gif" R0lGODlhwwBJAHcAMSH+GlNvZnR3YXJlOiBNaWNyb3NvZnQgT2ZmaWNlACH5B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o5vim /LbqszPEGVnmthTwy06bXnxCtovoUOyalj38QgHXDPPwASv8UFm3zpaMmR4FK+bzxgfQZ6iK G0hQKwHcKUifyR8IPgCxd1i7zayOrXj6VuOPIYGc9jiUbJtRRqI8IrSmKQ9+jCtPh4h0IKS5 LFw+K9aMjHa/BbotdhsbEOsKmD/zAcBYGcTb5EJovVbYSjZUKQ9LUkeQ0hFvWdGSX7TQti/0 Mc5NWgtM6gbkrwORzE33QpPPeoQkrEhVriDK8A9GBOgSF+brZGbjHBTvl7nJRU5aaCrW4tC0 w8zByGYOjNfSFvY57onEYkurYUFq17wibQ1xlUrZGIektX+x73WwEhMdM1a6BHYLjyCy3nVa oaS0MaSQnuqfkAjpKWIpEn6FLGEkOxK7Rj4SSZikSEAAADs= --------------070708010300010403020809-- --------------010203000503020200040500-- --===============5804435976077383832== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization --===============5804435976077383832==--