Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4592545pxv; Tue, 27 Jul 2021 11:03:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh9zoBL2SZ3CDwVkdFx/Xd7AUbqNxdwY4Dw5Glejid4N3DIrGpjuxi5iQqS13x4Zv29+i+ X-Received: by 2002:a92:3302:: with SMTP id a2mr17850011ilf.62.1627409017411; Tue, 27 Jul 2021 11:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627409017; cv=none; d=google.com; s=arc-20160816; b=lYa2WknyNQ08o2OdPyG/8lXZV/oQvqWdJnYUnwt/4vCf4f1O6jZI5L8aqZAdclPKS+ zBQZ9mi6dw3Z82c1ZDUAtr4ZUvB3SxhBC0eAQieRsAIzu9fGmSBa9/P/eQi1oV7x4tut A7pj/MIZF51qs78fNCdHT0H0mVrdmYtnnbhCv5KnyyHQjgvjpRbHfvV/pwldcbcCglC4 PyRcn/vTQnYJqHv9hdVhg02fHXRVpuJ5f1uEDICXc3mb1QRNNpmEhqDeKCzYb4+DfQXp 0dshkPtTqIpehvlwYPuAQIyaD4PVT+nSa/x9KrJK+QPM9qBwBDa3qCZSjbz1IfGuFwIt paFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=l3ve2LBl56pycpmfaPjVOw8bmB5e513L10q/E/QV624=; b=f9MTCstegR9HuPctwnFFCQBem/ZCO2lFJTzS6EbtbWjK5+XJ8bh2EATKRNb6WoHa6S rYLtLjeOlefv6/OBcwK+KkoT5FnLzQCcRTcFPEwRbxiSB39VZhncl/oJmwKHptVG1kSP RCAQ89X15l+3dxIr4DP5nvGoEarhbhMbYY5jLpRU9o16crt4hWcmyg3QplplpP5KmDAO RWwCXcyFHklszKcxkRLN1t2OOx1UXslgMWRqqu0pjX3Qm1OLb/rJC6xCUnxAZgwiA41Y GtXt1tF9Q34EdW13rqKWs3gmr2k2DFNVnXG7Xel2YuEs/KPFCcg9POwJyjnY47AC5fZQ 95LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MDLz+FGe; 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 h22si3677433jal.57.2021.07.27.11.03.25; Tue, 27 Jul 2021 11:03:37 -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=MDLz+FGe; 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 S231426AbhG0SBX (ORCPT + 99 others); Tue, 27 Jul 2021 14:01:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:59641 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbhG0SBW (ORCPT ); Tue, 27 Jul 2021 14:01:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627408882; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l3ve2LBl56pycpmfaPjVOw8bmB5e513L10q/E/QV624=; b=MDLz+FGeaEoRAOop+I2WPhQIiBEpOdEUtaF3IUfR7ZxGA6qJnshjDGAD4l0ikzeLlBXSbl FfUQecF3ZnoSInmjI/y7U8Zqp1+JkZi+xR30pP5qWnNDe7XnCHKLY0AxuMVsigF3hPi96o 9psN6hZRE8g3w/F0IchiG2BzMVOLqhk= Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-181-DYz3pAuEPi6F5NfwwShdzA-1; Tue, 27 Jul 2021 14:01:20 -0400 X-MC-Unique: DYz3pAuEPi6F5NfwwShdzA-1 Received: by mail-ot1-f70.google.com with SMTP id j16-20020a05683015d0b02904d6c4f8a8a3so5542454otr.22 for ; Tue, 27 Jul 2021 11:01:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=l3ve2LBl56pycpmfaPjVOw8bmB5e513L10q/E/QV624=; b=afd29VudQlQtIEFws6MD0JbBI37J6QDf9sien0QsMiwlmFCZKAMe051KJz+XixCNaY +pafjV5GcLD9ZYh5QK2GFKryY0UDwbIA3uOS0TexM6dC4aNqR4ci/Ui9FLUwt1lgK+FN 9ttytHizLf2ctWSd23Cj/q0+/nOR9KMzqAbYcGl9iJ6EsteCfawW8ECemeQDxis/AZLc xtnWDo6V/CubJUXwJbm7+7Xix4WaI1mXR7AJU98KmtUGMiZIstvg0xpyAyWy0y8T0ONX waKkOZHbgc9L8yJYm3JutEsaS/TmZYLQAtt24qYbgJgM93QSMXHTtyE9vEyEFNveLIcw aR1A== X-Gm-Message-State: AOAM530OdbncqxGf+W75qfwYWjlXHSrmszeSqoJ6d16Y//rpI6NhMoH6 cE1biP910S/IqilQWQflpiW2YxEXt/+OtF4GTr0ifLCYpa80KRlwgX9FhSScAJVWWaWmH0clps6 5R20amMNfYdbujtlNb3bqPz82 X-Received: by 2002:a05:6830:1290:: with SMTP id z16mr16147238otp.28.1627408879833; Tue, 27 Jul 2021 11:01:19 -0700 (PDT) X-Received: by 2002:a05:6830:1290:: with SMTP id z16mr16147135otp.28.1627408878209; Tue, 27 Jul 2021 11:01:18 -0700 (PDT) Received: from redhat.com ([198.99.80.109]) by smtp.gmail.com with ESMTPSA id y76sm664344oie.55.2021.07.27.11.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 11:01:17 -0700 (PDT) Date: Tue, 27 Jul 2021 12:01:16 -0600 From: Alex Williamson To: Cornelia Huck Cc: Cai Huoqing , jgg@ziepe.ca, eric.auger@redhat.com, kevin.tian@intel.com, giovanni.cabiddu@intel.com, mgurtovoy@nvidia.com, jannh@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfio: Add "#ifdef CONFIG_MMU" for vma operations Message-ID: <20210727120116.61ba8e25.alex.williamson@redhat.com> In-Reply-To: <877dhb4svx.fsf@redhat.com> References: <20210727034000.547-1-caihuoqing@baidu.com> <877dhb4svx.fsf@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Jul 2021 18:35:14 +0200 Cornelia Huck wrote: > 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? Exactly my question, we silenced the randconfig builds without CONFIG_MMU in commit 2a55ca373501 ("vfio/pci: zap_vma_ptes() needs MMU"). Surely there are prototypes for vma_area_struct regardless of CONFIG_MMU and vfio-core having an mmap callback has no dependency on vm_operations_struct. Thanks, Alex