In any case, rumprun unikernels do not support SMP (see FAQ:
https://github.com/rumpkernel/wiki/wiki/Info%3A-FAQ#user-content-question-10)
so there is no point in attempting to manipulate cpusets anyway.
You'll need to modify the zmap code to run without the CPUset
functionality.
I don't know what the original poster's plan for zmap is, but if it's
high performance, note that the limitations imposed by a general purpose
OS do not necessarily make sense on a unikernel. Instead of working
around the kernel, you should instead modify entire stack to be better
suited for your application. It's hard to do in a general purpose OS
because you still need to keep everything intact so that your system
will even boot, you can ssh in, etc. However, in a unikernel where
there's exactly one thing running, it's easier. So "porting" zmap will
not necessarily give as good results as "rethinking" zmap.
That said, the best start is to get it working at all ;)