Skip to content
  1. Jul 31, 2020
  2. Jul 30, 2020
  3. Jul 10, 2020
  4. Jul 08, 2020
  5. Jul 06, 2020
  6. Jul 03, 2020
  7. Jul 02, 2020
    • Nadav Amit's avatar
      x86: realmode: fix serial_init() · c83858a4
      Nadav Amit authored
      
      
      In some setups serial output from the real-mode tests is corrupted.
      
      I do not know the serial port initialization code well, but the
      protected mode initialization code is different than the real-mode code.
      Using the protected mode serial port initialization fixes the problem.
      
      Keeping the tradition of code duplication between real-mode and
      protected mode, this patch copies the missing initialization into
      real-mode serial port initialization.
      
      Signed-off-by: default avatarNadav Amit <namit@vmware.com>
      Message-Id: <20200701193045.31247-1-namit@vmware.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      c83858a4
  8. Jul 01, 2020
  9. Jun 29, 2020
  10. Jun 26, 2020
  11. Jun 25, 2020
  12. Jun 24, 2020
    • Vitaly Kuznetsov's avatar
      Revert "SVM: move guest past HLT" · 2d3ecdfe
      Vitaly Kuznetsov authored
      
      
      'nmi_hlt' test returns somewhat weird result:
      
      ...
      PASS: direct NMI + hlt
      PASS: NMI intercept while running guest
      PASS: intercepted NMI + hlt
      PASS: nmi_hlt
      SUMMARY: 4 tests, 1 unexpected failures
      
      Trying to investigate where the failure is coming from I was tweaking
      the code around and with tiny meaningless changes I was able to observe
       #PF, #GP, #UD and other 'interesting' results. Compiler optimization
      flags also change the outcome so there's obviously a corruption somewhere.
      Adding a meaningless 'nop' to the second 'asm volatile ("hlt");' in
      nmi_hlt_test() saves the day so it seems we erroneously advance RIP
      twice, the advancement in nmi_hlt_finished() is not needed.
      
      The outcome, however, contradicts with the commit message in 7e7aa86f
      ("SVM: move guest past HLT"). With that commit reverted, all tests seem
      to pass but I'm not sure what issue the commit was trying to fix, thus
      RFC.
      
      This reverts commit 7e7aa86f.
      
      Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
      Message-Id: <20200623082711.803916-1-vkuznets@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      2d3ecdfe
    • Nadav Amit's avatar
      x86: Initialize segment selectors · d68a795a
      Nadav Amit authored
      
      
      Currently, the BSP's segment selectors are not initialized in 32-bit
      (cstart.S). As a result the tests implicitly rely on the segment
      selector values that are set by the BIOS. If this assumption is not
      kept, the task-switch test fails.
      
      Fix it by initializing them.
      
      Signed-off-by: default avatarNadav Amit <namit@vmware.com>
      Message-Id: <20200623084132.36213-1-namit@vmware.com>
      Reviewed-by: default avatarJim Mattson <jmattson@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      d68a795a
    • Vitaly Kuznetsov's avatar
      x86: skip hyperv_clock test when host clocksource is not TSC · 1b9d2ef2
      Vitaly Kuznetsov authored
      
      
      Hyper-V TSC page clocksource is TSC based so it requires host to use TSC
      for clocksource. While TSC is more or less standard for x86 hardware
      nowadays, when kvm-unit-tests are run in a VM the clocksource tends to be
      different (e.g. kvm-clock).
      
      Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
      Message-Id: <20200617152139.402827-1-vkuznets@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      1b9d2ef2
  13. Jun 23, 2020
Loading