1. 01 8月, 2010 1 次提交
  2. 17 5月, 2010 4 次提交
    • A
      KVM: PPC: Improve split mode · f7bc74e1
      Alexander Graf 提交于
      When in split mode, instruction relocation and data relocation are not equal.
      
      So far we implemented this mode by reserving a special pseudo-VSID for the
      two cases and flushing all PTEs when going into split mode, which is slow.
      
      Unfortunately 32bit Linux and Mac OS X use split mode extensively. So to not
      slow down things too much, I came up with a different idea: Mark the split
      mode with a bit in the VSID and then treat it like any other segment.
      
      This means we can just flush the shadow segment cache, but keep the PTEs
      intact. I verified that this works with ppc32 Linux and Mac OS X 10.4
      guests and does speed them up.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      f7bc74e1
    • A
      KVM: PPC: Convert u64 -> ulong · af7b4d10
      Alexander Graf 提交于
      There are some pieces in the code that I overlooked that still use
      u64s instead of longs. This slows down 32 bit hosts unnecessarily, so
      let's just move them to ulong.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      af7b4d10
    • A
      KVM: PPC: Add Book3S compatibility code · 07b0907d
      Alexander Graf 提交于
      Some code we had so far required defines and had code that was completely
      Book3S_64 specific. Since we now opened book3s.c to Book3S_32 too, we need
      to take care of these pieces.
      
      So let's add some minor code where it makes sense to not go the Book3S_64
      code paths and add compat defines on others.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      07b0907d
    • A
      KVM: PPC: Book3S_32 guest MMU fixes · 4b389ca2
      Alexander Graf 提交于
      This patch makes the VSID of mapped pages always reflecting all special cases
      we have, like split mode.
      
      It also changes the tlbie mask to 0x0ffff000 according to the spec. The mask
      we used before was incorrect.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      4b389ca2
  3. 25 4月, 2010 1 次提交
  4. 05 11月, 2009 1 次提交