1. 10 11月, 2016 6 次提交
    • S
      Fix cursesw detection · 7c703002
      Samuel Thibault 提交于
      On systems which do not provide ncursesw.pc and whose /usr/include/curses.h
      does not include wide support, we should not only try with no -I, i.e.
      /usr/include, but also with -I/usr/include/ncursesw.
      
      To properly detect for wide support with and without -Werror, we need to
      check for the presence of e.g. the WACS_DEGREE macro.
      
      We also want to stop at the first curses_inc_list configuration which works,
      and make sure to set IFS to : at each new loop.
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      Tested-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Message-id: 20161109102752.13255-1-samuel.thibault@ens-lyon.org
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      7c703002
    • P
      hw/input/hid: support alternative sysrq/break scancodes for gtk-vnc · 86f3bf0e
      Peter Korsgaard 提交于
      The printscreen/sysrq and pause/break keys currently don't work for guests
      using -usbdevice keyboard when accessed through vnc with a gtk-vnc based
      client.
      
      The reason for this is a mismatch between gtk-vnc and qemu in how these keys
      should be mapped to XT keycodes.
      
      On the original IBM XT these keys behaved differently than other keys.
      
      Quoting from https://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html:
      
      The keys PrtSc/SysRq and Pause/Break are special. The former produces
      scancode e0 2a e0 37 when no modifier key is pressed simultaneously, e0 37
      together with Shift or Ctrl, but 54 together with (left or right) Alt.  (And
      one gets the expected sequences upon release.  But see below.) The latter
      produces scancode sequence e1 1d 45 e1 9d c5 when pressed (without modifier)
      and nothing at all upon release.  However, together with (left or right)
      Ctrl, one gets e0 46 e0 c6, and again nothing at release.  It does not
      repeat.
      
      Gtk-vnc supports the 'QEMU Extended Key Event Message' RFB extension to send
      raw XT keycodes directly to qemu, but the specification doesn't explicitly
      specify how to map such long/complicated keycode sequences.  From the spec
      (https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#qemu-extended-key-event-message)
      
      The keycode is the XT keycode that produced the keysym. An XT keycode is an
      XT make scancode sequence encoded to fit in a single U32 quantity.  Single
      byte XT scancodes with a byte value less than 0x7f are encoded as is.
      2-byte XT scancodes whose first byte is 0xe0 and second byte is less than
      0x7f are encoded with the high bit of the first byte set
      
      hid.c currently expects the keycode sequence with shift/ctl for sysrq (e0 37
      -> 0xb7 in RFB), whereas gtk-vnc uses the sequence with alt (0x54).
      Likewise, hid.c expects the code without modifiers (e1 1d 45 -> 0xc5 in
      RFB), whereas gtk-vnc sends the keycode sequence with ctrl for pause (e0 46
      -> 0xc6 in RFB).
      
      See keymaps.cvs in gtk-vnc for the mapping used:
      https://git.gnome.org/browse/gtk-vnc/tree/src/keymaps.csv#n150
      
      Now, it isn't obvious to me which sequence is really "right", but as the
      0x54/0xc6 keycodes are currently unused in hid.c, supporting both seems like
      the pragmatic solution to me.  The USB HID keyboard boot protocol used by
      hid.c doesn't have any other mapping applicable to these keys.
      
      The other guest keyboard interfaces (ps/2, virtio, ..) are not affected,
      because they handle these keys differently.
      Signed-off-by: NPeter Korsgaard <peter@korsgaard.com>
      Message-id: 20161028145132.1702-1-peter@korsgaard.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      86f3bf0e
    • T
      ui/gtk: Fix build with older versions of gtk · 204af15b
      Thomas Huth 提交于
      GDK_KEY_Delete is only defined with gtk version 2.22 and newer,
      on older versions this key was called GDK_Delete instead.
      Since this is the case for all GDK_KEY_* defines, change the
      already existing preprocessor check there to test for version 2.22,
      so we know that we can remove this code block in case we require
      that version as a minimum one day.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1478081328-25515-1-git-send-email-thuth@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      204af15b
    • L
      usbredir: free vm_change_state_handler in usbredir destroy dispatch · 07b026fd
      Li Qiang 提交于
      In usbredir destroy dispatch function, it doesn't free the vm change
      state handler once registered in usbredir_realize function. This will
      lead a memory leak issue. This patch avoid this.
      Signed-off-by: NLi Qiang <liqiang6-s@360.cn>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 58216976.d0236b0a.77b99.bcd6@mx.google.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      07b026fd
    • L
      usb: ehci: fix memory leak in ehci_init_transfer · 791f9775
      Li Qiang 提交于
      In ehci_init_transfer function, if the 'cpage' is bigger than 4,
      it doesn't free the 'p->sgl' once allocated previously thus leading
      a memory leak issue. This patch avoid this.
      Signed-off-by: NLi Qiang <liqiang6-s@360.cn>
      Message-id: 5821c0f4.091c6b0a.e0c92.e811@mx.google.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      791f9775
    • G
      ipxe: update to 20161108 snapshot · 423f7cf2
      Gerd Hoffmann 提交于
      git shortlog 04186319..b991c67c
      ===============================
      
      Laszlo Ersek (3):
            [efi] Install the HII config access protocol on a child of the SNP handle
            [librm] Conditionalize the workaround for the Tivoli VMM's SSE garbling
            [build] Disable TIVOLI_VMM_WORKAROUND in the qemu configuration
      
      Lukas Grossar (1):
            [intel] Add PCI device ID for I219-V/LM
      
      Michael Brown (57):
            [efi] Fix uninitialised data in HII IFR structures
            [bios] Do not enable interrupts when printing to the console
            [pxe] Disable interrupts on the PIC before starting NBP
            [dhcp] Allow for variable encapsulation of architecture-specific options
            [dhcpv6] Include RFC5970 client architecture options in DHCPv6 requests
            [dhcpv6] Include vendor class identifier option in DHCPv6 requests
            [dhcp] Automatically generate vendor class identifier string
            [xfer] Send intf_close() if redirection fails
            [downloader] Treat redirection failures as fatal
            [iscsi] Treat redirection failures as fatal
            [debug] Allow per-object runtime enabling/disabling of debug messages
            [debug] Allow debug messages to be initially disabled at runtime
            [libc] Allow assertions to be globally enabled or disabled
            [profile] Allow profiling to be globally enabled or disabled
            [rng] Check for functioning RTC interrupt
            [acpi] Add support for ACPI power off
            [acpi] Allow time for ACPI power off to take effect
            [ipv4] Send gratuitous ARPs whenever a new IPv4 address is applied
            [intel] Strip spurious VLAN tags received by virtual function NICs
            [intel] Remove duplicate intelvf_mbox_queues() function
            [ipv6] Perform SLAAC only during autoconfiguration
            [settings] Create space for IPv6 in settings display order
            [ipv6] Rename ipv6_scope to dhcpv6_scope
            [settings] Correctly mortalise autovivified child settings blocks
            [ipv6] Allow settings to comprise arbitrary subsets of NDP options
            [ipv6] Expose IPv6 settings acquired through NDP
            [dhcpv6] Expose IPv6 address setting acquired through DHCPv6
            [ipv6] Expose IPv6 link-local address settings
            [settings] Allow settings blocks to specify a sibling ordering
            [ipv6] Match user expectations for IPv6 settings priorities
            [ipv6] Create routing table based on IPv6 settings
            [ipv6] Rename ipv6_scope to ipv6_settings_scope
            [test] Update IPv6 tests to use okx()
            [ipv6] Allow for multiple routers
            [hyperv] Use instance UUID in device name
            [crypto] Remove obsolete extern declaration for asn1_invalidate_cursor()
            [crypto] Allow for parsing of partial ASN.1 cursors
            [image] Add image_asn1() to extract ASN.1 objects from image
            [crypto] Add DER image format
            [crypto] Add PEM image format
            [image] Use image_asn1() to extract data from CMS signature images
            [build] Remove obsolete explicit object requirements
            [crypto] Enable both DER and PEM formats by default
            [build] Remove more obsolete explicit object requirements
            [pixbuf] Enable PNG format by default
            [crypto] Add image_x509() to extract X.509 certificates from image
            [crypto] Generalise X.509 "valid" field to a "flags" field
            [list] Add list_next_entry() and list_prev_entry()
            [crypto] Expose certstore_del() to explicitly remove stored certificates
            [crypto] Allow certificates to be marked as having been added explicitly
            [crypto] Add certstat() to display basic certificate information
            [cmdline] Add certificate management commands
            [crypto] Mark permanent certificates as permanent
            [efi] Mark AppleNetBoot.h as a native iPXE header
            [efi] Update to current EDK2 headers
            [efi] Add EFI_BLOCK_IO2_PROTOCOL header and GUID definition
            [bzimage] Fix page alignment of initrd images
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      423f7cf2
  2. 09 11月, 2016 6 次提交
  3. 07 11月, 2016 6 次提交
  4. 04 11月, 2016 2 次提交
    • S
      Merge remote-tracking branch 'sstabellini/tags/xen-20161102-tag' into staging · 9226682a
      Stefan Hajnoczi 提交于
      Xen 2016/11/02
      
      # gpg: Signature made Wed 02 Nov 2016 07:28:40 PM GMT
      # gpg:                using RSA key 0x894F8F4870E1AE90
      # gpg: Good signature from "Stefano Stabellini <sstabellini@kernel.org>"
      # gpg:                 aka "Stefano Stabellini <stefano.stabellini@eu.citrix.com>"
      # Primary key fingerprint: D04E 33AB A51F 67BA 07D3  0AEA 894F 8F48 70E1 AE90
      
      * sstabellini/tags/xen-20161102-tag:
        PCMachineState: introduce acpi_build_enabled field
        hw/xen/xen_pvdev: Include qemu/log.h for qemu_log_vprintf()
      
      Message-id: alpine.DEB.2.10.1611021227530.19454@sstabellini-ThinkPad-X260
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      9226682a
    • S
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 199a5bde
      Stefan Hajnoczi 提交于
      * NBD bugfix (Changlong)
      * NBD write zeroes support (Eric)
      * Memory backend fixes (Haozhong)
      * Atomics fix (Alex)
      * New AVX512 features (Luwei)
      * "make check" logging fix (Paolo)
      * Chardev refactoring fallout (Paolo)
      * Small checkpatch improvements (Paolo, Jeff)
      
      # gpg: Signature made Wed 02 Nov 2016 08:31:11 AM GMT
      # gpg:                using RSA key 0xBFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (30 commits)
        main-loop: Suppress I/O thread warning under qtest
        docs/rcu.txt: Fix minor typo
        vl: exit qemu on guest panic if -no-shutdown is not set
        checkpatch: allow spaces before parenthesis for 'coroutine_fn'
        x86: add AVX512_4VNNIW and AVX512_4FMAPS features
        slirp: fix CharDriver breakage
        qemu-char: do not forward events through the mux until QEMU has started
        nbd: Implement NBD_CMD_WRITE_ZEROES on client
        nbd: Implement NBD_CMD_WRITE_ZEROES on server
        nbd: Improve server handling of shutdown requests
        nbd: Refactor conversion to errno to silence checkpatch
        nbd: Support shorter handshake
        nbd: Less allocation during NBD_OPT_LIST
        nbd: Let client skip portions of server reply
        nbd: Let server know when client gives up negotiation
        nbd: Share common option-sending code in client
        nbd: Send message along with server NBD_REP_ERR errors
        nbd: Share common reply-sending code in server
        nbd: Rename struct nbd_request and nbd_reply
        nbd: Rename NbdClientSession to NBDClientSession
        ...
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      199a5bde
  5. 03 11月, 2016 3 次提交
  6. 02 11月, 2016 17 次提交