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 2CD5512A8 for ; Thu, 1 Oct 2015 12:11:32 +0200 (CEST) Received: by wicgb1 with SMTP id gb1so21879294wic.1 for ; Thu, 01 Oct 2015 03:11:32 -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=7rv45jX1nXr26XCQBWtrlj3quuh++NIR0oPhhrNbiI0=; b=Aom/bOcdl7lq5yaq+FKOypcWFPcjiMYUcx5DH+CnXEkcrM6kbIBBHpth91LCmHF+I7 Q/xBN0TM5LcG/+XLOAnTtA4GHram5IE9AsEWNf0g69XeScm9sWBsQFI+aoawea07FEwL 5giIw7EBtwu+wZgK3BNwkOCc8eQq85pu1wi9ayatf59WPuU/3Fw6J5VuK18MbizpVziO FsET1l7eW+RHP4HUV12HGpkviz2j3qdQP5ikZrD7c29oPl1y51hFcEZ37L4t0OqDP/Hg gLfTJcMGLL+/lyQXnVQgdLFg7hpFGFy4+5EwQTqSlbYXmAwF8kp2ekx80kn377oYD0Lh 9B0g== X-Gm-Message-State: ALoCoQmYTBIozLmoIEmHIKcpEBuI2v7ZiBjp6VCEeyS+UptFSKi3+YAkkStWbYYtgQQV1M6K2DJw X-Received: by 10.180.208.49 with SMTP id mb17mr2348603wic.52.1443694291984; Thu, 01 Oct 2015 03:11:31 -0700 (PDT) Received: from avi.cloudius ([37.142.229.250]) by smtp.googlemail.com with ESMTPSA id cv4sm5342822wjc.17.2015.10.01.03.11.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 03:11:29 -0700 (PDT) To: "Michael S. Tsirkin" References: <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> <560CF9C5.8050901@scylladb.com> <20151001121638-mutt-send-email-mst@redhat.com> <560CFF2B.3090407@scylladb.com> <20151001125604-mutt-send-email-mst@redhat.com> From: Avi Kivity Message-ID: <560D06D0.7030506@scylladb.com> Date: Thu, 1 Oct 2015 13:11:28 +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: <20151001125604-mutt-send-email-mst@redhat.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 10:11:32 -0000 On 10/01/2015 01:07 PM, Michael S. Tsirkin wrote: > On Thu, Oct 01, 2015 at 12:38:51PM +0300, Avi Kivity wrote: >> The sad thing is that you can do this since forever on a non-virtualized >> system, or on a virtualized system if you don't need interrupt support. All >> you're doing is blocking interrupt support on virtualized systems. > True, Linux could do more to prevent this kind of abuse. > In fact IIRC, if you enable secureboot, it does exactly that. > > A generic uio driver isn't a good interface because it relies on these > sysfs files. We are luckly it doesn't work for VFs, I don't think we > should do anything that relies on this interface in future applications. > I agree that uio is not a good solution. But for some users, which we are discussing now, it is the only solution. A bad solution is better than no solution.