Fix spelling typos found by an automated checker in the KVM
selftests for x86 and RISC-V.

Signed-off-by: Shivank Sharma <[email protected]>
---
 tools/testing/selftests/kvm/riscv/sbi_pmu_test.c              | 4 ++--
 tools/testing/selftests/kvm/x86/hyperv_clock.c                | 4 ++--
 tools/testing/selftests/kvm/x86/hyperv_evmcs.c                | 2 +-
 .../selftests/kvm/x86/vmx_invalid_nested_guest_state.c        | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c 
b/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
index e56a3dd6a..20388f0b9 100644
--- a/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
+++ b/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
@@ -492,7 +492,7 @@ static void test_pmu_events_snaphost(void)
        struct riscv_pmu_snapshot_data *snapshot_data = snapshot_gva;
        int i;
 
-       /* Verify presence of SBI PMU and minimum requrired SBI version */
+       /* Verify presence of SBI PMU and minimum required SBI version */
        verify_sbi_requirement_assert();
 
        snapshot_set_shmem(snapshot_gpa, 0);
@@ -518,7 +518,7 @@ static void test_pmu_events_overflow(void)
 {
        int num_counters = 0, i = 0;
 
-       /* Verify presence of SBI PMU and minimum requrired SBI version */
+       /* Verify presence of SBI PMU and minimum required SBI version */
        verify_sbi_requirement_assert();
 
        snapshot_set_shmem(snapshot_gpa, 0);
diff --git a/tools/testing/selftests/kvm/x86/hyperv_clock.c 
b/tools/testing/selftests/kvm/x86/hyperv_clock.c
index c083cea54..d5d779623 100644
--- a/tools/testing/selftests/kvm/x86/hyperv_clock.c
+++ b/tools/testing/selftests/kvm/x86/hyperv_clock.c
@@ -56,7 +56,7 @@ static inline void check_tsc_msr_rdtsc(void)
        tsc_freq = rdmsr(HV_X64_MSR_TSC_FREQUENCY);
        GUEST_ASSERT(tsc_freq > 0);
 
-       /* For increased accuracy, take mean rdtsc() before and afrer rdmsr() */
+       /* For increased accuracy, take mean rdtsc() before and after rdmsr() */
        r1 = rdtsc();
        t1 = rdmsr(HV_X64_MSR_TIME_REF_COUNT);
        r1 = (r1 + rdtsc()) / 2;
@@ -181,7 +181,7 @@ static void host_check_tsc_msr_rdtsc(struct kvm_vcpu *vcpu)
        tsc_freq = vcpu_get_msr(vcpu, HV_X64_MSR_TSC_FREQUENCY);
        TEST_ASSERT(tsc_freq > 0, "TSC frequency must be nonzero");
 
-       /* For increased accuracy, take mean rdtsc() before and afrer ioctl */
+       /* For increased accuracy, take mean rdtsc() before and after ioctl */
        r1 = rdtsc();
        t1 = vcpu_get_msr(vcpu, HV_X64_MSR_TIME_REF_COUNT);
        r1 = (r1 + rdtsc()) / 2;
diff --git a/tools/testing/selftests/kvm/x86/hyperv_evmcs.c 
b/tools/testing/selftests/kvm/x86/hyperv_evmcs.c
index c7fa114ae..5cc71658f 100644
--- a/tools/testing/selftests/kvm/x86/hyperv_evmcs.c
+++ b/tools/testing/selftests/kvm/x86/hyperv_evmcs.c
@@ -129,7 +129,7 @@ void guest_code(struct vmx_pages *vmx_pages, struct 
hyperv_test_pages *hv_pages,
        /*
         * NMI forces L2->L1 exit, resuming L2 and hope that EVMCS is
         * up-to-date (RIP points where it should and not at the beginning
-        * of l2_guest_code(). GUEST_SYNC(9) checkes that.
+        * of l2_guest_code(). GUEST_SYNC(9) checks that.
         */
        GUEST_ASSERT(!vmresume());
 
diff --git a/tools/testing/selftests/kvm/x86/vmx_invalid_nested_guest_state.c 
b/tools/testing/selftests/kvm/x86/vmx_invalid_nested_guest_state.c
index a2eaceed9..a07968c16 100644
--- a/tools/testing/selftests/kvm/x86/vmx_invalid_nested_guest_state.c
+++ b/tools/testing/selftests/kvm/x86/vmx_invalid_nested_guest_state.c
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
                    ARBITRARY_IO_PORT, run->io.port);
 
        /*
-        * Stuff invalid guest state for L2 by making TR unusuable.  The next
+        * Stuff invalid guest state for L2 by making TR unusable.  The next
         * KVM_RUN should induce a TRIPLE_FAULT in L2 as KVM doesn't support
         * emulating invalid guest state for L2.
         */
-- 
2.55.0


Reply via email to