1. 19 8月, 2016 3 次提交
    • B
      mmu: don't pass *kvm to spte_write_protect and spte_*_dirty · c4f138b4
      Bandan Das 提交于
      That parameter isn't used in these functions,
      it's probably a historical artifact.
      Signed-off-by: NBandan Das <bsd@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      c4f138b4
    • W
      KVM: lapic: don't recalculate apic map table twice when enabling LAPIC · 187ca84b
      Wanpeng Li 提交于
      APIC map table is recalculated during reset APIC ID to the initial value
      when enabling LAPIC. This patch move the recalculate_apic_map() to the
      next branch since we don't need to recalculate apic map twice in current
      codes.
      
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Radim Krčmář <rkrcmar@redhat.com>
      Signed-off-by: NWanpeng Li <wanpeng.li@hotmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      187ca84b
    • J
      MIPS: KVM: Check for pfn noslot case · ba913e4f
      James Hogan 提交于
      When mapping a page into the guest we error check using is_error_pfn(),
      however this doesn't detect a value of KVM_PFN_NOSLOT, indicating an
      error HVA for the page. This can only happen on MIPS right now due to
      unusual memslot management (e.g. being moved / removed / resized), or
      with an Enhanced Virtual Memory (EVA) configuration where the default
      KVM_HVA_ERR_* and kvm_is_error_hva() definitions are unsuitable (fixed
      in a later patch). This case will be treated as a pfn of zero, mapping
      the first page of physical memory into the guest.
      
      It would appear the MIPS KVM port wasn't updated prior to being merged
      (in v3.10) to take commit 81c52c56 ("KVM: do not treat noslot pfn as
      a error pfn") into account (merged v3.8), which converted a bunch of
      is_error_pfn() calls to is_error_noslot_pfn(). Switch to using
      is_error_noslot_pfn() instead to catch this case properly.
      
      Fixes: 858dd5d4 ("KVM/MIPS32: MMU/TLB operations for the Guest.")
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Radim Krčmář <rkrcmar@redhat.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: linux-mips@linux-mips.org
      Cc: kvm@vger.kernel.org
      Cc: <stable@vger.kernel.org> # 3.10.y-
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      ba913e4f
  2. 18 8月, 2016 26 次提交
  3. 17 8月, 2016 11 次提交