lkml.org 
[lkml]   [2022]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH 1/2] KVM: arm64: selftests: Disable single-step with correct KVM define
    From
    Disable single-step by setting debug.control to KVM_GUESTDBG_ENABLE,
    not to SINGLE_STEP_DISABLE. The latter is an arbitrary test enum that
    just happens to have the same value as KVM_GUESTDBG_ENABLE, and so
    effectively disables single-step debug.

    No functional change intended.

    Cc: Reiji Watanabe <reijiw@google.com>
    Fixes: b18e4d4aebdd ("KVM: arm64: selftests: Add a test case for KVM_GUESTDBG_SINGLESTEP")
    Signed-off-by: Sean Christopherson <seanjc@google.com>
    ---
    tools/testing/selftests/kvm/aarch64/debug-exceptions.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c
    index 947bd201435c..91f55b45dfc7 100644
    --- a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c
    +++ b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c
    @@ -369,7 +369,7 @@ void test_single_step_from_userspace(int test_cnt)
    KVM_GUESTDBG_SINGLESTEP;
    ss_enable = true;
    } else {
    - debug.control = SINGLE_STEP_DISABLE;
    + debug.control = KVM_GUESTDBG_ENABLE;
    ss_enable = false;
    }

    --
    2.38.1.431.g37b22c650d-goog
    \
     
     \ /
      Last update: 2022-11-17 01:24    [W:2.737 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site