1. 24 7月, 2011 6 次提交
    • C
      [S390] use gmap address spaces for kvm guest images · 598841ca
      Carsten Otte 提交于
      This patch switches kvm from using (Qemu's) user address space to
      Martin's gmap address space. This way QEMU does not have to use a
      linker script in order to fit large guests at low addresses in its
      address space.
      Signed-off-by: NCarsten Otte <cotte@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      598841ca
    • M
      [S390] kvm guest address space mapping · e5992f2e
      Martin Schwidefsky 提交于
      Add code that allows KVM to control the virtual memory layout that
      is seen by a guest. The guest address space uses a second page table
      that shares the last level pte-tables with the process page table.
      If a page is unmapped from the process page table it is automatically
      unmapped from the guest page table as well.
      
      The guest address space mapping starts out empty, KVM can map any
      individual 1MB segments from the process virtual memory to any 1MB
      aligned location in the guest virtual memory. If a target segment in
      the process virtual memory does not exist or is unmapped while a
      guest mapping exists the desired target address is stored as an
      invalid segment table entry in the guest page table.
      The population of the guest page table is fault driven.
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      e5992f2e
    • J
      [S390] fix s390 assembler code alignments · 144d634a
      Jan Glauber 提交于
      The alignment is missing for various global symbols in s390 assembly code.
      With a recent gcc and an instruction like stgrl this can lead to a
      specification exception if the instruction uses such a mis-aligned address.
      
      Specify the alignment explicitely and while add it define __ALIGN for s390
      and use the ENTRY define to save some lines of code.
      Signed-off-by: NJan Glauber <jang@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      144d634a
    • M
      [S390] move sie code to entry.S · 603d1a50
      Martin Schwidefsky 提交于
      The entry to / exit from sie has subtle dependencies to the first level
      interrupt handler. Move the sie assembler code to entry64.S and replace
      the SIE_HOOK callback with a test and the new _TIF_SIE bit.
      In addition this patch fixes several problems in regard to the check for
      the_TIF_EXIT_SIE bits. The old code checked the TIF bits before executing
      the interrupt handler and it only modified the instruction address if it
      pointed directly to the sie instruction. In both cases it could miss
      a TIF bit that normally would cause an exit from the guest and would
      reenter the guest context.
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      603d1a50
    • C
      [S390] kvm: handle tprot intercepts · bb25b9ba
      Christian Borntraeger 提交于
      When running a kvm guest we can get intercepts for tprot, if the host
      page table is read-only or not populated. This patch implements the
      most common case (linux memory detection).
      This also allows host copy on write for guest memory on newer systems.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      bb25b9ba
    • S
      [S390] irqs: Do not trace arch_local_{*,irq_*} functions · f433c4ae
      Steven Rostedt 提交于
      Do not trace arch_local_save_flags(), arch_local_irq_*() and friends.
      Although they are marked inline, gcc may still make a function out of
      them and add it to the pool of functions that are traced by the function
      tracer. This can cause undesirable results (kernel panic, triple faults,
      etc).
      
      Add the notrace notation to prevent them from ever being traced.
      
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      f433c4ae
  2. 23 7月, 2011 34 次提交