mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
hv: change error code of undefined hypercall
This patch adds ENOTTY and ENOSYS to indicate undefined and obsoleted request hyercall respectively, and uses ENOTTY as error code for undefined hypercall instead of EINVAL to consistent with the ACRN kernel's return value. Tracked-On: #7029 Signed-off-by: Wen Qian <qian.wen@intel.com> Signed-off-by: Li Fei <fei1.li@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
#define ENODEV 19
|
||||
/** Indicates that argument is not valid. */
|
||||
#define EINVAL 22
|
||||
/** Indicates the operation is undefined. */
|
||||
#define ENOTTY 25
|
||||
/** Indicates the operation is obsoleted. */
|
||||
#define ENOSYS 38
|
||||
/** Indicates that timeout occurs. */
|
||||
#define ETIMEDOUT 110
|
||||
|
||||
|
||||
Reference in New Issue
Block a user