1. 12 1月, 2016 8 次提交
    • 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
  2. 11 1月, 2016 32 次提交