Skip to content

Memif connect fails on arm setup #280

@nikhil-agarwal-git

Description

@nikhil-agarwal-git

Description
Memif fails to initialize when testing on Arm arch setup.

How to reproduce
Bringup setup on Arm platform

Expected Behavior

Screenshots/Logs
"errors.errorString=initializeRegions: memfdCreate: memfd_create: function not implemented"

Environment (please complete the following information)

Info Example Value
OS/arch linux/arm64
VPP version v24.02-release
GoVPP version v0.9.0

RCA: while creating memfd (memfdCreate()), syscall is called with trap 319 which is not valid when called from arm arch. 279 is a valid value to be used for arm setup.
To have a generic solution for all platforms, following call is more suitable which internally calls platform specific values instead of existing memfdCreate().

Proposed Fix:

  • r.fd, err = unix.MemfdCreate("memif_region_0", mfd_allow_sealing)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions