1. 25 May, 2016 4 commits
    • Hemant Kumar's avatar
      tools: kvm_stat: Powerpc related fixes · c7d4fb5a
      Hemant Kumar authored
      kvm_stat script is failing to execute on powerpc :
       # ./kvm_stat
      Traceback (most recent call last):
        File "./kvm_stat", line 825, in <module>
          main()
        File "./kvm_stat", line 813, in main
          providers = get_providers(options)
        File "./kvm_stat", line 778, in get_providers
          providers.append(TracepointProvider())
        File "./kvm_stat", line 416, in __init__
          self.filters = get_filters()
        File "./kvm_stat", line 315, in get_filters
          if ARCH.exit_reasons:
      AttributeError: 'ArchPPC' object has no attribute 'exit_reasons'
      
      This is because, its trying to access a non-defined attribute.
      
      Also, the IOCTL number of RESET is incorrect for powerpc. The correct
      number has been added.
      Signed-off-by: default avatarHemant Kumar <hemant@linux.vnet.ibm.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      c7d4fb5a
    • Paolo Bonzini's avatar
      tools: Add kvm_stat man page · fd41b5a9
      Paolo Bonzini authored
      Converted from the Texinfo source in QEMU to asciidoc.  The a2x
      incantation was provided by Janosch Frank.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      fd41b5a9
    • Janosch Frank's avatar
      tools: Add kvm_stat vm monitor script · f9bc9e65
      Janosch Frank authored
      This tool displays kvm vm exit statistics to ease vm monitoring. It
      takes its data from the kvm debugfs files or the vm tracepoints and
      outputs them as a curses ui or simple text.
      
      It was moved from qemu, as it is dependent on the kernel whereas qemu
      works with a large number of kernel versions, some of which may break
      the script.
      Signed-off-by: default avatarJanosch Frank <frankja@linux.vnet.ibm.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      f9bc9e65
    • Roman Kagan's avatar
      kvm:vmx: more complete state update on APICv on/off · 3ce424e4
      Roman Kagan authored
      The function to update APICv on/off state (in particular, to deactivate
      it when enabling Hyper-V SynIC) is incomplete: it doesn't adjust
      APICv-related fields among secondary processor-based VM-execution
      controls.  As a result, Windows 2012 guests get stuck when SynIC-based
      auto-EOI interrupt intersected with e.g. an IPI in the guest.
      
      In addition, the MSR intercept bitmap isn't updated every time "virtualize
      x2APIC mode" is toggled.  This path can only be triggered by a malicious
      guest, because Windows didn't use x2APIC but rather their own synthetic
      APIC access MSRs; however a guest running in a SynIC-enabled VM could
      switch to x2APIC and thus obtain direct access to host APIC MSRs
      (CVE-2016-4440).
      
      The patch fixes those omissions.
      Signed-off-by: default avatarRoman Kagan <rkagan@virtuozzo.com>
      Reported-by: default avatarSteve Rutherford <srutherford@google.com>
      Reported-by: default avatarYang Zhang <yang.zhang.wz@gmail.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3ce424e4
  2. 24 May, 2016 4 commits
  3. 20 May, 2016 32 commits