hv: define errno more general

Hypercall will return errno to SOS (Now is linux kernel).
Let's define this more general.

Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Li, Fei1 2018-05-29 11:42:04 +08:00 committed by lijinxia
parent 987c7b7511
commit c2ee561c02

View File

@ -31,17 +31,21 @@
#ifndef ERRNO_H #ifndef ERRNO_H
#define ERRNO_H #define ERRNO_H
/** Indicates that not enough memory. */ /** Indicates that operation not permitted. */
#define ENOMEM 1 #define EPERM 1
/** Indicates that argument is not valid. */
#define EINVAL 2
/** Indicates that no such dev. */
#define ENODEV 3
/** Indicates that there is IO error. */ /** Indicates that there is IO error. */
#define EIO 4 #define EIO 5
/** Indicates that target is busy. */ /** Indicates that not enough memory. */
#define EBUSY 5 #define ENOMEM 12
/** Indicates Permission denied */
#define EACCES 13
/** Indicates there is fault. */ /** Indicates there is fault. */
#define EFAULT 6 #define EFAULT 14
/** Indicates that target is busy. */
#define EBUSY 16
/** Indicates that no such dev. */
#define ENODEV 19
/** Indicates that argument is not valid. */
#define EINVAL 22
#endif /* ERRNO_H */ #endif /* ERRNO_H */