[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH WIP 12/14] xenalyze: Basic processing for XSETBV exits and handlers



Basically this means adding VMEXIT strings for XSETBV exit, and adding
the handlers and strings for them.

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxx>
---
 tools/xentrace/xenalyze.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c
index eb0e60e6ef..d0e2788727 100644
--- a/tools/xentrace/xenalyze.c
+++ b/tools/xentrace/xenalyze.c
@@ -694,6 +694,8 @@ enum VMEXIT_EXITCODE
     VMEXIT_MONITOR          = 138,
     VMEXIT_MWAIT            = 139,
     VMEXIT_MWAIT_CONDITIONAL= 140,
+    VMEXIT_XSETBV           = 141, /* 0x8d */
+    VMEXIT_RDPRU            = 142, /* 0x8e */
     VMEXIT_NPF              = 1024, /* nested paging fault */
     VMEXIT_INVALID          =  -1
 };
@@ -853,6 +855,8 @@ const char * 
hvm_svm_exit_reason_name[HVM_SVM_EXIT_REASON_MAX] = {
     "VMEXIT_MWAIT",
     /* 140 */
     "VMEXIT_MWAIT_CONDITIONAL",
+    "VMEXIT_XSETBV",
+    "VMEXIT_RDPRU",
     [VMEXIT_NPF] = "VMEXIT_NPF", /* nested paging fault */
 };
 
@@ -946,6 +950,8 @@ enum {
     HVM_EVENT_TRAP,
     HVM_EVENT_TRAP_DEBUG,
     HVM_EVENT_VLAPIC,
+    HVM_EVENT_XCR_READ,
+    HVM_EVENT_XCR_WRITE,
     HVM_EVENT_HANDLER_MAX
 };
 const char * hvm_event_handler_name[HVM_EVENT_HANDLER_MAX] = {
@@ -981,7 +987,9 @@ const char * hvm_event_handler_name[HVM_EVENT_HANDLER_MAX] 
= {
     "realmode_emulate",
     "trap",
     "trap_debug",
-    "vlapic"
+    "vlapic",
+    "xcr_read",
+    "xcr_write"
 };
 
 enum {
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.