[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libs/foreignmemory: Avoid printing an error for ENOTSUPP
commit 80cdb33cb7a96c3355b35ec620f1798fe3be1048 Author: Julien Grall <julien.grall@xxxxxxx> AuthorDate: Mon Aug 13 18:33:25 2018 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Wed Aug 15 10:26:21 2018 +0100 libs/foreignmemory: Avoid printing an error for ENOTSUPP 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@xxxxxxx> Reviewed-by: Paul Durrant <paul.durrant@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libs/foreignmemory/linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/foreignmemory/linux.c b/tools/libs/foreignmemory/linux.c index a6b41b0b7f..3686cf41e0 100644 --- a/tools/libs/foreignmemory/linux.c +++ b/tools/libs/foreignmemory/linux.c @@ -307,7 +307,7 @@ int osdep_xenforeignmemory_map_resource( { int saved_errno; - if ( errno != ENOTTY ) + if ( errno != ENOTTY && errno != EOPNOTSUPP ) PERROR("ioctl failed"); else errno = EOPNOTSUPP; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |