1. 22 2月, 2013 1 次提交
  2. 21 2月, 2013 1 次提交
  3. 19 2月, 2013 1 次提交
  4. 14 2月, 2013 2 次提交
  5. 13 2月, 2013 4 次提交
  6. 11 2月, 2013 3 次提交
  7. 07 2月, 2013 5 次提交
  8. 06 2月, 2013 3 次提交
  9. 05 2月, 2013 5 次提交
  10. 30 1月, 2013 2 次提交
    • C
      s390/kvm: Fix instruction decoding · 0c29b229
      Christian Borntraeger 提交于
      Instructions with long displacement have a signed displacement.
      Currently the sign bit is interpreted as 2^20: Lets fix it by doing the
      sign extension from 20bit to 32bit and then use it as a signed variable
      in the addition (see kvm_s390_get_base_disp_rsy).
      
      Furthermore, there are lots of "int" in that code. This is problematic,
      because shifting on a signed integer is undefined/implementation defined
      if the bit value happens to be negative.
      Fortunately the promotion rules will make the right hand side unsigned
      anyway, so there is no real problem right now.
      Let's convert them anyway to unsigned where appropriate to avoid
      problems if the code is changed or copy/pasted later on.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      0c29b229
    • C
      s390/kvm: Fix store status for ACRS/FPRS · 15bc8d84
      Christian Borntraeger 提交于
      On store status we need to copy the current state of registers
      into a save area. Currently we might save stale versions:
      The sie state descriptor doesnt have fields for guest ACRS,FPRS,
      those registers are simply stored in the host registers. The host
      program must copy these away if needed. We do that in vcpu_put/load.
      
      If we now do a store status in KVM code between vcpu_put/load, the
      saved values are not up-to-date. Lets collect the ACRS/FPRS before
      saving them.
      
      This also fixes some strange problems with hotplug and virtio-ccw,
      since the low level machine check handler (on hotplug a machine check
      will happen) will revalidate all registers with the content of the
      save area.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      CC: stable@vger.kernel.org
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      15bc8d84
  11. 29 1月, 2013 3 次提交
  12. 27 1月, 2013 1 次提交
  13. 25 1月, 2013 8 次提交
  14. 24 1月, 2013 1 次提交
    • G
      KVM: VMX: set vmx->emulation_required only when needed. · 14168786
      Gleb Natapov 提交于
      If emulate_invalid_guest_state=false vmx->emulation_required is never
      actually used, but it ends up to be always set to true since
      handle_invalid_guest_state(), the only place it is reset back to
      false, is never called. This, besides been not very clean, makes vmexit
      and vmentry path to check emulate_invalid_guest_state needlessly.
      
      The patch fixes that by keeping emulation_required coherent with
      emulate_invalid_guest_state setting.
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      14168786