A recent Xen change switched some use of -ENOSYS to -EOPNOTSUPP. Treat them
equivelently where relevent.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
switch ( rc )
{
case -ENOSYS:
+ case -EOPNOTSUPP:
return xtf_skip("PV superpage support not detected\n");
case -EINVAL:
expand_array.array_gfn = virt_to_gfn(array_page);
ret = hypercall_event_channel_op(EVTCHNOP_expand_array, &expand_array);
- if ( ret != -ENOSYS )
- xtf_failure("EVTCHNOP_expand_array returned %d (!= %d)\n", ret, -ENOSYS);
+ if ( ret != -ENOSYS && ret != -EOPNOTSUPP )
+ xtf_failure("EVTCHNOP_expand_array returned %d (!= %d or %d)\n",
+ ret, -ENOSYS, -EOPNOTSUPP);
xtf_success(NULL);
}