1. 07 1月, 2022 4 次提交
  2. 06 12月, 2021 2 次提交
  3. 15 11月, 2021 2 次提交
  4. 19 10月, 2021 1 次提交
  5. 13 10月, 2021 1 次提交
  6. 03 6月, 2021 7 次提交
  7. 26 4月, 2021 2 次提交
  8. 19 4月, 2021 2 次提交
  9. 09 3月, 2021 1 次提交
    • P
      KVM: x86: Allow guests to see MSR_IA32_TSX_CTRL even if tsx=off · ec83ed02
      Paolo Bonzini 提交于
      stable inclusion
      from stable-5.10.15
      commit 6c0e069ac6e8db0c49dcc90d37ede5b1da08fe0b
      bugzilla: 48167
      
      --------------------------------
      
      commit 7131636e upstream.
      
      Userspace that does not know about KVM_GET_MSR_FEATURE_INDEX_LIST
      will generally use the default value for MSR_IA32_ARCH_CAPABILITIES.
      When this happens and the host has tsx=on, it is possible to end up with
      virtual machines that have HLE and RTM disabled, but TSX_CTRL available.
      
      If the fleet is then switched to tsx=off, kvm_get_arch_capabilities()
      will clear the ARCH_CAP_TSX_CTRL_MSR bit and it will not be possible to
      use the tsx=off hosts as migration destinations, even though the guests
      do not have TSX enabled.
      
      To allow this migration, allow guests to write to their TSX_CTRL MSR,
      while keeping the host MSR unchanged for the entire life of the guests.
      This ensures that TSX remains disabled and also saves MSR reads and
      writes, and it's okay to do because with tsx=off we know that guests will
      not have the HLE and RTM features in their CPUID.  (If userspace sets
      bogus CPUID data, we do not expect HLE and RTM to work in guests anyway).
      
      Cc: stable@vger.kernel.org
      Fixes: cbbaa272 ("KVM: x86: fix presentation of TSX feature in ARCH_CAPABILITIES")
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
      ec83ed02
  10. 12 1月, 2021 2 次提交
  11. 31 10月, 2020 2 次提交
  12. 24 10月, 2020 1 次提交
    • P
      KVM: vmx: rename pi_init to avoid conflict with paride · a3ff25fc
      Paolo Bonzini 提交于
      allyesconfig results in:
      
      ld: drivers/block/paride/paride.o: in function `pi_init':
      (.text+0x1340): multiple definition of `pi_init'; arch/x86/kvm/vmx/posted_intr.o:posted_intr.c:(.init.text+0x0): first defined here
      make: *** [Makefile:1164: vmlinux] Error 1
      
      because commit:
      
      commit 8888cdd0
      Author: Xiaoyao Li <xiaoyao.li@intel.com>
      Date:   Wed Sep 23 11:31:11 2020 -0700
      
          KVM: VMX: Extract posted interrupt support to separate files
      
      added another pi_init(), though one already existed in the paride code.
      Reported-by: NJens Axboe <axboe@kernel.dk>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      a3ff25fc
  13. 22 10月, 2020 4 次提交
  14. 20 10月, 2020 1 次提交
  15. 03 10月, 2020 1 次提交
  16. 29 9月, 2020 1 次提交
  17. 28 9月, 2020 6 次提交