Resource mapping is not supported on Arm and results to an error message
at every guest boot:
xenforeignmemory: error: ioctl failed: Operation not supported
Hide the error message when errnor is ENOTSUPP.
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
{
int saved_errno;
- if ( errno != ENOTTY )
+ if ( errno != ENOTTY && errno != EOPNOTSUPP )
PERROR("ioctl failed");
else
errno = EOPNOTSUPP;