1. 25 1月, 2018 8 次提交
    • D
      ui: convert GTK and SDL1 frontends to keycodemapdb · 2ec78706
      Daniel P. Berrange 提交于
      The x_keycode_to_pc_keycode and evdev_keycode_to_pc_keycode
      tables are replaced with automatically generated tables.
      In addition the X11 heuristics are improved to detect running
      on XQuartz and XWin X11 servers, to activate the correct OS-X
      and Win32 keycode maps.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20180117164717.15855-3-berrange@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      2ec78706
    • D
      ui: convert the SDL2 frontend to keycodemapdb · ed7b2624
      Daniel P. Berrange 提交于
      The SDL2 scancodes are conveniently identical to the USB
      scancodes. Replace the sdl2_scancode_to_qcode table with
      an automatically generated table.
      
      Missing entries in sdl2_scancode_to_qcode now fixed:
      
        - 0x32 -> Q_KEY_CODE_BACKSLASH
        - 0x66 -> Q_KEY_CODE_POWER
        - 0x67 -> Q_KEY_CODE_KP_EQUALS
        - 0x74 -> Q_KEY_CODE_OPEN
        - 0x77 -> Q_KEY_CODE_FRONT
        - 0x7f -> Q_KEY_CODE_AUDIOMUTE
        - 0x80 -> Q_KEY_CODE_VOLUMEUP
        - 0x81 -> Q_KEY_CODE_VOLUMEDOWN
        - 0x85 -> Q_KEY_CODE_KP_COMMA
        - 0x87 -> Q_KEY_CODE_RO
        - 0x89 -> Q_KEY_CODE_YEN
        - 0x8a -> Q_KEY_CODE_HENKAN
        - 0x93 -> Q_KEY_CODE_HIRAGANA
        - 0xe8 -> Q_KEY_CODE_AUDIOPLAY
        - 0xe9 -> Q_KEY_CODE_AUDIOSTOP
        - 0xea -> Q_KEY_CODE_AUDIOPREV
        - 0xeb -> Q_KEY_CODE_AUDIONEXT
        - 0xed -> Q_KEY_CODE_VOLUMEUP
        - 0xee -> Q_KEY_CODE_VOLUMEDOWN
        - 0xef -> Q_KEY_CODE_AUDIOMUTE
        - 0xf1 -> Q_KEY_CODE_AC_BACK
        - 0xf2 -> Q_KEY_CODE_AC_FORWARD
        - 0xf3 -> Q_KEY_CODE_STOP
        - 0xf4 -> Q_KEY_CODE_FIND
        - 0xf8 -> Q_KEY_CODE_SLEEP
        - 0xfa -> Q_KEY_CODE_AC_REFRESH
        - 0xfb -> Q_KEY_CODE_CALCULATOR
      
      And some mistakes corrected:
      
        - 0x65 -> Q_KEY_CODE_COMPOSE, not duplicating Q_KEY_CODE_MENU
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20180117164717.15855-2-berrange@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      ed7b2624
    • D
      ui: avoid sign extension using client width/height · 4c956bd8
      Daniel P. Berrange 提交于
      Pixman returns a signed int for the image width/height, but the VNC
      protocol only permits a unsigned int16. Effective framebuffer size
      is determined by the guest, limited by the video RAM size, so the
      dimensions are unlikely to exceed the range of an unsigned int16,
      but this is not currently validated.
      
      With the current use of 'int' for client width/height, the calculation
      of offsets in vnc_update_throttle_offset() suffers from integer size
      promotion and sign extension, causing coverity warnings
      
      *** CID 1385147:  Integer handling issues  (SIGN_EXTENSION)
      /ui/vnc.c: 979 in vnc_update_throttle_offset()
      973      * than that the client would already suffering awful audio
      974      * glitches, so dropping samples is no worse really).
      975      */
      976     static void vnc_update_throttle_offset(VncState *vs)
      977     {
      978         size_t offset =
      >>>     CID 1385147:  Integer handling issues  (SIGN_EXTENSION)
      >>>     Suspicious implicit sign extension:
          "vs->client_pf.bytes_per_pixel" with type "unsigned char" (8 bits,
          unsigned) is promoted in "vs->client_width * vs->client_height *
          vs->client_pf.bytes_per_pixel" to type "int" (32 bits, signed), then
          sign-extended to type "unsigned long" (64 bits, unsigned).  If
          "vs->client_width * vs->client_height * vs->client_pf.bytes_per_pixel"
          is greater than 0x7FFFFFFF, the upper bits of the result will all be 1.
      979             vs->client_width * vs->client_height * vs->client_pf.bytes_per_pixel;
      
      Change client_width / client_height to be a size_t to avoid sign
      extension and integer promotion. Then validate that dimensions are in
      range wrt the RFB protocol u16 limits.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20180118155254.17053-1-berrange@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      4c956bd8
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 834a336e
      Peter Maydell 提交于
      virtio: quick fix
      
      Fixes a regression in virtio that's causing issues
      for many people.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Wed 24 Jan 2018 17:20:24 GMT
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream:
        Revert "qemu: add a cleanup callback function to EventNotifier"
        Revert "virtio: postpone the execution of event_notifier_cleanup function"
        Revert "virtio: improve virtio devices initialization time"
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      834a336e
    • M
      Revert "qemu: add a cleanup callback function to EventNotifier" · e044c0f8
      Michael S. Tsirkin 提交于
      This reverts commit f87d72f5 as that is
      part of a patchset reported to break cleanup and migration.
      
      Cc: Gal Hammer <ghammer@redhat.com>
      Cc: Sitong Liu <siliu@redhat.com>
      Cc: Xiaoling Gao <xiagao@redhat.com>
      Suggested-by: NGreg Kurz <groug@kaod.org>
      Suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reported-by: NJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
      Reported-by: NDaniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
      e044c0f8
    • M
      Revert "virtio: postpone the execution of event_notifier_cleanup function" · 1ef8185a
      Michael S. Tsirkin 提交于
      This reverts commit 4fe6d78b as it is
      reported to break cleanup and migration.
      
      Cc: Gal Hammer <ghammer@redhat.com>
      Cc: Sitong Liu <siliu@redhat.com>
      Cc: Xiaoling Gao <xiagao@redhat.com>
      Suggested-by: NGreg Kurz <groug@kaod.org>
      Suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reported-by: NJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
      Reported-by: NDaniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
      1ef8185a
    • M
      Revert "virtio: improve virtio devices initialization time" · ce3a9eaf
      Michael S. Tsirkin 提交于
      This reverts commit 6f0bb230.
      
      This reverts commit f87d72f5 as that is
      reported to break cleanup and migration.
      
      Cc: Gal Hammer <ghammer@redhat.com>
      Cc: Sitong Liu <siliu@redhat.com>
      Cc: Xiaoling Gao <xiagao@redhat.com>
      Suggested-by: NGreg Kurz <groug@kaod.org>
      Suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reported-by: NJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
      Reported-by: NDaniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
      ce3a9eaf
    • P
      Merge remote-tracking branch 'remotes/xtensa/tags/20180122-xtensa' into staging · 82de978a
      Peter Maydell 提交于
      target/xtensa updates:
      
      - make mini-bootloader independent of the initial CPU state;
      - add noMMU XTFPGA variants;
      - add two noMMU cores: de212 and sample_controller;
      - fix issues reported by coverity against xtensa translator and disassembler.
      
      # gpg: Signature made Mon 22 Jan 2018 20:00:01 GMT
      # gpg:                using RSA key 0x51F9CC91F83FA044
      # gpg: Good signature from "Max Filippov <filippov@cadence.com>"
      # gpg:                 aka "Max Filippov <max.filippov@cogentembedded.com>"
      # gpg:                 aka "Max Filippov <jcmvbkbc@gmail.com>"
      # Primary key fingerprint: 2B67 854B 98E5 327D CDEB  17D8 51F9 CC91 F83F A044
      
      * remotes/xtensa/tags/20180122-xtensa:
        target/xtensa: disas/xtensa: fix coverity warnings
        target/xtensa: add sample_controller core
        target/xtensa: allow different default CPU for MMU/noMMU
        target/xtensa: add de212 core
        hw/xtensa/xtfpga: support noMMU cores
        hw/xtensa/xtfpga: extract flash configuration
        hw/xtensa: extract xtensa_create_memory_regions
        target/xtensa: fix default sysrom/sysram addresses
        hw/xtensa/xtfpga: clean up function/structure names
        hw/xtensa/xtfpga: rewrite mini bootloader
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      82de978a
  2. 24 1月, 2018 1 次提交
    • P
      Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging · 25bfd5a7
      Peter Maydell 提交于
      Pull request
      
      v2:
       * Drop merge failure from a previous pull request that broke virtio-blk on ARM
         guests
       * Add Parallels XML patch series
      
      # gpg: Signature made Mon 22 Jan 2018 16:00:40 GMT
      # gpg:                using RSA key 0x9CA4ABB381AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
      
      * remotes/stefanha/tags/block-pull-request:
        block/parallels: add backing support to readv/writev
        block/parallels: replace some magic numbers
        block/parallels: move some structures into header
        configure: add dependency
        docs/interop/prl-xml: description of Parallels Disk format
        block: add block_set_io_throttle virtio-blk-pci QMP example
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      25bfd5a7
  3. 23 1月, 2018 6 次提交
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180122' into staging · 238e2d93
      Peter Maydell 提交于
      Various fixes/improvements, and support for the new 81/82
      facility bits.
      
      # gpg: Signature made Mon 22 Jan 2018 11:54:46 GMT
      # gpg:                using RSA key 0xDECF6B93C6F02FAF
      # gpg: Good signature from "Cornelia Huck <conny@cornelia-huck.de>"
      # gpg:                 aka "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cohuck@kernel.org>"
      # gpg:                 aka "Cornelia Huck <cohuck@redhat.com>"
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20180122:
        s390x/kvm: provide stfle.81
        s390x/kvm: Handle bpb feature
        linux-headers: update
        s390x/tcg: fixup TEST PROTECTION
        s390x: fix storage attributes migration for non-small guests
        hw/s390x: Replace fprintf(stderr, "*\n" with qemu_log_mask()
        s390x/sclp: fix missing be conversion
        s390x/tcg: implement TEST PROTECTION
        s390x/sclp: fixup highest CPU address
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      238e2d93
    • P
      Merge remote-tracking branch 'remotes/huth/tags/pull-request-2018-01-22' into staging · 52483b06
      Peter Maydell 提交于
      Pull request for various patches that have been reviewed and
      laying on the mailing list for a while, but apparently no
      maintainer feels really responsible for picking up.
      
      # gpg: Signature made Mon 22 Jan 2018 11:10:16 GMT
      # gpg:                using RSA key 0x2ED9D774FE702DB5
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>"
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>"
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>"
      # gpg:                 aka "Thomas Huth <th.huth@posteo.de>"
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * remotes/huth/tags/pull-request-2018-01-22:
        hw/isa: Replace fprintf(stderr, "*\n" with error_report()
        hw/ipmi: Replace fprintf(stderr, "*\n" with error_report()
        hw/bt: Replace fprintf(stderr, "*\n" with error_report()
        Fixes after renaming __FUNCTION__ to __func__
        Replace all occurances of __FUNCTION__ with __func__
        tests/cpu-plug-test: Test CPU hot-plugging on s390x
        tests/cpu-plug-test: Check CPU hot-plugging on ppc64, too
        tests/cpu-plug-test: Check the CPU hot-plugging with device_add, too
        tests: Rename pc-cpu-test.c to cpu-plug-test.c
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      52483b06
    • P
      migration: Revert postcopy-blocktime commit set · ee86981b
      Peter Maydell 提交于
      This reverts commits
      ca6011c2 migration: add postcopy total blocktime into query-migrate
      5f32dc8e migration: add blocktime calculation into migration-test
      2f7dae9d migration: postcopy_blocktime documentation
      3be98be4 migration: calculate vCPU blocktime on dst side
      01a87f0b migration: add postcopy blocktime ctx into MigrationIncomingState
      31bf06a9 migration: introduce postcopy-blocktime capability
      
      as they don't build on ppc32 due to trying to do atomic accesses
      on types that are larger than the host pointer type.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ee86981b
    • M
      target/xtensa: disas/xtensa: fix coverity warnings · 847a6473
      Max Filippov 提交于
      Coverity warnings CID 1385146, 1385148 1385149 and 1385150 point that
      xtensa_opcode_num_operands and xtensa_format_num_slots may return -1
      even when xtensa_opcode_decode and xtensa_format_decode succeed. In that
      case unsigned counters used to iterate through operands/slots will not
      do the right thing.
      Make counters and loop bounds signed to fix the warnings.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      847a6473
    • M
      target/xtensa: add sample_controller core · 251634f4
      Max Filippov 提交于
      The sample_controller core is a simple noMMU general purpose core, modern
      analog of de212. It is used as a default core in the xtensa port of
      Zephyr.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      251634f4
    • M
      target/xtensa: allow different default CPU for MMU/noMMU · a3c5e49d
      Max Filippov 提交于
      Define default core for noMMU configurations and use that core as
      machine default with noMMU XTFPGA machines.
      This is done to avoid offering non-working configuration (MMU core on a
      noMMU machine) as a default.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      a3c5e49d
  4. 22 1月, 2018 25 次提交