[xen master] x86emul: force CLZERO feature flag in test harness

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

[xen master] x86emul: force CLZERO feature flag in test harness

patchbot
commit 5d1ad47ff7940d95c322667678a190c8607754b4
Author:     Jan Beulich <[hidden email]>
AuthorDate: Wed Apr 19 13:30:27 2017 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Wed Apr 19 13:30:27 2017 +0200

    x86emul: force CLZERO feature flag in test harness
   
    Commit b988e88cc0 ("x86/emul: Add feature check for clzero") added a
    feature check to the emulator, which breaks the harness without this
    flag being forced to true.
   
    Signed-off-by: Jan Beulich <[hidden email]>
    Reviewed-by: Andrew Cooper <[hidden email]>
    Release-acked-by: Julien Grall <[hidden email]>
---
 tools/tests/x86_emulator/x86_emulate.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/tests/x86_emulator/x86_emulate.c b/tools/tests/x86_emulator/x86_emulate.c
index cea0595..79661d5 100644
--- a/tools/tests/x86_emulator/x86_emulate.c
+++ b/tools/tests/x86_emulator/x86_emulate.c
@@ -89,6 +89,13 @@ int emul_test_cpuid(
         res->c |= 1U << 22;
     }
 
+    /*
+     * The emulator doesn't itself use CLZERO, so we can always run the
+     * respective test(s).
+     */
+    if ( leaf == 0x80000008 )
+        res->b |= 1U << 0;
+
     return X86EMUL_OKAY;
 }
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

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