[xen master] xen-access: Correct default value of write-to-CR4 switch

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] xen-access: Correct default value of write-to-CR4 switch

patchbot
commit f975068fea81adc81b71864c70f9413521ef3a04
Author:     Sergej Proskurin <[hidden email]>
AuthorDate: Wed Aug 30 13:19:14 2017 +0200
Commit:     Wei Liu <[hidden email]>
CommitDate: Thu Aug 31 16:32:37 2017 +0100

    xen-access: Correct default value of write-to-CR4 switch
   
    The current implementation configures the test environment to always
    trap on writes to the CR4 control register, even on ARM. This leads to
    issues as calling xc_monitor_write_ctrlreg on ARM with VM_EVENT_X86_CR4
    will always fail.
   
    Signed-off-by: Sergej Proskurin <[hidden email]>
    Acked-by: Razvan Cojocaru <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
---
 tools/tests/xen-access/xen-access.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c
index 1e69e25..9d960e2 100644
--- a/tools/tests/xen-access/xen-access.c
+++ b/tools/tests/xen-access/xen-access.c
@@ -394,7 +394,7 @@ int main(int argc, char *argv[])
     int debug = 0;
     int cpuid = 0;
     int desc_access = 0;
-    int write_ctrlreg_cr4 = 1;
+    int write_ctrlreg_cr4 = 0;
     uint16_t altp2m_view_id = 0;
 
     char* progname = argv[0];
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog