1. 02 8月, 2010 2 次提交
    • A
      KVM: MMU: Introduce drop_spte() · be38d276
      Avi Kivity 提交于
      When we call rmap_remove(), we (almost) always immediately follow it by
      an __set_spte() to a nonpresent pte.  Since we need to perform the two
      operations atomically, to avoid losing the dirty and accessed bits, introduce
      a helper drop_spte() and convert all call sites.
      
      The operation is still nonatomic at this point.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      be38d276
    • X
      KVM: VMX: fix tlb flush with invalid root · dd180b3e
      Xiao Guangrong 提交于
      Commit 341d9b535b6c simplify reload logic while entry guest mode, it
      can avoid unnecessary sync-root if KVM_REQ_MMU_RELOAD and
      KVM_REQ_MMU_SYNC both set.
      
      But, it cause a issue that when we handle 'KVM_REQ_TLB_FLUSH', the
      root is invalid, it is triggered during my test:
      
      Kernel BUG at ffffffffa00212b8 [verbose debug info unavailable]
      ......
      
      Fixed by directly return if the root is not ready.
      Signed-off-by: NXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      dd180b3e
  2. 01 8月, 2010 38 次提交