diff mbox

xen/include/asm-x86/hvm/svm/vmcb.h: Correction in comments.

Message ID 1497467958-17009-1-git-send-email-myselfdushyantbehl@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dushyant Behl June 14, 2017, 7:19 p.m. UTC
The VMEXIT codes listed from EXCEPTION_PF to EXCEPTION_XF had comments
describe the exitcodes slightly shifted than the expected value.
The expected exitcode value for page-fault is 78 which should be 0x4E
and so on till exception XF.

Signed-off-by: Dushyant Behl <myselfdushyantbehl@gmail.com>
---
 xen/include/asm-x86/hvm/svm/vmcb.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Boris Ostrovsky June 14, 2017, 7:29 p.m. UTC | #1
On 06/14/2017 03:19 PM, Dushyant Behl wrote:
> The VMEXIT codes listed from EXCEPTION_PF to EXCEPTION_XF had comments
> describe the exitcodes slightly shifted than the expected value.
> The expected exitcode value for page-fault is 78 which should be 0x4E
> and so on till exception XF.
>
> Signed-off-by: Dushyant Behl <myselfdushyantbehl@gmail.com>


Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
diff mbox

Patch

diff --git a/xen/include/asm-x86/hvm/svm/vmcb.h b/xen/include/asm-x86/hvm/svm/vmcb.h
index 6bbab1e..30a228b 100644
--- a/xen/include/asm-x86/hvm/svm/vmcb.h
+++ b/xen/include/asm-x86/hvm/svm/vmcb.h
@@ -244,12 +244,12 @@  enum VMEXIT_EXITCODE
     VMEXIT_EXCEPTION_NP  =  75, /* 0x4b, segment-not-present */
     VMEXIT_EXCEPTION_SS  =  76, /* 0x4c, stack */
     VMEXIT_EXCEPTION_GP  =  77, /* 0x4d, general-protection */
-    VMEXIT_EXCEPTION_PF  =  78, /* 0x4f, page-fault */
-    VMEXIT_EXCEPTION_15  =  79, /* 0x50, reserved */
-    VMEXIT_EXCEPTION_MF  =  80, /* 0x51, x87 floating-point exception-pending */
-    VMEXIT_EXCEPTION_AC  =  81, /* 0x52, alignment-check */
-    VMEXIT_EXCEPTION_MC  =  82, /* 0x53, machine-check */
-    VMEXIT_EXCEPTION_XF  =  83, /* 0x54, simd floating-point */
+    VMEXIT_EXCEPTION_PF  =  78, /* 0x4e, page-fault */
+    VMEXIT_EXCEPTION_15  =  79, /* 0x4f, reserved */
+    VMEXIT_EXCEPTION_MF  =  80, /* 0x50, x87 floating-point exception-pending */
+    VMEXIT_EXCEPTION_AC  =  81, /* 0x51, alignment-check */
+    VMEXIT_EXCEPTION_MC  =  82, /* 0x52, machine-check */
+    VMEXIT_EXCEPTION_XF  =  83, /* 0x53, simd floating-point */
 
     /* exceptions 20-31 (exitcodes 84-95) are reserved */