From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id B9D148DA4 for ; Thu, 1 Oct 2015 11:43:56 +0200 (CEST) Received: by wicge5 with SMTP id ge5so20982016wic.0 for ; Thu, 01 Oct 2015 02:43:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=mScXQYOP1zLmotAGN4QIjKedtoN28zE39AvSy9udUIc=; b=Hov1CL0Nwr0OUGfDbXmrht6zaCnf0NwaVp3wC3+zYoNGO657TYbE9vsqMcD2FCvhy8 vzFj/jEQ8s81Uwyl+PBqKlOUs7H1ANiz+tyeUmBfAT6cPkQB5vWVgSMrr8XqyOjrq0V9 xP1ujPOELqjHn3LdmjdFxfMwQl0ov4uG3L7/d10jN9krscN7rk4hJETwdXcGIh9lteo/ wej/9OQx4Q3g8c5x+XdM0Zt2MkGPihYS3pXKNxBtsCWKbC9a/TZAPI290lcDuyyol+la v/PF3saqId8qMNjrAm3wjTC+GpsanoLirnq8M3dl53CMyRI+9sxZgW4BmRWnSQ1aD2pb fDzw== X-Gm-Message-State: ALoCoQlnaDaB0yALyLj5I3SgYNovA0sVvN4n911kB390sAtIF5Wpdo9jvxJYZfBW5CHWAgQ9RZRp X-Received: by 10.180.211.8 with SMTP id my8mr2100667wic.21.1443692636595; Thu, 01 Oct 2015 02:43:56 -0700 (PDT) Received: from avi.cloudius ([37.142.229.250]) by smtp.googlemail.com with ESMTPSA id ex17sm2228449wid.23.2015.10.01.02.43.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 02:43:55 -0700 (PDT) To: Vincent JARDIN , "Michael S. Tsirkin" References: <560BD284.7040505@cloudius-systems.com> <20150930151632-mutt-send-email-mst@redhat.com> <560BDE24.8000308@scylladb.com> <20150930165359-mutt-send-email-mst@redhat.com> <560BF782.4070308@scylladb.com> <20150930175848-mutt-send-email-mst@redhat.com> <560C0171.7080507@scylladb.com> <20150930204016.GA29975@redhat.com> <20151001113828-mutt-send-email-mst@redhat.com> <560CF44A.60102@scylladb.com> <20151001120027-mutt-send-email-mst@redhat.com> <560CFB66.5050904@scylladb.com> <560CFFFF.4000601@6wind.com> From: Avi Kivity Message-ID: <560D0059.5050003@scylladb.com> Date: Thu, 1 Oct 2015 12:43:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <560CFFFF.4000601@6wind.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Having troubles binding an SR-IOV VF to uio_pci_generic on Amazon instance X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2015 09:43:56 -0000 On 10/01/2015 12:42 PM, Vincent JARDIN wrote: > On 01/10/2015 11:22, Avi Kivity wrote: >>> As far as I could see, without this kind of motivation, people do not >>> even want to try. >> >> You are mistaken. The problem is a lot harder than you think. >> >> People didn't go and write userspace drivers because they were lazy. >> They wrote them because there was no other way. > > I disagree, it is possible to write a 'partial' userspace driver. > > Here it is an example: > http://dpdk.org/browse/dpdk/tree/drivers/net/mlx4 > > It benefits of the kernel's capabilities while the userland manages > only the IOs. > That is because the device itself contains an iommu. > There were some tentative to get it for other (older) drivers, named > 'bifurcated drivers', but it is stalled. IIRC they still exposed the ring to userspace.