From: "Michael S. Tsirkin" <mst@redhat.com>
To: Shirley Ma <mashirle@us.ibm.com>
Cc: Shirley Ma <xma@us.ibm.com>, David Stevens <dlstevens@us.ibm.com>,
kvm@vger.kernel.org, sri@linux.vnet.ibm.com,
mashirle@linux.vnet.ibm.com
Subject: Re: vhost-net patches
Date: Thu, 22 Oct 2009 19:43:44 +0200 [thread overview]
Message-ID: <20091022174344.GA10821@redhat.com> (raw)
In-Reply-To: <1256232224.6601.17.camel@localhost.localdomain>
On Thu, Oct 22, 2009 at 10:23:44AM -0700, Shirley Ma wrote:
> On Thu, 2009-10-22 at 15:13 +0200, Michael S. Tsirkin wrote:
> > OK, I sent a patch that should fix the errors for you.
> > Could you please confirm, preferably on-list, whether
> > the patch makes the errors go away for you with
> > userspace virtio?
>
> Confirmed, your patch has fixed irq handler mismatch errors.
>
> > However, as I said previously, it's good to fix them but I think
> > they are unrelated to the fact that vhost does not work
> > for you.
>
> Yes, agreed. One observation is when I enable PCI MSI in guest kernel, I
> found that even without vhost supportin host kernel the network doesn't
> work either.
Yes, but that's on Avi's qemu-kvm.git, so probably merge problems again.
> So I think this is nothing related to vhost. I need to find
> why PCI MSI doesn't work for me.
Probably just bisect until you find the bad commit.
> > Shirley, if you have the time, please send details
> > on your setup and observations on tcpdump output
> > in both guest and host with vhost enabled.
>
> Yes, here are details:
>
> HW and distros:
> T61 laptop, cpu is
> vendor_id : GenuineIntel
> cpu family : 6
> model : 15
> model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
> stepping : 11
> cpu MHz : 2393.902
> cache size : 4096 KB
>
> Guest installed Fedora 10, Host installed Fedora 10 and updated to
> Fedora11, both doesn't work with guest kernel MSI enabled w/i, w/o vhost
> support.
So, IIUC, my tree with MSI without vhost works?
>
> Source trees:
> clone your qemu-kvm and vhost git. host kernel is vhost git, guest
> kernel 2.6.32-rc5
>
> Compile option:
> qemu: ./configure (default target-list = x86_64-softmmu)
> guest kernel: PCI MSI, virio enabled
> host kernel: vhost, kvm, evenfd all enabled
>
> I tried tap, raw, vnet0, eth0,
what are vnet0 and eth0?
Do you have a bridge in host?
What do brctl show and ifconfig -a show in host?
> here are some qemu commandline example:
>
> mst/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
> -s /home/xma/images/fedora10-2-vm -name guest2 -boot c -M pc -m 512 -smp
> 1 -monitor pty -drive
> file=/home/xma/images/fedora10-2-vm,if=virtio,boot=on -net
> raw,ifname=eth0 -net nic,macaddr=54:52:00:46:26:80,model=virtio,vhost
>
> mst/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
> -s /home/xma/images/fedora10-2-vm -name guest2 -boot c -M pc -m 512 -smp
> 1 -monitor pty -drive
> file=/home/xma/images/fedora10-2-vm,if=virtio,boot=on -net
> raw,ifname=vnet0 -net nic,model,macaddr=54:52:00:46:26:80=virtio,vhost
>
> Please let me know what I can do next. I am eager to test the vhost
> performance for both latency and bw.
> tcpdump output:
> When I ping from guest to host, I didn't see any packets from any
> interfaces, not even an arp request.
>
> When I ping from host to guest, guest interface didn't see any packets
> either, not even an arp request.
Did you try tcpdump on the tap interface in host?
> Thanks for your help!
> Shirley
>
>
>
>
Possibly we'll have to debug this in vhost in host kernel.
I would debug this directly, it's just that my setup is somehow
different and I do not see this issue, otherwise I would not
waste your time.
Can we add some printks?
handle_tx has this at the top:
if (!sock || !sock_writeable(sock->sk))
return;
Could you please add
printk(KERN_ERR "%s: !sock = %d, !sock || !sock_writeable(sock->sk) =
%d",
__func__, !sock , !sock || !sock_writeable(sock->sk));
*Before* these checks?
Then make modules modules_install
rmmod vhost_net
insmod vhost_net
and re-run.
If you want me to send a patch that does this, let me know please.
Thanks!
--
MST
next prev parent reply other threads:[~2009-10-22 17:45 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1255721369.10322.38.camel@w-sridhar.beaverton.ibm.com>
[not found] ` <20091018105356.GA8374@redhat.com>
[not found] ` <20091018173202.GA32441@redhat.com>
2009-10-19 22:56 ` vhost-net patches Sridhar Samudrala
2009-10-20 10:24 ` Michael S. Tsirkin
[not found] ` <OFE487449E.75D4E72D-ON87257654.007E61BF-88257654.007F1CCC@us.ibm.com>
2009-10-20 11:34 ` Michael S. Tsirkin
[not found] ` <OF491C5580.D14A9827-ON87257655.005E2B42-88257655.005EBFDD@us.ibm.com>
2009-10-20 17:18 ` Michael S. Tsirkin
[not found] ` <OF519C21FE.3A50884E-ON87257655.005FB73B-88257655.005FEA00@us.ibm.com>
2009-10-20 17:33 ` Michael S. Tsirkin
[not found] ` <OFAA36418A.2A0716E0-ON87257656.006D1231-88257656.006DD91D@us.ibm.com>
2009-10-21 20:19 ` Michael S. Tsirkin
[not found] ` <OF2487602C.0F4CA77B-ON87257656.00834AC0-88257656.0083C68B@us.ibm.com>
2009-10-22 9:24 ` Michael S. Tsirkin
2009-10-22 10:56 ` Michael S. Tsirkin
2009-10-22 12:34 ` Michael S. Tsirkin
2009-10-22 13:13 ` Michael S. Tsirkin
2009-10-22 17:23 ` Shirley Ma
2009-10-22 17:32 ` Shirley Ma
2009-10-22 17:36 ` Michael S. Tsirkin
2009-10-22 17:44 ` Shirley Ma
2009-10-22 17:47 ` Michael S. Tsirkin
2009-10-22 17:56 ` Shirley Ma
2009-10-22 18:13 ` Shirley Ma
2009-10-22 17:43 ` Michael S. Tsirkin [this message]
2009-10-22 18:00 ` Sridhar Samudrala
2009-10-23 7:12 ` Michael S. Tsirkin
2009-10-23 11:04 ` Michael S. Tsirkin
2009-10-23 15:02 ` Shirley Ma
2009-10-23 15:12 ` Shirley Ma
2009-10-23 16:23 ` Shirley Ma
2009-10-25 10:52 ` Michael S. Tsirkin
2009-10-25 17:05 ` Michael S. Tsirkin
2009-10-26 9:27 ` Michael S. Tsirkin
2009-10-26 21:35 ` Shirley Ma
2009-10-26 20:05 ` Michael S. Tsirkin
2009-10-26 21:34 ` Shirley Ma
2009-10-27 6:43 ` Michael S. Tsirkin
2009-10-27 14:46 ` Shirley Ma
2009-10-27 15:27 ` Michael S. Tsirkin
2009-10-27 16:36 ` Shirley Ma
2009-10-27 20:58 ` Michael S. Tsirkin
2009-10-28 15:55 ` Shirley Ma
2009-10-28 15:39 ` Michael S. Tsirkin
2009-10-28 16:45 ` Shirley Ma
2009-10-28 16:53 ` Michael S. Tsirkin
2009-10-28 18:12 ` Shirley Ma
2009-10-29 7:11 ` Shirley Ma
2009-11-02 19:46 ` Michael S. Tsirkin
2009-11-03 1:06 ` Xin, Xiaohui
2009-11-03 15:52 ` Shirley Ma
2009-10-28 20:55 ` Shirley Ma
2009-10-28 16:46 ` kvm memory leak (Was Re: vhost-net patches) Michael S. Tsirkin
2009-10-29 12:21 ` Avi Kivity
2009-10-29 12:50 ` Avi Kivity
2009-10-23 19:24 ` vhost-net patches Shirley Ma
2009-10-25 9:11 ` Michael S. Tsirkin
2009-10-26 21:37 ` Shirley Ma
2009-10-27 6:38 ` Michael S. Tsirkin
2009-10-27 14:48 ` Shirley Ma
2009-10-28 17:46 ` Arnd Bergmann
2009-10-28 18:13 ` Shirley Ma
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=20091022174344.GA10821@redhat.com \
--to=mst@redhat.com \
--cc=dlstevens@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=mashirle@linux.vnet.ibm.com \
--cc=mashirle@us.ibm.com \
--cc=sri@linux.vnet.ibm.com \
--cc=xma@us.ibm.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.