NCC group did a good article on unikernels and how crap they are if you want to know.
A better idea, like already suggested would be to create an OS which builds itself according to a target application and system, to host that application on said system specifically. that would reduce about as much code, but keep potential security mechanisms like aslr, stack protection , user / kernel separation etc. in tact. (now kernels / oses build to target system ,but not application! -> application would only use subset of kernel, and thus kernel can be built to target application, reducing kernel to whats needed).
don't try to be cheap for performance and skip security, we're not in the damned 80s anymore.
/endrant