Re: [PATCH v2 1/2] tools/virtio: Add missing compat definitions for vhost_net_test
From: SJ Park
Date: Wed Jul 01 2026 - 10:12:59 EST
On Mon, 29 Jun 2026 10:21:23 +0800 Yichong Chen <chenyichong@xxxxxxxxxxxxx> wrote:
> vhost_net_test builds virtio_ring.c in userspace.
>
> Recent virtio headers pull in helper headers that are not provided by
> the tools/virtio compatibility layer, including asm/percpu_types.h,
> linux/completion.h, linux/mod_devicetable.h and
> linux/virtio_features.h.
>
> Add the missing compat definitions and the DMA attribute used by the
> current virtio ring code.
I confirmed this patch fixes the build on my setup.
>
> Signed-off-by: Yichong Chen <chenyichong@xxxxxxxxxxxxx>
Tested-by: SJ Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]