Input/output error? Is that really the most appropriate error here?
rdmsrl_safe(MSR_EFER, &host_efer);
+ if (WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_NX) &&
+ !(host_efer & EFER_NX)))
+ return -EIO;
Why not, say, -ENOTSUP?
I'm sure there's some arcane convention here that I'm not privy to.:-)
Reviewed-by: Jim Mattson<jmattson@xxxxxxxxxx>