1. 28 12月, 2021 4 次提交
  2. 16 11月, 2021 8 次提交
  3. 11 11月, 2021 1 次提交
  4. 19 10月, 2021 2 次提交
  5. 17 10月, 2021 12 次提交
  6. 28 9月, 2021 1 次提交
  7. 24 9月, 2021 1 次提交
    • O
      selftests: KVM: Explicitly use movq to read xmm registers · 386ca9d7
      Oliver Upton 提交于
      Compiling the KVM selftests with clang emits the following warning:
      
      >> include/x86_64/processor.h:297:25: error: variable 'xmm0' is uninitialized when used here [-Werror,-Wuninitialized]
      >>                return (unsigned long)xmm0;
      
      where xmm0 is accessed via an uninitialized register variable.
      
      Indeed, this is a misuse of register variables, which really should only
      be used for specifying register constraints on variables passed to
      inline assembly. Rather than attempting to read xmm registers via
      register variables, just explicitly perform the movq from the desired
      xmm register.
      
      Fixes: 783e9e51 ("kvm: selftests: add API testing infrastructure")
      Signed-off-by: NOliver Upton <oupton@google.com>
      Message-Id: <20210924005147.1122357-1-oupton@google.com>
      Reviewed-by: NRicardo Koller <ricarkol@google.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      386ca9d7
  8. 22 9月, 2021 1 次提交
    • D
      KVM: selftests: Refactor help message for -s backing_src · 9f2fc555
      David Matlack 提交于
      All selftests that support the backing_src option were printing their
      own description of the flag and then calling backing_src_help() to dump
      the list of available backing sources. Consolidate the flag printing in
      backing_src_help() to align indentation, reduce duplicated strings, and
      improve consistency across tests.
      
      Note: Passing "-s" to backing_src_help is unnecessary since every test
      uses the same flag. However I decided to keep it for code readability
      at the call sites.
      
      While here this opportunistically fixes the incorrectly interleaved
      printing -x help message and list of backing source types in
      dirty_log_perf_test.
      
      Fixes: 609e6202 ("KVM: selftests: Support multiple slots in dirty_log_perf_test")
      Reviewed-by: NBen Gardon <bgardon@google.com>
      Reviewed-by: NAndrew Jones <drjones@redhat.com>
      Signed-off-by: NDavid Matlack <dmatlack@google.com>
      Message-Id: <20210917173657.44011-3-dmatlack@google.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      9f2fc555
  9. 17 9月, 2021 2 次提交
  10. 19 8月, 2021 1 次提交
  11. 06 8月, 2021 1 次提交
  12. 03 8月, 2021 1 次提交
  13. 06 7月, 2021 1 次提交
  14. 25 6月, 2021 2 次提交
  15. 24 6月, 2021 2 次提交
    • S
      KVM: sefltests: Add x86-64 test to verify MMU reacts to CPUID updates · ef6a74b2
      Sean Christopherson 提交于
      Add an x86-only test to verify that x86's MMU reacts to CPUID updates
      that impact the MMU.  KVM has had multiple bugs where it fails to
      reconfigure the MMU after the guest's vCPU model changes.
      
      Sadly, this test is effectively limited to shadow paging because the
      hardware page walk handler doesn't support software disabling of GBPAGES
      support, and KVM doesn't manually walk the GVA->GPA on faults for
      performance reasons (doing so would large defeat the benefits of TDP).
      
      Don't require !TDP for the tests as there is still value in running the
      tests with TDP, even though the tests will fail (barring KVM hacks).
      E.g. KVM should not completely explode if MAXPHYADDR results in KVM using
      4-level vs. 5-level paging for the guest.
      Signed-off-by: NSean Christopherson <seanjc@google.com>
      Message-Id: <20210622200529.3650424-20-seanjc@google.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      ef6a74b2
    • S
      KVM: selftests: Add hugepage support for x86-64 · ad5f16e4
      Sean Christopherson 提交于
      Add x86-64 hugepage support in the form of a x86-only variant of
      virt_pg_map() that takes an explicit page size.  To keep things simple,
      follow the existing logic for 4k pages and disallow creating a hugepage
      if the upper-level entry is present, even if the desired pfn matches.
      
      Opportunistically fix a double "beyond beyond" reported by checkpatch.
      Signed-off-by: NSean Christopherson <seanjc@google.com>
      Message-Id: <20210622200529.3650424-19-seanjc@google.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      ad5f16e4