1. 13 1月, 2016 15 次提交
    • M
      isa: Clean up error handling around isa_bus_new() · d10e5432
      Markus Armbruster 提交于
      We can have at most one ISA bus.  If you try to create another one,
      isa_bus_new() complains to stderr and returns null.
      
      isa_bus_new() is called in two contexts, machine's init() and device's
      realize() methods.  Since complaining to stderr is not proper in the
      latter context, convert isa_bus_new() to Error.
      
      Machine's init():
      
      * mips_jazz_init(), called from the init() methods of machines
        "magnum" and "pica"
      
      * mips_r4k_init(), the init() method of machine "mips"
      
      * pc_init1() called from the init() methods of non-q35 PC machines
      
      * typhoon_init(), called from clipper_init(), the init() method of
        machine "clipper"
      
      These callers always create the first ISA bus, hence isa_bus_new()
      can't fail.  Simply pass &error_abort.
      
      Device's realize():
      
      * i82378_realize(), of PCI device "i82378"
      
      * ich9_lpc_realize(), of PCI device "ICH9-LPC"
      
      * pci_ebus_realize(), of PCI device "ebus"
      
      * piix3_realize(), of PCI device "pci-piix3", abstract parent of
        "PIIX3" and "PIIX3-xen"
      
      * piix4_realize(), of PCI device "PIIX4"
      
      * vt82c686b_realize(), of PCI device "VT82C686B"
      
      Propagate the error.  Note that these devices are typically created
      only by machine init() methods with qdev_init_nofail() or similar.  If
      we screwed up and created an ISA bus before that call, we now give up
      right away.  Before, we'd hobble on, and typically die in
      isa_bus_irqs().  Similar if someone finds a way to hot-plug one of
      these critters.
      
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: "Hervé Poussineau" <hpoussin@reactos.org>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Signed-off-by: NMarkus Armbruster <armbru@pond.sub.org>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      Reviewed-by: NHervé Poussineau <hpoussin@reactos.org>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-Id: <1450370121-5768-11-git-send-email-armbru@redhat.com>
      d10e5432
    • M
      isa: Trivially convert remaining PCI-ISA bridges to realize() · 3a80cead
      Markus Armbruster 提交于
      These are "ICH9-LPC" and "ebus".
      
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Signed-off-by: NMarkus Armbruster <armbru@pond.sub.org>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-Id: <1450370121-5768-10-git-send-email-armbru@redhat.com>
      3a80cead
    • M
      sysbus: Don't use hw_error() in machine_init_done_notifiers · c72fbf98
      Markus Armbruster 提交于
      platform_bus_map_irq() and platform_bus_map_mmio() use hw_error() to
      fail.  They run in machine_init_done_notifiers, via
      platform_bus_init_notify() and link_sysbus_device().  Printing CPU
      registers is not helpful there.
      
      Replace hw_error() by error_report(); exit(1).  If these are
      programming errors, it should be replaced by an assertion instead.
      
      While there, observe that both functions always return 0, and
      link_sysbus_device() ignores the return value.  Change them to void.
      
      Cc: Alexander Graf <agraf@suse.de>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1450370121-5768-9-git-send-email-armbru@redhat.com>
      c72fbf98
    • M
      hw/arm/virt: Fix property "gic-version" error handling · 7b55044f
      Markus Armbruster 提交于
      virt_set_gic_version() calls exit(1) when passed an invalid property
      value.  Property setters are not supposed to do that.  Screwed up in
      commit b92ad394.  Harmless, because the property belongs to a machine.
      Set an error object instead.
      
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: qemu-arm@nongnu.org
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      7b55044f
    • M
      error: Don't append a newline when printing the error hint · 543202c0
      Markus Armbruster 提交于
      Since commit 50b7b000, we have error_append_hint() to conveniently
      accumulate Error member @hint.  error_report_err() prints it with a
      newline appended.  Consequently, users of error_append_hint() need to
      know whether theirs is the final line of the hint to decide whether it
      needs a newline.  Not a nice interface.
      
      Change error_report_err() to print just the hint, and the (still few)
      users of error_append_hint() to add the required newline.
      
      Cc: Eric Blake <eblake@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1450370121-5768-7-git-send-email-armbru@redhat.com>
      543202c0
    • M
      raven: Mark use of hw_error() in realize() FIXME · 9280eb34
      Markus Armbruster 提交于
      Device realize() methods aren't supposed to call hw_error(), they
      should set an error and fail cleanly.  Blindly doing that would be
      easy enough, but then realize() would fail without undoing its side
      effects.  Just mark it FIXME for now.
      
      Cc: "Andreas Färber" <andreas.faerber@web.de>
      Cc: qemu-ppc@nongnu.org
      Signed-off-by: NMarkus Armbruster <armbru@pond.sub.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1450370121-5768-6-git-send-email-armbru@redhat.com>
      9280eb34
    • M
      etraxfs_eth: Don't use hw_error() in init() method · 5a8de107
      Markus Armbruster 提交于
      Device init() methods aren't supposed to call hw_error(), they should
      report the error and fail cleanly.  Do that.
      
      Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
      Signed-off-by: NMarkus Armbruster <armbru@pond.sub.org>
      Reviewed-by: NEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      Message-Id: <1450370121-5768-5-git-send-email-armbru@redhat.com>
      5a8de107
    • M
      arm_mptimer: Don't use hw_error() in realize() method · b097e481
      Markus Armbruster 提交于
      Device realize() methods aren't supposed to call hw_error(), they
      should set an error and fail cleanly.  Do that.
      
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: qemu-arm@nongnu.org
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <1450370121-5768-4-git-send-email-armbru@redhat.com>
      b097e481
    • M
      omap: Don't use hw_error() in device init() methods · 84a3a53c
      Markus Armbruster 提交于
      Device init() methods aren't supposed to call hw_error(), they should
      report the error and fail cleanly.  Do that.
      
      The errors are all device misconfiguration.  All callers use
      qdev_init_nofail(), so this patch merely converts hw_error() crashes
      into &error_abort crashes.  Improvement, because now it crashes closer
      to where the misconfiguration bug would be, and a few more bad
      examples of hw_error() use are gone.
      
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NMarkus Armbruster <armbru@pond.sub.org>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <1450370121-5768-3-git-send-email-armbru@redhat.com>
      84a3a53c
    • M
      hw: Don't use hw_error() for machine initialization errors · c525436e
      Markus Armbruster 提交于
      Printing CPU registers is not helpful during machine initialization.
      Moreover, these are straightforward configuration or "can get
      resources" errors, so dumping core isn't appropriate either.  Replace
      hw_error() by error_report(); exit(1).  Matches how we report these
      errors in other machine initializations.
      
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: qemu-arm@nongnu.org
      Cc: qemu-ppc@nongnu.org
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Signed-off-by: NMarkus Armbruster <armbru@pond.sub.org>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1450370121-5768-2-git-send-email-armbru@redhat.com>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      c525436e
    • M
      hw: Inline the qdev_prop_set_drive_nofail() wrapper · 6231a6da
      Markus Armbruster 提交于
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1449764955-10741-3-git-send-email-armbru@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      6231a6da
    • M
      Use error_fatal to simplify obvious fatal errors · 007b0657
      Markus Armbruster 提交于
      Done with this Coccinelle semantic patch:
      
          @@
          type T;
          identifier FUN, RET;
          expression list ARGS;
          expression ERR, EC;
          @@
          (
          -    T RET = FUN(ARGS, &ERR);
          +    T RET = FUN(ARGS, &error_fatal);
          |
          -    RET = FUN(ARGS, &ERR);
          +    RET = FUN(ARGS, &error_fatal);
          |
          -    FUN(ARGS, &ERR);
          +    FUN(ARGS, &error_fatal);
          )
          -    if (ERR != NULL) {
          -        error_report_err(ERR);
          -        exit(EC);
          -    }
      
      This is actually a more elegant version of my initial semantic patch
      by courtesy of Eduardo.
      
      It leaves dead Error * variables behind, cleaned up manually.
      
      Cc: qemu-arm@nongnu.org
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      007b0657
    • M
      error: Document how to accumulate multiple errors · 8d780f43
      Markus Armbruster 提交于
      Suggested-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1447776349-2344-1-git-send-email-armbru@redhat.com>
      8d780f43
    • P
      Merge remote-tracking branch 'remotes/kvaneesh/tags/for-upstream-signed' into staging · 649a1bba
      Peter Maydell 提交于
      VirtFS update:
      
      Cleanups mostly isolating virtio related details into separate files. This
      is done to enable easy addition of Xen transport for VirtFS.
      
      The changes include:
      
      1. Rename a bunch of files and functions to make clear they are generic.
      2. disentangle virtio transport code and generic 9pfs code.
      3. Some function name clean-up.
      
      # gpg: Signature made Tue 12 Jan 2016 06:04:35 GMT using RSA key ID 04C4E23A
      # gpg: Good signature from "Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 4846 9DE7 1860 360F A6E9  968C DE41 A4FE 04C4 E23A
      
      * remotes/kvaneesh/tags/for-upstream-signed: (25 commits)
        9pfs: introduce V9fsVirtioState
        9pfs: factor out v9fs_device_{,un}realize_common
        9pfs: rename virtio-9p.c to 9p.c
        9pfs: rename virtio_9p_set_fd_limit to use v9fs_ prefix
        9pfs: move handle_9p_output and make it static function
        9pfs: export pdu_{submit,alloc,free}
        9pfs: factor out virtio_9p_push_and_notify
        9pfs: break out 9p.h from virtio-9p.h
        9pfs: break out virtio_init_iov_from_pdu
        9pfs: factor out pdu_push_and_notify
        9pfs: factor out virtio_pdu_{,un}marshal
        9pfs: make pdu_{,un}marshal proper functions
        9pfs: PDU processing functions should start pdu_ prefix
        9pfs: PDU processing functions don't need to take V9fsState as argument
        fsdev: rename virtio-9p-marshal.{c,h} to 9p-iov-marshal.{c,h}
        fsdev: break out 9p-marshal.{c,h} from virtio-9p-marshal.{c,h}
        9pfs: remove dead code
        9pfs: merge hw/virtio/virtio-9p.h into hw/9pfs/virtio-9p.h
        9pfs: rename virtio-9p-xattr{,-user}.{c,h} to 9p-xattr{,-user}.{c,h}
        9pfs: rename virtio-9p-synth.{c,h} to 9p-synth.{c,h}
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      649a1bba
    • P
      disas/libvixl: Suppress gcc 4.6.3 sign-compare warnings · 8acc216b
      Peter Maydell 提交于
      The VIXL code includes some equality comparisons between signed
      and unsigned types. Modern gcc and clang do not complain about
      these, but older versions of gcc such as gcc 4.6.3 do. Since
      libvixl is an upstream library, the simplest approach is to
      suppress the warnings by applying -Wno-sign-compare to the
      relevant files.
      
      (GCC 4.6 is not quite yet irrelevant for us; it is the gcc
      shipped with Ubuntu Precise, for example, which is an LTS
      release not yet out of its support period.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1452604204-27202-1-git-send-email-peter.maydell@linaro.org
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      8acc216b
  2. 12 1月, 2016 16 次提交
    • P
      Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging · cf57c2f1
      Peter Maydell 提交于
      # gpg: Signature made Mon 11 Jan 2016 19:16:27 GMT using RSA key ID AAFC390E
      # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>"
      
      * remotes/jnsnow/tags/ide-pull-request:
        libqos/ahci: organize header
        qtest/ahci: ATAPI data tests
        libqos/ahci: add ahci_exec
        libqos/ahci: allow nondata commands for ahci_io variants
        libqos: allow zero-size allocations
        libqos/ahci: Switch to mutable properties
        libqos/ahci: ATAPI identify
        libqos/ahci: ATAPI support
        ahci-test: fix memory leak
        ide: ahci: reset ncq object to unused on error
        macio: fix overflow in lba to offset conversion for ATAPI devices
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      cf57c2f1
    • W
      9pfs: introduce V9fsVirtioState · 00588a0a
      Wei Liu 提交于
      V9fsState now only contains generic fields. Introduce V9fsVirtioState
      for virtio transport.  Change virtio-pci and virtio-ccw to use
      V9fsVirtioState.
      Signed-off-by: NWei Liu <wei.liu2@citrix.com>
      Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      00588a0a
    • J
      libqos/ahci: organize header · c5620e65
      John Snow 提交于
      Organize the prototypes into nice little sections.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-10-git-send-email-jsnow@redhat.com
      c5620e65
    • J
      qtest/ahci: ATAPI data tests · e8109694
      John Snow 提交于
      Simple I/O tests for DMA and PIO pathways in the AHCI HBA.
      
      I believe at this point in time all of the common, major IO pathways
      in BMDMA and AHCI are covered by qtests now.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-9-git-send-email-jsnow@redhat.com
      e8109694
    • J
      libqos/ahci: add ahci_exec · 9350df7c
      John Snow 提交于
      add ahci_exec, which is a standard purpose flexible command dispatcher
      and tester for the AHCI device. The intent is to eventually cut down on
      the absurd amount of boilerplate inside of the AHCI qtest.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-8-git-send-email-jsnow@redhat.com
      9350df7c
    • J
      libqos/ahci: allow nondata commands for ahci_io variants · b682d3a7
      John Snow 提交于
      These variants try to set a data offset, even if you don't specify one.
      In the cases where the offset is zero and it's a nondata command, just
      ignore the instruction.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-7-git-send-email-jsnow@redhat.com
      b682d3a7
    • J
      libqos: allow zero-size allocations · b1b66c3b
      John Snow 提交于
      As part of streamlining the AHCI tests interface, it'd be nice
      if specying a size of zero could be handled without special branches
      and the allocator could handle this special case gracefully.
      
      This lets me use the "ahci_io" macros for non-data commands, too,
      which moves me forward towards shepherding all AHCI qtests into
      a common set of commands in a unified pipeline.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-6-git-send-email-jsnow@redhat.com
      b1b66c3b
    • J
      libqos/ahci: Switch to mutable properties · b88641e2
      John Snow 提交于
      ATAPI commands are, unfortunately, weird in that they can
      be either DMA or PIO depending on a header bit. In order to
      accommodate them, I'll need to make AHCI command properties
      mutable so we can toggle between which "flavor" of ATAPI command
      we want to test.
      
      The default ATAPI transfer mechanism is PIO and the default
      properties are adjusted accordingly.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-5-git-send-email-jsnow@redhat.com
      b88641e2
    • J
      libqos/ahci: ATAPI identify · d0b282a5
      John Snow 提交于
      We need to say "hello!" to our ATAPI friends
      in a slightly different manner.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-4-git-send-email-jsnow@redhat.com
      d0b282a5
    • J
      libqos/ahci: ATAPI support · 54d268b2
      John Snow 提交于
      Add pathways to tolerate ATAPI commands.
      
      Notably, unlike ATA, each SCSI command's layout is a little different,
      so support will have to be patched in for each command as we want to
      test them in e.g. ahci_command_set_sizes and ahci_command_set_offset.
      
      For now, I'm adding support for 0x28, READ (10).
      
      [Maintainer edit: replaced type-punning with stl_be_p(). --js]
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-3-git-send-email-jsnow@redhat.com
      54d268b2
    • J
      ahci-test: fix memory leak · 248de4a8
      John Snow 提交于
      Use the proper free command to detroy an AHCICommand.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282920-21550-2-git-send-email-jsnow@redhat.com
      248de4a8
    • P
      ide: ahci: reset ncq object to unused on error · 4ab0359a
      Prasad J Pandit 提交于
      When processing NCQ commands, AHCI device emulation prepares a
      NCQ transfer object; To which an aio control block(aiocb) object
      is assigned in 'execute_ncq_command'. In case, when the NCQ
      command is invalid, the 'aiocb' object is not assigned, and NCQ
      transfer object is left as 'used'. This leads to a use after
      free kind of error in 'bdrv_aio_cancel_async' via 'ahci_reset_port'.
      Reset NCQ transfer object to 'unused' to avoid it.
      
      [Maintainer edit: s/ACHI/AHCI/ in the commit message. --js]
      Reported-by: NQinghao Tang <luodalongde@gmail.com>
      Signed-off-by: NPrasad J Pandit <pjp@fedoraproject.org>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1452282511-4116-1-git-send-email-ppandit@redhat.com
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      4ab0359a
    • M
      macio: fix overflow in lba to offset conversion for ATAPI devices · 97225170
      Mark Cave-Ayland 提交于
      As the IDEState lba field is an int32_t, make sure we cast to int64_t before
      shifting to calculate the offset. Otherwise we end up with an overflow when
      trying to access sectors beyond 2GB as can occur when using DVD images.
      
      [Maintainer edit: fixed extraneous parentheses. --js]
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1451928613-29476-1-git-send-email-mark.cave-ayland@ilande.co.uk
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      97225170
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20160111-1' into staging · 7b8a354d
      Peter Maydell 提交于
      target-arm queue:
       * i.MX: move i.MX31 CCM object to register array
       * xilinx_axidma: remove dead code
       * disas/libvixl: Update to upstream VIXL 1.12
       * virt: Support legacy -nic command line syntax
      
      # gpg: Signature made Mon 11 Jan 2016 16:05:58 GMT using RSA key ID 14360CDE
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>"
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>"
      
      * remotes/pmaydell/tags/pull-target-arm-20160111-1:
        hw/arm/virt: Support legacy -nic command line syntax
        disas/libvixl: Update to upstream VIXL 1.12
        hw/dma/xilinx_axidma: remove dead code
        i.MX: move i.MX31 CCM object to register array
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7b8a354d
    • A
      hw/arm/virt: Support legacy -nic command line syntax · fea9b3ca
      Ashok Kumar 提交于
      Support the legacy -nic syntax for creating PCI network devices
      as well as the new-style -device options. This makes life easier
      for people moving from x86 KVM virtualization to ARM KVM virtualization
      and expecting their network configuration options to work the same
      way for both setups.
      
      We use "virtio" as the default NIC model if the user doesn't specify one.
      Signed-off-by: NAshok Kumar <ashoks@broadcom.com>
      Message-id: 1452091659-17698-1-git-send-email-ashoks@broadcom.com
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      [PMM: expanded and clarified commit message]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      fea9b3ca
    • P
      disas/libvixl: Update to upstream VIXL 1.12 · 5de6f3c0
      Peter Maydell 提交于
      Update our copy of libvixl to upstream's 1.12 release.
      The major benefit from QEMU's point of view is that some instructions
      previously disassembled as "unimplemented (System)" are now displayed
      as something more useful. It also fixes some warnings about format
      strings that newer w64-mingw32 compilers were emitting.
      
      We didn't have any local changes to libvixl so nothing needed
      to be forward-ported.
      
      Although this is a large commit (due to upstream renaming most
      of the files), only a few of the files changed in this commit
      are not just straight copies of upstream libvixl files:
       disas/arm-a64.cc
       disas/libvixl/Makefile.objs
       disas/libvixl/README
      
      Note that this commit introduces some signed-unsigned comparison
      warnings on the old mingw compilers. Those compilers have broken
      TLS support anyway so have only ever been much use for compile tests;
      anybody still using them should add -Wno-sign-compare to their
      --extra-cflags.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      5de6f3c0
  3. 11 1月, 2016 9 次提交
    • A
      hw/dma/xilinx_axidma: remove dead code · b3d21a04
      Andrew Jones 提交于
      stream_desc_show() (and DEBUG_ENET) appear to be unused, as the
      function isn't compilable (there are broken PRI format strings).
      Signed-off-by: NAndrew Jones <drjones@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NAlistair Francis <alistair.francis@xilinx.com>
      Message-id: 1452084792-17424-1-git-send-email-drjones@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b3d21a04
    • J
      i.MX: move i.MX31 CCM object to register array · fea01f96
      Jean-Christophe DUBOIS 提交于
      With this i.MX25 and i.MX31 will have closer implementations.
      
      Moreover all i.MX31 CCM registers are now present.
      Signed-off-by: NJean-Christophe Dubois <jcd@tribudubois.net>
      Reviewed-by: NPeter Crosthwaite <crosthwaite.peter@gmail.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      fea01f96
    • P
      Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20160111' into staging · ac0d9dbf
      Peter Maydell 提交于
      January 2016 Linux-user queque
      
      # gpg: Signature made Mon 11 Jan 2016 14:13:57 GMT using RSA key ID DE3C9BC0
      # gpg: Good signature from "Riku Voipio <riku.voipio@iki.fi>"
      # gpg:                 aka "Riku Voipio <riku.voipio@linaro.org>"
      
      * remotes/riku/tags/pull-linux-user-20160111:
        linux-user/mmap.c: Use end instead of real_end in target_mmap
        linux-user: Add SOCKOP_sendmmsg and SOCKOP_recvmmsg socket call, wire them up.
        linux-user: Update m68k syscall definitions to match Linux 4.4.
        linux-user/syscall.c: Use SOL_SOCKET instead of level for setsockopt()
        linux-user: enable sigaltstack for all architectures
        unicore32: convert get_sp_from_cpustate from macro to inline
        linux-user/mmap.c: Always zero MAP_ANONYMOUS memory in mmap_frag()
        linux-user,sh4: fix signal retcode address
        linux-user: check fd is >= 0 in fd_trans_host_to_target_data/fd_trans_host_to_target_addr
        linux-user: manage bind with a socket of SOCK_PACKET type.
        linux-user: add a function hook to translate sockaddr
        linux-user: rename TargetFdFunc to TargetFdDataFunc, and structure fields accordingly
        linux-user: SOCK_PACKET uses network endian to encode protocol in socket()
        linux-user/syscall.c: malloc()/calloc() to g_malloc()/g_try_malloc()/g_new0()
        linux-user: in poll(), if nfds is 0, pfd can be NULL
        linux-user: correctly align target_epoll_event
        linux-user: add signalfd/signalfd4 syscalls
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ac0d9dbf
    • C
      linux-user/mmap.c: Use end instead of real_end in target_mmap · 530c0032
      Chen Gang 提交于
      The fragment must effectively be mapped only to "end" not to "real_end"
      (which is a host page aligned address, and thus this is not a fragment).
      It is consistent with what it is done in the case of one single page.
      Signed-off-by: NChen Gang <gang.chen.5i5j@gmail.com>
      Reviewed-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      530c0032
    • P
      Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2016-01-11' into staging · 692a5519
      Peter Maydell 提交于
      trivial patches for 2016-01-11
      
      # gpg: Signature made Mon 11 Jan 2016 08:39:32 GMT using RSA key ID A4C3D7DB
      # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@debian.org>"
      
      * remotes/mjt/tags/pull-trivial-patches-2016-01-11:
        hw/s390x: Remove superfluous return statements
        hw/core/qdev: Remove superfluous return statement
        hw/acpi: Remove superfluous return statement
        hw/ide: Remove superfluous return statements
        osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h
        scripts/checkpatch.pl: Don't allow special cases of unspaced operators
        PCI Bonito: QOMify and cleanup
        SH PCI Host: convert to realize()
        gt64120: convert to realize()
        Add missing syscall nrs. according to more recent Linux kernels
        hw/misc/edu: Convert to realize()
        configure: fix trace backend check
        xen/Makefile.objs: simplify
        crypto: Fix typo in example
        MAINTAINERS: Add the correct device_tree.h file
        iscsi: fix readcapacity error message
        net: convert qemu_log to error_report, fix message
        linux-user: enable sigaltstack for all architectures
        unicore32: convert get_sp_from_cpustate from macro to inline
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      692a5519
    • J
      linux-user: Add SOCKOP_sendmmsg and SOCKOP_recvmmsg socket call, wire them up. · 5a53dc50
      John Paul Adrian Glaubitz 提交于
      Adds the definitions for the socket calls SOCKOP_sendmmsg
      and SOCKOP_recvmmsg and wires them up with the rest of the code.
      The necessary function do_sendrecvmmsg() is already present in
      linux-user/syscall.c. After adding these two definitions and wiring
      them up, I no longer receive an error message about the
      unimplemented socket calls when running "apt-get update" on Debian
      unstable running on qemu with glibc_2.21 on m68k.
      Signed-off-by: NJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Reviewed-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      5a53dc50
    • J
    • P
      Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging · cc06ca4c
      Peter Maydell 提交于
      # gpg: Signature made Mon 11 Jan 2016 05:22:16 GMT using RSA key ID 398D6211
      # gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 215D 46F4 8246 689E C77F  3562 EF04 965B 398D 6211
      
      * remotes/jasowang/tags/net-pull-request: (24 commits)
        ether/slirp: Avoid redefinition of the same constants
        l2tpv3: fix cookie decoding
        net: ne2000: fix bounds check in ioport operations
        net: rocker: fix an incorrect array bounds check
        vmxnet3: Introduce 'x-disable-pcie' back-compat property
        vmxnet3: Report the Device Serial Number capability
        vmxnet3: The vmxnet3 device is a PCIE endpoint
        vmxnet3: coding: Introduce VMXNET3Class
        vmxnet3: Introduce 'x-old-msi-offsets' back-compat property
        vmxnet3: Change the offset of the MSIX PBA table
        vmxnet3: Change offsets of msi/msix pci capabilities
        net/filter: fix nf->netdev_id leak
        net/dump: fix nfds->filename leak
        net/vmxnet3: rename VMXNET3_DEVICE_VERSION to VMXNET3_UPT_REVISION
        net/vmxnet3: return 0 on unknown command
        net/vmxnet3: return correct value for VMXNET3_CMD_GET_DEV_EXTRA_INFO
        net/vmxnet3: return correct value for VMXNET3_CMD_GET_DID_* command
        net/vmxnet3: return 1 on device activation failure
        MAINTAINERS: Add an entry for the net/slirp.c file
        net: vmxnet3: avoid memory leakage in activate_device
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      cc06ca4c
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.6-20160111' into staging · 10e1b759
      Peter Maydell 提交于
      ppc patch queue 2016-01-11
      
      Biggest content is a thorough cleanups of spapr machine type handling.
      Also contains several other minor cleanups, bugfixes and extensions.
      
      # gpg: Signature made Mon 11 Jan 2016 04:34:38 GMT using RSA key ID 20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.6-20160111:
        hw/ppc/spapr: fix spapr->kvm_type leak
        spapr vio: fix to incomplete QOMify
        hw/ppc/spapr: Use XHCI as host controller for new spapr machines
        pseries: Add pseries-2.6 machine type
        pseries: Improve setting of default machine version
        pseries: Restructure class_options functions
        pseries: DEFINE_SPAPR_MACHINE
        pseries: Use SET_MACHINE_COMPAT
        Move SET_MACHINE_COMPAT macro to boards.h
        pseries: Remove versions from mc->desc
        pseries: Remove redundant calls to spapr_machine_initfn()
        pseries: Rearrange versioned machine type code
        pseries: Remove redundant setting of mc->name for pseries-2.5 machine
        spapr: Add /system-id
        target-ppc: Define kvmppc_read_int_dt()
        hw/ppc/spapr_rtc: Remove bad class_size value
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      10e1b759