1. 05 10月, 2012 8 次提交
    • S
      configure: Support empty target list (--target-list=) · afb63ebd
      Stefan Weil 提交于
      Specifying an empty target list with --target-list= is shorter
      than specifying --disable-user --disable-system.
      
      Both variants should give the same result: no targets at all.
      
      This modification implements that feature.
      
      It uses a trick which works with POSIX compliant shells to test whether
      target_list is undefined (=> default targets) or empty (=> no targets).
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NStefan Hajnoczi <stefanha@gmail.com>
      afb63ebd
    • S
      hw: Fix return value check for bdrv_read, bdrv_write · 7a608f56
      Stefan Weil 提交于
      Those functions return -errno in case of an error.
      The old code would typically only detect EPERM (1) errors.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NStefan Hajnoczi <stefanha@gmail.com>
      7a608f56
    • A
      Merge remote-tracking branch 'sstabellini/xen-2012-10-03' into staging · a14c7492
      Anthony Liguori 提交于
      * sstabellini/xen-2012-10-03:
        xen: Set the vram dirty when an error occur.
        exec, memory: Call to xen_modified_memory.
        exec: Introduce helper to set dirty flags.
        xen: Introduce xen_modified_memory.
        QMP, Introduce xen-set-global-dirty-log command.
        qemu/xen: Add 64 bits big bar support on qemu
        xen: Fix, no unplug of pt device by platform device.
      a14c7492
    • A
      Merge remote-tracking branch 'kwolf/for-anthony' into staging · 05d4f2f2
      Anthony Liguori 提交于
      * kwolf/for-anthony: (30 commits)
        qemu-iotests: add tests for streaming error handling
        qemu-iotests: map underscore to dash in QMP argument names
        blkdebug: process all set_state rules in the old state
        stream: add on-error argument
        block: introduce block job error
        iostatus: reorganize io error code
        iostatus: change is_read to a bool
        iostatus: move BlockdevOnError declaration to QAPI
        iostatus: rename BlockErrorAction, BlockQMPEventAction
        qemu-iotests: add test for pausing a streaming operation
        qmp: add block-job-pause and block-job-resume
        block: add support for job pause/resume
        qmp: add 'busy' member to BlockJobInfo
        block: add block_job_query
        block: move job APIs to separate files
        block: fix documentation of block_job_cancel_sync
        qerror/block: introduce QERR_BLOCK_JOB_NOT_ACTIVE
        qemu-iotests: add initial tests for live block commit
        QAPI: add command for live block commit, 'block-commit'
        block: helper function, to find the base image of a chain
        ...
      05d4f2f2
    • A
      Merge remote-tracking branch 'qmp/queue/qmp' into staging · 97f34615
      Anthony Liguori 提交于
      * qmp/queue/qmp:
        block: live snapshot documentation tweaks
        input: index_from_key(): drop unused code
        qmp: qmp_send_key(): accept key codes in hex
        input: qmp_send_key(): simplify
        hmp: dump-guest-memory: hardcode protocol argument to "file:"
        qmp: dump-guest-memory: don't spin if non-blocking fd would block
        qmp: dump-guest-memory: improve schema doc (again)
        qapi: convert add_client
        monitor: add Error * argument to monitor_get_fd
        pci-assign: use monitor_handle_fd_param
        qapi: add "unix" to the set of reserved words
        qapi: do not protect enum values from namespace pollution
        Add qemu-ga-client script
        Support settimeout in QEMUMonitorProtocol
        Make negotiation optional in QEMUMonitorProtocol
      97f34615
    • A
      Merge remote-tracking branch 'mst/tags/for_anthony' into staging · 6929cf11
      Anthony Liguori 提交于
      * mst/tags/for_anthony:
        virtio-serial-bus: let chardev know the exact number of bytes requested
        virtio: Introduce virtqueue_get_avail_bytes()
        virtio: use unsigned int for counting bytes in vq
        iov: add const annotation
        virtio-net: fix used len for tx
        virtio: don't mark unaccessed memory as dirty
      6929cf11
    • A
      Merge remote-tracking branch 'kraxel/usb.66' into staging · 938406df
      Anthony Liguori 提交于
      * kraxel/usb.66:
        usb: Fix usb_packet_map() in the presence of IOMMUs
        usb-redir: Adjust pkg-config check for usbredirparser .pc file rename (v2)
        ehci: Fix interrupt packet MULT handling
        xhci: create a memory region for each port
        xhci: route string & usb hub support
        xhci: tweak limits
        compat: turn off msi/msix on xhci for old machine types
        add pc-1.3 machine type
      
      Conflicts:
      	hw/pc_piix.c
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      938406df
    • A
      Make target_phys_addr_t 64 bits unconditionally · 4be403c8
      Avi Kivity 提交于
      The hassle and compile time overhead of maintaining both 32-bit and 64-bit
      capable source isn't worth the tiny performance advantage which is seen on
      a minority of configurations.  Switch to compiling libhw only once, with
      target_phys_addr_t unconditionally typedefed to uint64_t.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4be403c8
  2. 03 10月, 2012 7 次提交
  3. 02 10月, 2012 3 次提交
  4. 01 10月, 2012 5 次提交
    • A
      vfio: Enable vfio-pci and mark supported · 92e1fb5e
      Alex Williamson 提交于
      Enabled for all softmmu guests supporting PCI on Linux hosts.  Note
      that currently only x86 hosts have the kernel side VFIO IOMMU support
      for this.  PPC (g3beige) is the only non-x86 guest known to work.
      ARM (veratile) hangs in firmware, others untested.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      92e1fb5e
    • A
      vfio: vfio-pci device assignment driver · 65501a74
      Alex Williamson 提交于
      This adds the core of the QEMU VFIO-based PCI device assignment driver.
      To make use of this driver, enable CONFIG_VFIO, CONFIG_VFIO_IOMMU_TYPE1,
      and CONFIG_VFIO_PCI in your host Linux kernel config.  Load the vfio-pci
      module.  To assign device 0000:05:00.0 to a guest, do the following:
      
      for dev in $(ls /sys/bus/pci/devices/0000:05:00.0/iommu_group/devices); do
          vendor=$(cat /sys/bus/pci/devices/$dev/vendor)
          device=$(cat /sys/bus/pci/devices/$dev/device)
          if [ -e /sys/bus/pci/devices/$dev/driver ]; then
              echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
          fi
          echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id
      done
      
      See Documentation/vfio.txt in the Linux kernel tree for further
      description of IOMMU groups and VFIO.
      
      Then launch qemu including the option:
      
      -device vfio-pci,host=0000:05:00.0
      
      Legacy PCI interrupts (INTx) currently makes use of a kludge where we
      trap BAR accesses and assume the access is in response to an interrupt,
      therefore de-asserting and unmasking the interrupt.  It's not quite as
      targetted as using the EOI for this, but it's self contained and seems
      to work across all architectures.  The side-effect is a significant
      performance slow-down for device in INTx mode.  Some devices, like
      graphics cards, don't really use their interrupt, so this can be turned
      off with the x-intx=off option, which disables INTx alltogether.  This
      should be considered an experimental option until we refine this code.
      Both MSI and MSI-X are supported and avoid these issues.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      65501a74
    • A
      Update Linux kernel headers · 883f0b85
      Alex Williamson 提交于
      Based on Linux as of 1a95620.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      883f0b85
    • A
    • H
      x86: Implement SMEP and SMAP · a9321a4d
      H. Peter Anvin 提交于
      This patch implements Supervisor Mode Execution Prevention (SMEP) and
      Supervisor Mode Access Prevention (SMAP) for x86.  The purpose of the
      patch, obviously, is to help kernel developers debug the support for
      those features.
      
      A fair bit of the code relates to the handling of CPUID features.  The
      CPUID code probably would get greatly simplified if all the feature
      bit words were unified into a single vector object, but in the
      interest of producing a minimal patch for SMEP/SMAP, and because I had
      very limited time for this project, I followed the existing style.
      
      [ v2: don't change the definition of the qemu64 CPU shorthand, since
        that breaks loading old snapshots.  Per Anthony Liguori this can be
        fixed once the CPU feature set is snapshot.
      
        Change the coding style slightly to conform to checkpatch.pl. ]
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a9321a4d
  5. 30 9月, 2012 5 次提交
  6. 29 9月, 2012 12 次提交