From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [PATCH 0/9] pci-assign: 64bit MMIO + better MSI-X table support Date: Thu, 09 Feb 2012 10:23:06 -0700 Message-ID: <1328808186.2954.28.camel@ul30vt> References: <20120128142104.25681.93072.stgit@bling.home> <1328549358.3074.108.camel@bling.home> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Jan Kiszka To: Shashidhar Patil Return-path: Received: from mx1.redhat.com ([209.132.183.28]:13660 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758014Ab2BIRXI (ORCPT ); Thu, 9 Feb 2012 12:23:08 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2012-02-09 at 21:53 +0530, Shashidhar Patil wrote: > Hi Alex, > I tested your code changes for two problems > 1. MSIX vectors allocation for FreeBSD Guest > Tested the allocation of MSI-X allocation happening for both > FreeBSD-9.0 (also tested 8.2) and Linux guest. > Also tried multiple restart of the guests to see if the hosts > still maintains those allocations. With Linux > as guest I could pass traffic. Though interrupt allocation worked > the FreeBSD could to pass traffic. The FreeBSD > driver seems to be broken(atleast when running in guest). Which device/driver? I was able to use an 82576, both physical device and sr-iov virtual function) with the freebsd 9.0 igb driver. > 2. Guest MSI-X smp_affinity fix. > The smp_affinity configured in guest is honoured. The traffic > distribution is uniform. When smp affinity is configured > in host and guest properly this fix provides multi queue and > hence multi core traffic distribution in both host and > guest. The result is good packet throughput. > > Thanks for the the much needed fixes. Thanks for testing! Alex > -Shashidhar > > On Mon, Feb 6, 2012 at 10:59 PM, Alex Williamson > wrote: > > On Mon, 2012-02-06 at 21:25 +0530, Shashidhar Patil wrote: > >> HI Alex, > >> I can give it a try. Please send me all patches as one file if possible. > >> I was about to report yet another problem with Guest MSI-X smp affinity > >> not being honoured by KVM while injecting interrupts. Its again in the context > >> of 82599 device (tried with Linux as guest). I had a hunch that the MSI-X vector > >> data which gets modified when SMP affinity is not tracked by the qemu_kvm. > >> So the interrupt injection was done in load balancing fashion. Because of this > >> interrupt LB in guest VCPUs I saw that packets for all the queues were processed > >> by one VCPU instead 2 or 4 available. > >> Anyway I will test the the MSI-X affinity fix also and get back with results. > >> And I hope 82599 send/receive works. Thanks for your help. > > > > I pushed the v2 version to github, so you can grab it from here for > > testing: > > > > git://github.com/awilliam/qemu-kvm.git > > > > Branch pci-assign-msix. Thanks, > > > > Alex > >