1. 10 2月, 2016 2 次提交
    • D
      KVM: s390: migration / injection of prog irq ilc · 634790b8
      David Hildenbrand 提交于
      We have to migrate the program irq ilc and someday we will have to
      specify the ilc without KVM trying to autodetect the value.
      
      Let's reuse one of the spare fields in our program irq that should
      always be set to 0 by user space. Because we also want to make use
      of 0 ilcs ("not available"), we need a validity indicator.
      
      If no valid ilc is given, we try to autodetect the ilc via the current
      icptcode and icptstatus + parameter and store the valid ilc in the
      irq structure.
      
      This has a nice effect: QEMU's making use of KVM_S390_IRQ /
      KVM_S390_SET_IRQ_STATE / KVM_S390_GET_IRQ_STATE for migration will
      directly migrate the ilc without any changes.
      
      Please note that we use bit 0 as validity and bit 1,2 for the ilc, so
      by applying the ilc mask we directly get the ilen which is usually what
      we work with.
      Reviewed-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NDavid Hildenbrand <dahi@linux.vnet.ibm.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      634790b8
    • D
      KVM: s390: PSW forwarding / rewinding / ilc rework · 0e8bc06a
      David Hildenbrand 提交于
      We have some confusion about ilc vs. ilen in our current code. So let's
      correctly use the term ilen when dealing with (ilc << 1).
      
      Program irq injection didn't take care of the correct ilc in case of
      irqs triggered by EXECUTE functions, let's provide one function
      kvm_s390_get_ilen() to take care of all that.
      
      Also, manually specifying in intercept handlers the size of the
      instruction (and sometimes overwriting that value for EXECUTE internally)
      doesn't make too much sense. So also provide the functions:
      - kvm_s390_retry_instr to retry the currently intercepted instruction
      - kvm_s390_rewind_psw to rewind the PSW without internal overwrites
      - kvm_s390_forward_psw to forward the PSW
      Reviewed-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NDavid Hildenbrand <dahi@linux.vnet.ibm.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      0e8bc06a
  2. 11 1月, 2016 1 次提交
  3. 30 11月, 2015 5 次提交
  4. 19 11月, 2015 2 次提交
  5. 13 10月, 2015 8 次提交
  6. 04 8月, 2015 1 次提交
  7. 29 7月, 2015 4 次提交
  8. 27 7月, 2015 1 次提交
  9. 23 6月, 2015 1 次提交
  10. 13 5月, 2015 1 次提交
  11. 08 5月, 2015 3 次提交
  12. 01 4月, 2015 5 次提交
  13. 31 3月, 2015 1 次提交
  14. 06 3月, 2015 5 次提交