From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by dpdk.org (Postfix) with ESMTP id C979F591A for ; Thu, 21 Jan 2016 11:32:55 +0100 (CET) Received: by mail-oi0-f53.google.com with SMTP id p187so23561605oia.2 for ; Thu, 21 Jan 2016 02:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=YKnf9NH2/aSJHrg37sC8dDKRYAe9lMJYzs7FfTKWvYs=; b=Ui21lfbJfFQt+jf3qRBpGkxWuKPdDjwmj3D5UCUuIfVt17/F7MR77uL8x5H6pCqyma xirU3ZZvGuc7CTESLEPPakVVkiwvHGN5/8ROrpx/QxY120bn8TiJfIxafuiw4ffAGxyg GYHrj4PcEyQPYt0/tbEGLmwEuY0T4LdTFHUd9qymB/7Z6lEyy+LHqdE5Q2ISpupoInJH FAvqzOugF1YqUxcxWK0tAIoHsqqQVPmhxJXS721V7HN5eMlJLGNflKCjB6D/TyGGykym 4CXvI9CHxDhDW39kkSN+0Lp4+RYgWxseadffN5W/0TGqwJj5JxflkH8okyvg7xh0Bqyv dBMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=YKnf9NH2/aSJHrg37sC8dDKRYAe9lMJYzs7FfTKWvYs=; b=iY+jYxDGZIpHxEabtUsem1M/7txQNWhWO4k2S0ZTAcgYGeH51oX56a6AF8CFSU+gGG PM0n5ITbA0rjKDQvslQ+bBOSTT65SIHBqA9Vp1asdRLx5wLcyt/Ga2VsFbk2eb6Ei4Pf vCEUU4xVISKug0WKS7cFitHZNOJH0rA8BEzSc3pSYD00j3l0TQA2R5WX6lZDyp6a42pA gHrTkPaXVJQxWCvxTonbhCRHF3j90xJ88haysBUgjSEwcTHAlsJd2CyqpYkdZLcF9z82 9cGv1ydQCnskb7K6utxHhmWjTreiOyaCjmNwdUqDbqUScHiREJsWfcubY3LBQ9Uu6lbi jbgQ== X-Gm-Message-State: ALoCoQk1NbrXUxUvSdBU/xnNretrxEzViwLeqTD3ZWPMlkCIxSrrKNk/RZIHVgCbXKtUiVJcKjRbeua1jukriZiqKhp5tfOhXdkdOaFISXHZLbCnbihNAyQ= X-Received: by 10.202.175.22 with SMTP id y22mr28674588oie.22.1453372375154; Thu, 21 Jan 2016 02:32:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.180.72 with HTTP; Thu, 21 Jan 2016 02:32:35 -0800 (PST) In-Reply-To: <1453229842-15310-1-git-send-email-sshukla@mvista.com> References: <1453229842-15310-1-git-send-email-sshukla@mvista.com> From: David Marchand Date: Thu, 21 Jan 2016 11:32:35 +0100 Message-ID: To: Santosh Shukla Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v6 08/11] eal: pci: introduce RTE_KDRV_VFIO_NOIOMMUi driver mode 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, 21 Jan 2016 10:32:56 -0000 Santosh, On Tue, Jan 19, 2016 at 7:57 PM, Santosh Shukla wrote: > Adding RTE_KDRV_VFIO_NOIOMMU mode in kernel driver. Also including > rte_vfio_is_noiommu() helper function. This function will parse > /sys/bus/pci/device// and make sure that > - vfio noiommu mode set in kernel driver > - pci device attached to vfio-noiommu driver only > > If both condition satisfies then set drv->kdrv = RTE_KDRV_VFIO_NOIOMMU > > Also did similar changes in virtio_rd/wr, Changes applicable for virtio spec > 0.95 only. This is a mode (specific to vfio), not a new kernel driver. How come we need to distinguish between with/without iommu modes ? Should not vfio behave the same way from an api point of view ? Regards, -- David Marchand