Re: [PATCH] vfio: Add "#ifdef CONFIG_MMU" for vma operations

From: Cornelia Huck
Date: Tue Jul 27 2021 - 12:35:32 EST


On Tue, Jul 27 2021, Cai Huoqing <caihuoqing@xxxxxxxxx> 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 <caihuoqing@xxxxxxxxx>
> ---
> drivers/vfio/pci/vfio_pci.c | 4 ++++
> drivers/vfio/vfio.c | 8 ++++++++
> 2 files changed, 12 insertions(+)