1. 13 1月, 2016 13 次提交
  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 11 次提交
    • 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
    • C
      linux-user/syscall.c: Use SOL_SOCKET instead of level for setsockopt() · fad6c58a
      Chen Gang 提交于
      In this case, level is TARGET_SOL_SOCKET, but we need SOL_SOCKET for
      setsockopt().
      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>
      fad6c58a
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · d21ccd7b
      Peter Maydell 提交于
      acpi dsdt rework, misc fixes
      
      This completes the dsdt rewrite, and includes misc fixes all over the place.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Sat 09 Jan 2016 21:20:34 GMT using RSA key ID D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      
      * remotes/mst/tags/for_upstream: (59 commits)
        virtio: fix error message for number of queues
        ivshmem: Store file descriptor for vhost-user negotiation
        migration/virtio: Remove simple .get/.put use
        Add VMSTATE_STRUCT_VARRAY_KNOWN
        i386/pc: expose identifying the floppy controller
        pc: acpi: remove unused ASL templates and related blobs/utils
        pc: acpi: switch to AML API composed DSDT
        pc: acpi: q35: PCST, PCSB opregions and PCIB field into SSDT
        pc: acpi: q35: move PCI0 device definition into SSDT
        pc: acpi: q35: move PCI0._OSC() method into SSDT
        pc: acpi: q35: move _PIC() method into SSDT
        pc: acpi: q35: move PRTP routing table into SSDT
        pc: acpi: q35: move PRTA routing table into SSDT
        pc: acpi: q35: move _PRT() into SSDT
        pc: acpi: q35: move ISA bridge into SSDT
        pc: acpi: q35: move IQST() into SSDT
        pc: acpi: q35: move IQCR() into SSDT
        pc: acpi: q35: move link devices to SSDT
        pc: acpi: q35: move GSI links to SSDT
        pc: acpi: piix4: acpi move PCI0 device to SSDT
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d21ccd7b