1. 06 3月, 2015 1 次提交
  2. 06 5月, 2014 1 次提交
  3. 22 4月, 2014 2 次提交
    • D
      KVM: s390: no timer interrupts when single-stepping a guest · f71d0dc5
      David Hildenbrand 提交于
      When a guest is single-stepped, we want to disable timer interrupts. Otherwise,
      the guest will continuously execute the external interrupt handler and make
      debugging of code where timer interrupts are enabled almost impossible.
      
      The delivery of timer interrupts can be enforced in such sections by setting a
      breakpoint and continuing execution.
      
      In order to disable timer interrupts, they are disabled in the control register
      of the guest just before SIE entry and are suppressed in the interrupt
      check/delivery methods.
      Signed-off-by: NDavid Hildenbrand <dahi@linux.vnet.ibm.com>
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      f71d0dc5
    • D
      KVM: s390: hardware support for guest debugging · 27291e21
      David Hildenbrand 提交于
      This patch adds support to debug the guest using the PER facility on s390.
      Single-stepping, hardware breakpoints and hardware watchpoints are supported. In
      order to use the PER facility of the guest without it noticing it, the control
      registers of the guest have to be patched and access to them has to be
      intercepted(stctl, stctg, lctl, lctlg).
      
      All PER program interrupts have to be intercepted and only the relevant PER
      interrupts for the guest have to be given back. Special care has to be taken
      about repeated exits on the same hardware breakpoint. The intervention of the
      host in the guests PER configuration is not fully transparent. PER instruction
      nullification can not be used by the guest and too many storage alteration
      events may be reported to the guest (if it is activated for special address
      ranges only) when the host concurrently debugging it.
      Signed-off-by: NDavid Hildenbrand <dahi@linux.vnet.ibm.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      27291e21