1. 08 Nov, 2017 1 commit
  2. 25 Dec, 2016 1 commit
  3. 20 Sep, 2016 1 commit
    • Paolo Bonzini's avatar
      KVM: x86: introduce get_kvmclock_ns · 108b249c
      Paolo Bonzini authored
      Introduce a function that reads the exact nanoseconds value that is
      provided to the guest in kvmclock.  This crystallizes the notion of
      kvmclock as a thin veneer over a stable TSC, that the guest will
      (hopefully) convert with NTP.  In other words, kvmclock is *not* a
      paravirtualized host-to-guest NTP.
      
      Drop the get_kernel_ns() function, that was used both to get the base
      value of the master clock and to get the current value of kvmclock.
      The former use is replaced by ktime_get_boot_ns(), the latter is
      the purpose of get_kernel_ns().
      
      This also allows KVM to provide a Hyper-V time reference counter that
      is synchronized with the time that is computed from the TSC page.
      Reviewed-by: default avatarRoman Kagan <rkagan@virtuozzo.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      108b249c
  4. 04 Aug, 2016 1 commit
    • Paolo Bonzini's avatar
      pvclock: introduce seqcount-like API · 3aed64f6
      Paolo Bonzini authored
      The version field in struct pvclock_vcpu_time_info basically implements
      a seqcount.  Wrap it with the usual read_begin and read_retry functions,
      and use these APIs instead of peppering the code with smp_rmb()s.
      While at it, change it to the more pedantically correct virt_rmb().
      
      With this change, __pvclock_read_cycles can be simplified noticeably.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3aed64f6
  5. 27 Jun, 2016 2 commits
  6. 06 Jan, 2016 1 commit
  7. 11 Dec, 2015 2 commits
  8. 06 Jul, 2015 3 commits
  9. 07 May, 2015 1 commit
  10. 27 Apr, 2015 1 commit
  11. 23 Mar, 2015 1 commit
  12. 06 Nov, 2013 1 commit
  13. 18 Jul, 2013 1 commit
  14. 28 Nov, 2012 4 commits
  15. 30 Aug, 2011 1 commit
    • Duncan Sands's avatar
      KVM: Fix instruction size issue in pvclock scaling · 3b217116
      Duncan Sands authored
      Commit de2d1a52 ("KVM: Fix register corruption in pvclock_scale_delta")
      introduced a mul instruction that may have only a memory operand; the
      assembler therefore cannot select the correct size:
      
         pvclock.s:229: Error: no instruction mnemonic suffix given and no register
      operands; can't size instruction
      
      In this example the assembler is:
      
               #APP
               mul -48(%rbp) ; shrd $32, %rdx, %rax
               #NO_APP
      
      A simple solution is to use mulq.
      Signed-off-by: default avatarDuncan Sands <baldrick@free.fr>
      Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
      3b217116
  16. 19 Jun, 2011 1 commit
  17. 28 Nov, 2010 1 commit
  18. 24 Oct, 2010 1 commit
  19. 19 May, 2010 1 commit
  20. 23 Oct, 2008 2 commits
  21. 15 Oct, 2008 1 commit
  22. 22 Jul, 2008 1 commit
    • Vegard Nossum's avatar
      x86: consolidate header guards · 77ef50a5
      Vegard Nossum authored
      This patch is the result of an automatic script that consolidates the
      format of all the headers in include/asm-x86/.
      
      The format:
      
      1. No leading underscore. Names with leading underscores are reserved.
      2. Pathname components are separated by two underscores. So we can
         distinguish between mm_types.h and mm/types.h.
      3. Everything except letters and numbers are turned into single
         underscores.
      Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
      77ef50a5
  23. 24 Jun, 2008 1 commit