1. 21 Dec, 2018 2 commits
    • Vitaly Kuznetsov's avatar
      KVM: x86: svm: report MSR_IA32_MCG_EXT_CTL as unsupported · e87555e5
      Vitaly Kuznetsov authored
      AMD doesn't seem to implement MSR_IA32_MCG_EXT_CTL and svm code in kvm
      knows nothing about it, however, this MSR is among emulated_msrs and
      thus returned with KVM_GET_MSR_INDEX_LIST. The consequent KVM_GET_MSRS,
      of course, fails.
      
      Report the MSR as unsupported to not confuse userspace.
      Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
      Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
      e87555e5
    • Paolo Bonzini's avatar
      KVM: x86: fix size of x86_fpu_cache objects · ed8e4812
      Paolo Bonzini authored
      The memory allocation in b666a4b6 ("kvm: x86: Dynamically allocate
      guest_fpu", 2018-11-06) is wrong, there are other members in struct fpu
      before the fpregs_state union and the patch should be doing something
      similar to the code in fpu__init_task_struct_size.  It's enough to run
      a guest and then rmmod kvm to see slub errors which are actually caused
      by memory corruption.
      
      For now let's revert it to sizeof(struct fpu), which is conservative.
      I have plans to move fsave/fxsave/xsave directly in KVM, without using
      the kernel FPU helpers, and once it's done, the size of the object in
      the cache will be something like kvm_xstate_size.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      ed8e4812
  2. 20 Dec, 2018 1 commit
  3. 19 Dec, 2018 14 commits
  4. 18 Dec, 2018 18 commits
  5. 17 Dec, 2018 5 commits