1. 31 5月, 2013 1 次提交
    • A
      qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path · bbfa18fc
      Amos Kong 提交于
      Recent virtio refactoring in QEMU made virtio-bus become the parent bus
      of scsi-bus, and virtio-bus doesn't have get_fw_dev_path implementation,
      typename will be added to fw_dev_path by default, the new fw_dev_path
      could not be identified by seabios. It causes that bootindex parameter
      of scsi device doesn't work.
      
      This patch implements get_fw_dev_path() in BusClass, it will be called
      if bus doesn't implement the method, tyename will be added to
      fw_dev_path. If the implemented method returns NULL, nothing will be
      added to fw_dev_path.
      
      It also implements virtio_bus_get_fw_dev_path() to return NULL. Then
      QEMU will still pass original style of fw_dev_path to seabios.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Message-id: 1369814202-10346-1-git-send-email-akong@redhat.com
      --
      v2: only add nothing to fw_dev_path when get_fw_dev_path() is
          implemented and returns NULL. then it will not effect other devices
          don't have get_fw_dev_path() implementation.
      v3: implement default get_fw_dev_path() in BusClass
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      bbfa18fc
  2. 29 5月, 2013 14 次提交
  3. 28 5月, 2013 6 次提交
  4. 27 5月, 2013 2 次提交
  5. 26 5月, 2013 11 次提交
  6. 25 5月, 2013 6 次提交
    • A
      Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging · fd469df9
      Anthony Liguori 提交于
      # By Paolo Bonzini (11) and others
      # Via Paolo Bonzini
      * bonzini/iommu-for-anthony:
        memory: clean up phys_page_find
        memory: populate FlatView for new address spaces
        memory: limit sections in the radix tree to the actual address space size
        s390x: reduce TARGET_PHYS_ADDR_SPACE_BITS to 62
        memory: fix address space initialization/destruction
        memory: make memory_global_sync_dirty_bitmap take an AddressSpace
        memory: do not duplicate memory_region_destructor_none
        memory: Rename readable flag to romd_mode
        memory: Replace open-coded memory_region_is_romd
        memory: allow memory_region_find() to run on non-root memory regions
        memory: assert that PhysPageEntry's ptr does not overflow
        exec: eliminate stq_phys_notdirty
        exec: make qemu_get_ram_ptr private
        exec: eliminate qemu_put_ram_ptr
        exec: remove obsolete comment
      
      Message-id: 1369414987-8839-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      fd469df9
    • A
      Merge remote-tracking branch 'stefanha/net' into staging · 4a542df0
      Anthony Liguori 提交于
      # By Alasdair McLeay (1) and Stefan Hajnoczi (1)
      # Via Stefan Hajnoczi
      * stefanha/net:
        rtl8139: flush queued packets when RxBufPtr is written
        net: support for bridged networking on Mac OS X
      
      Message-id: 1369406295-20411-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4a542df0
    • A
      Merge remote-tracking branch 'stefanha/block' into staging · 4c5dad04
      Anthony Liguori 提交于
      # By Wenchao Xia (5) and others
      # Via Stefan Hajnoczi
      * stefanha/block:
        coroutine: stop using AioContext in CoQueue
        coroutine: protect global pool with a mutex
        qemu-iotests: Try creating huge qcow2 image
        qcow2.py: Subcommand for changing header fields
        qemu-io: Fix 'map' output
        blockdev: Rename BlockdevAction -> TransactionAction
        block: make all steps in qmp_transaction() as callback
        block: package rollback code in qmp_transaction()
        block: package committing code in qmp_transaction()
        block: move input parsing code in qmp_transaction()
        block: package preparation code in qmp_transaction()
      
      Message-id: 1369405947-14818-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4c5dad04
    • P
      memory: clean up phys_page_find · fd298934
      Paolo Bonzini 提交于
      Remove the goto.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      fd298934
    • P
      memory: populate FlatView for new address spaces · f43793c7
      Paolo Bonzini 提交于
      Even a new address space might have a non-empty FlatView.  In order
      to initialize it properly, address_space_init should (a) call
      memory_region_transaction_commit after the address space is inserted
      into the list; (b) force memory_region_transaction_commit to do something.
      
      This bug was latent so far because all address spaces started empty, including
      the PCI address space where the bus master region is initially disabled.
      However, the target address space of an IOMMU is usually rooted at
      get_system_memory(), which might not be empty at the time the IOMMU is created.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f43793c7
    • A
      memory: limit sections in the radix tree to the actual address space size · 86a86236
      Avi Kivity 提交于
      The radix tree is statically sized to fit TARGET_PHYS_ADDR_SPACE_BITS.
      If a larger memory region is registered, it will overflow.
      
      Fix by limiting any section in the radix tree to the supported size.
      
      This problem was not observed earlier since artificial regions (containers
      and aliases) are eliminated by the memory core, leaving only device regions
      which have reasonable sizes.  An IOMMU however cannot be eliminated by the
      memory core, and may have an artificial size.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAvi Kivity <avi.kivity@gmail.com>
      [ Fail the build if TARGET_PHYS_ADDR_SPACE_BITS is too large - Paolo ]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      86a86236