1. 30 6月, 2013 1 次提交
    • P
      KVM: PPC: Book3S PR: Fix proto-VSID calculations · 8ed7b7e9
      Paul Mackerras 提交于
      This makes sure the calculation of the proto-VSIDs used by PR KVM
      is done with 64-bit arithmetic.  Since vcpu3s->context_id[] is int,
      when we do vcpu3s->context_id[0] << ESID_BITS the shift will be done
      with 32-bit instructions, possibly leading to significant bits
      getting lost, as the context id can be up to 524283 and ESID_BITS is
      18.  To fix this we cast the context id to u64 before shifting.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      8ed7b7e9
  2. 30 4月, 2013 1 次提交
  3. 17 3月, 2013 1 次提交
  4. 30 10月, 2012 1 次提交
  5. 06 10月, 2012 1 次提交
  6. 17 9月, 2012 1 次提交
  7. 16 8月, 2012 1 次提交
  8. 16 5月, 2012 1 次提交
  9. 05 3月, 2012 1 次提交
  10. 24 10月, 2010 9 次提交
  11. 01 8月, 2010 3 次提交
  12. 17 5月, 2010 7 次提交
  13. 25 4月, 2010 1 次提交
    • A
      KVM: PPC: Enable use of secondary htab bucket · 20a340ab
      Alexander Graf 提交于
      We had code to make use of the secondary htab buckets, but kept that
      disabled because it was unstable when I put it in.
      
      I checked again if that's still the case and apparently it was only
      exposing some instability that was there anyways before. I haven't
      seen any badness related to usage of secondary htab entries so far.
      
      This should speed up guest memory allocations by quite a bit, because
      we now have more space to put PTEs in.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      20a340ab
  14. 05 11月, 2009 1 次提交
    • A
      Add book3s_64 Host MMU handling · 0d8dc681
      Alexander Graf 提交于
      We designed the Book3S port of KVM as modular as possible. Most
      of the code could be easily used on a Book3S_32 host as well.
      
      The main difference between 32 and 64 bit cores is the MMU. To keep
      things well separated, we treat the book3s_64 MMU as one possible compile
      option.
      
      This patch adds all the MMU helpers the rest of the code needs in
      order to modify the host's MMU, like setting PTEs and segments.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      0d8dc681