From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 9FDA98D91 for ; Thu, 1 Oct 2015 11:54:13 +0200 (CEST) Received: by wicgb1 with SMTP id gb1so21189959wic.1 for ; Thu, 01 Oct 2015 02:54:13 -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=BKIHXE6RLVD3+vlm/YSVG79pyzb/QZJHpW9EKPm3oo8=; b=eqZjA/iomIuJX8IzdCCmSYBq9j234+Y2/IsoWBnjvrWXF1NKp/cJ3QkFjc0KNHicrH p4blG18oYKTWIrezZEO5UcE3LVRxp3SG1OCRAhakYtcf3jXQ5GtCGTx7V7E80n7A8bJ6 QdUV7pOvjID8scTEEsPKN2h5EoEujB4g1AgnJKAOcmnRm9xwrCt+iY9Wzu6l1TsHQg+v rFbDKtnozMTTwzfszvX7LbZlsOZAqrDIJNHyykHFfCbI6Y9JdDDgchpmPvWozKQU0Fdl JFegeqHqs10pydRmRQcY3qBmu1lVUDKBQ1VW2D3Tb2hP8q4ZiEyf8OyUpnplXwzIt/w8 kwog== X-Gm-Message-State: ALoCoQlkA+NKPYAzAD08//TCEGllYF2uhNcy6WmKlkeDSvWyRtBzNZZb29/NkjUrTmiGFTWBHjew X-Received: by 10.180.102.195 with SMTP id fq3mr2379281wib.7.1443693253531; Thu, 01 Oct 2015 02:54:13 -0700 (PDT) Received: from avi.cloudius ([37.142.229.250]) by smtp.googlemail.com with ESMTPSA id fs9sm2282386wic.24.2015.10.01.02.54.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 02:54:12 -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> <560D0059.5050003@scylladb.com> <560D0170.3080707@6wind.com> From: Avi Kivity Message-ID: <560D02C3.9090608@scylladb.com> Date: Thu, 1 Oct 2015 12:54:11 +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: <560D0170.3080707@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:54:13 -0000 On 10/01/2015 12:48 PM, Vincent JARDIN wrote: > On 01/10/2015 11:43, Avi Kivity wrote: >> >> That is because the device itself contains an iommu. > > Yes. > > It could be an option: > - we could flag the Linux system unsafe when the device does not > have any IOMMU > - we flag the Linux system safe when the device has an IOMMU This already exists, it's called the tainted flag. I don't know if pci_uio_generic already taints the kernel; it certainly should with DMA capable devices.