Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4535221pxv; Tue, 27 Jul 2021 09:36:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz76iSpfP4arapdOI5bgj0X1w8ECTAPo/lrLjBzo953Z+mQXh/YLG4+DjqNZsLjFamsVbsM X-Received: by 2002:a05:6e02:1567:: with SMTP id k7mr13833451ilu.146.1627403787274; Tue, 27 Jul 2021 09:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627403787; cv=none; d=google.com; s=arc-20160816; b=g0jtx4faJxcO8GL8Ec0qaM4hMnRyJ2dwoY9IQVMmfrbzpwZFZ9ur4GNj4E22uG+AG9 xOH5NHKaUhTIC9q2N5W/L7Q6VQz1DsVjC7EODFD4LnI0aCFuQh3GuxrB47ah8dKiwj2J tM5R9oS0IZ3UmOi7G+xKpgsvca8ah0NkZzxrwZMwyyaJIVdVLRLwN8/qM+9ZPwsUlDHm wNC7TE9wKjNRIDchMthzDfJEVzyx/Is/B4DrggQlKAJ70ilpWFlMACSDGecoziVsLfrv UPgFRC/7sqSnsziOcu7Lc+zxcIQKd+hpABHXpEJX/GuGsXD2Xn5WgLQBeV0IXbehyhWy n0hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:organization:in-reply-to:subject:cc:to:from :dkim-signature; bh=90tCfQVeRTH8MaC1o4KYlvgxHv2WwxCXpgUHehd5MrI=; b=jEapsrn55R/00bST9pARiRrYlBrisrAoftpkVpA9h7VgBeUsGeN7RXmxDqTNrfmY/q CG0DHNazqgHJPNhHbgiiRTzsqba7Eiagu6cN7w9uTCxSXcZMF7Gy/dadjgpiNziGuiW5 Uj6kA8yyJaNZmlAqdnflQ1qi0icCfYb0Hi6Omh0h5Vxm9HclC3g0WESjKXwb6PSnAegP vSS5+S7fLfb8rGFSaOowNIJGzpHuHvxNWbdA32ShrwLUyahNqmlPQ/o0qoL5jnT5SUTr JKUtIckYlreg07ZdU9Q8NbTdk1yNhH6owedwt2GHwwgb3Pnf1TOanP1GNmTJImU69+0E +NOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e9PtRDJg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i187si3423348iof.20.2021.07.27.09.36.15; Tue, 27 Jul 2021 09:36:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e9PtRDJg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbhG0Qf3 (ORCPT + 99 others); Tue, 27 Jul 2021 12:35:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58543 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhG0Qf2 (ORCPT ); Tue, 27 Jul 2021 12:35:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627403728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=90tCfQVeRTH8MaC1o4KYlvgxHv2WwxCXpgUHehd5MrI=; b=e9PtRDJgqgSgi1Zv12JFPCzmPXrZkBI+3BR/cCxN8BaZxSv28rGYlaTbE5xht0R63yw3RI HWevbwAg6sdRukS6/C2S/jChEgVKbtmTSLmQidUKItoZPw5QHjcAUED0K1IYVcS+5iFI/e HoZnx40BU4nvlmceuAN7Lz6tfqLu8G8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-494-PbhXqnTjOW6wEiU_ZuHt2w-1; Tue, 27 Jul 2021 12:35:27 -0400 X-MC-Unique: PbhXqnTjOW6wEiU_ZuHt2w-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A9AB4802B9F; Tue, 27 Jul 2021 16:35:24 +0000 (UTC) Received: from localhost (unknown [10.39.192.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 986A260862; Tue, 27 Jul 2021 16:35:16 +0000 (UTC) From: Cornelia Huck To: Cai Huoqing , alex.williamson@redhat.com, jgg@ziepe.ca, eric.auger@redhat.com, kevin.tian@intel.com, giovanni.cabiddu@intel.com, mgurtovoy@nvidia.com, jannh@google.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Cai Huoqing Subject: Re: [PATCH] vfio: Add "#ifdef CONFIG_MMU" for vma operations In-Reply-To: <20210727034000.547-1-caihuoqing@baidu.com> Organization: Red Hat GmbH References: <20210727034000.547-1-caihuoqing@baidu.com> User-Agent: Notmuch/0.32.1 (https://notmuchmail.org) Date: Tue, 27 Jul 2021 18:35:14 +0200 Message-ID: <877dhb4svx.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27 2021, Cai Huoqing wrote: > Add "#ifdef CONFIG_MMU", > because vma mmap and vm_operations_struct depend on MMU vfio_pci already depends on MMU -- what problems are you trying to fix? > > Signed-off-by: Cai Huoqing > --- > drivers/vfio/pci/vfio_pci.c | 4 ++++ > drivers/vfio/vfio.c | 8 ++++++++ > 2 files changed, 12 insertions(+)