1. 05 Nov, 2014 5 commits
    • Peter Maydell's avatar
      v2.2.0-rc0
      6e76d125
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/agraf/tags/signed-s390-for-upstream' into staging · 3752ac89
      Peter Maydell authored
      
      Patch queue for s390 - 2014-11-05
      
      Two simple bug fixes to enable slightly newer guest kernels
      and preliminary -M s390-ccw support for TCG (virtio doesn't work yet!)
      
      # gpg: Signature made Wed 05 Nov 2014 11:01:55 GMT using RSA key ID 03FEDC60
      # gpg: Good signature from "Alexander Graf <agraf@suse.de>"
      # gpg:                 aka "Alexander Graf <alex@csgraf.de>"
      
      * remotes/agraf/tags/signed-s390-for-upstream:
        s390x: Implement SAM{24,31,64}
        s390x: Fix sclp console input
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      3752ac89
    • Gonglei's avatar
      vhost-user-test: Fix 'make check' broken on glib < 2.26 · 30de46db
      Gonglei authored
      After commit 89b516d8
      
      , some logics is turbid and
      breaks 'make check' as below errors:
      tests/vhost-user-test.c: In function '_cond_wait_until':
      tests/vhost-user-test.c:154: error: 'G_TIME_SPAN_SECOND' undeclared (first use in this function)
      tests/vhost-user-test.c:154: error: (Each undeclared identifier is reported only once
      tests/vhost-user-test.c:154: error: for each function it appears in.)
      tests/vhost-user-test.c: In function 'read_guest_mem':
      tests/vhost-user-test.c:192: warning: implicit declaration of function 'g_get_monotonic_time'
      tests/vhost-user-test.c:192: warning: nested extern declaration of 'g_get_monotonic_time'
      tests/vhost-user-test.c:192: error: 'G_TIME_SPAN_SECOND' undeclared (first use in this function)
      make: *** [tests/vhost-user-test.o] Error 1
      
      First, vhost-usr-test.c rely on glib-compat.h because
      of using G_TIME_SPAN_SECOND [glib < 2.26] and g_get_monotonic_time(),
      but vhost-usr-test.c defined QEMU_GLIB_COMPAT_H, which make
      glib-compat.h will not be included.
      Second, if we remove QEMU_GLIB_COMPAT_H definability in
      vhost-usr-test.c, then we will get below warnings:
      
      tests/vhost-user-test.c: In function 'read_guest_mem':
      tests/vhost-user-test.c:190: warning: passing argument 1 of 'g_mutex_lock' from incompatible pointer type
      tests/vhost-user-test.c:234: warning: passing argument 1 of 'g_mutex_unlock' from incompatible pointer type
      
      That's because glib-compat.h redefine the g_mutex_lock/unlock
      function. Those functions' arguments is CompatGMutex/CompatGCond,
      but vhost-user-test.c is using GMutex/GCond, which cause the type
      is not consistent.
      
      We can rerealize those functions of vhost-user-test.c,
      which need a lots of patches. Let's simply address it, and
      leave this file alone.
      
      Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
      Message-id: 1415149259-6188-1-git-send-email-arei.gonglei@huawei.com
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      30de46db
    • Alexander Graf's avatar
      s390x: Implement SAM{24,31,64} · 44dd33ba
      Alexander Graf authored
      
      The SAM instructions simply change 2 bits in PSW.MASK to advertise
      the current memory mode. While we can't fully guarantee that 31 bit
      mode (or even remotely 24 bit mode) actually work correctly, we don't
      check whether lpswe modifies these bits, so we shouldn't keep the
      guest from executing SAM instructions either.
      
      This patch implements all SAM instrutions with their actual PSW changing
      semantics, making more recent Linux kernels boot properly which do issue
      a SAM31 call during early boot.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarBastian Koppelmann <kbastian@mail.uni-paderborn.de>
      Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
      44dd33ba
    • Alexander Graf's avatar
      s390x: Fix sclp console input · d4827355
      Alexander Graf authored
      
      When injecting an sclp console interrupt into the guest, we increase
      the PC by 4 for some reason. I have no idea why I put that code there,
      but it's clearly wrong. Remove the increment.
      
      This patch fixes sclp serial input for the ccw machine.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarBastian Koppelmann <kbastian@mail.uni-paderborn.de>
      d4827355
  2. 04 Nov, 2014 35 commits