1. 01 8月, 2012 3 次提交
    • S
      configure: Fix build with ALSA audio driver · e35bcb0c
      Stefan Weil 提交于
      Since commit 417c9d72,
      all configure tests normally run with -Werror.
      
      Some of these tests now fail because they raised a compiler warning.
      
      Here a build breakage for ALSA (configure --audio-drv-list=alsa) is fixed.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      e35bcb0c
    • P
      configure: Don't run configure tests with -Werror enabled · 6ca026cb
      Peter Maydell 提交于
      Don't run configure tests with -Werror in the compiler flags. The idea
      of -Werror is that it makes problems very obvious to developers, so
      they get fixed quickly. However, when running configure tests, failures
      due to -Werror are far from obvious -- they simply result in the test
      quietly failing when it should have passed. Not using -Werror is in
      line with recommended practice in the Autoconf world.
      
      This commit is essentially backing out the changes in commit 417c9d72.
      Instead we fix the problem that commit was trying to address in a
      different way: we add -Werror only for the test of the nss headers,
      with a comment that this is specifically intended to detect a bug
      in some releases of nss.
      
      We also have to clean up a bug in the smartcard test where it was
      trying to include smartcard_cflags in the test compile flags: this
      would always result in a failure with -Werror, because they include
      an escaped "$(SRC_PATH)" which is only valid when used in the final
      makefile.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      6ca026cb
    • P
      configure: Split valgrind test into pragma test and valgrind.h test · 06d71fa1
      Peter Maydell 提交于
      Split the configure test that checks for valgrind into two, one
      part checking whether we have the gcc pragma to disable unused-but-set
      variables, and the other part checking for the existence of valgrind.h.
      The first of these has to be compiled with -Werror and the second
      does not and shouldn't generate any warnings.
      
      This (a) allows us to enable "make errors in configure tests be
      build failures" and (b) enables use of valgrind on systems with
      a gcc which doesn't know about -Wunused-but-set-varibale, like
      Debian squeeze.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      06d71fa1
  2. 30 7月, 2012 4 次提交
    • A
      Merge remote-tracking branch 'mst/tags/for_anthony' into staging · 5e3bc714
      Anthony Liguori 提交于
      * mst/tags/for_anthony:
        msi/msix: added API to set MSI message address and data
        pci: Add INTx routing notifier
        pci: Add pci_device_route_intx_to_irq
        pci: Unregister BARs before device exit
        pci: convert PCIUnregisterFunc to void
        msix: Switch msix_uninit to return void
        msix: Allow full specification of MSIX layout
        msix: Split PBA into it's own MemoryRegion
        msix: Note endian TODO item
        msix: Move msix_mmio_read
        virtio: Convert to msix_init_exclusive_bar() interface
        ivshmem: Convert to msix_init_exclusive_bar() interface
        msix: Add simple BAR allocation MSIX setup functions
        msix: fix PCIDevice naming inconsistency
        msix: drop unused msix_bar_size, require valid bar_size
      5e3bc714
    • A
      Merge remote-tracking branch 'bonzini/nbd-next' into staging · 4dd533aa
      Anthony Liguori 提交于
      * bonzini/nbd-next:
        qemu-nbd: add --cache and --aio options
        qemu-nbd: reorganize help message
      4dd533aa
    • A
      Merge remote-tracking branch 'bonzini/scsi-next' into staging · d4a06f46
      Anthony Liguori 提交于
      * bonzini/scsi-next: (32 commits)
        virtio-scsi: enable MSI-X support
        virtio-scsi: add ioeventfd support
        virtio-scsi: report parameter change events
        virtio-scsi: do not report dropped events after reset
        virtio-scsi: Report missed events
        virtio-scsi: Implement hotplug support for virtio-scsi
        scsi: report parameter changes to HBA drivers
        scsi-disk: report resized disk via sense codes
        scsi: establish precedence levels for unit attention
        scsi: introduce hotplug() and hot_unplug() interfaces for SCSI bus
        scsi: add tracepoint for scsi_req_cancel
        scsi-disk: removable hard disks support load/eject
        scsi-disk: Fail medium writes with proper sense for readonly LUNs
        scsi-disk: improve the lba-out-of-range tests for read/write/verify
        scsi-disk: rd/wr/vr-protect !=0 is an error
        scsi-disk: support toggling the write cache
        scsi-disk: parse MODE SELECT commands and parameters
        scsi-disk: fix changeable values for MODE_PAGE_R_W_ERROR
        scsi-disk: adjust offsets in MODE SENSE by 2
        scsi-disk: support emulated TO_DEV requests
        ...
      d4a06f46
    • A
      Merge commit 'quintela/migration-next-v5' into staging · e6a76719
      Anthony Liguori 提交于
      * commit '6c779f22':
        Change ram_save_block to return -1 if there are no more changes
        ram: save_live_setup() we don't need to synchronize the dirty bitmap.
        ram: iterate phase
        ram: save_live_complete() only do one loop
        ram: save_live_setup() don't need to sent pages
        savevm: split save_live into stage2 and stage3
        savevm: split save_live_setup from save_live_state
        savevm: introduce is_active method
        savevm: Refactor cancel operation in its own operation
        savevm: remove SaveLiveStateHandler
        savevm: remove SaveSetParamsHandler
        savevm: Live migration handlers register the struct directly
        savevm: Use a struct to pass all handlers
      e6a76719
  3. 29 7月, 2012 4 次提交
    • M
      Merge branch pci into master · 5e59b024
      Michael S. Tsirkin 提交于
      Merge master and pci branch, resolve build breakage in hw/esp.c
      introduced by f90c2bcd.
      
      Conflicts:
      	hw/esp.c
      5e59b024
    • V
      x86: Fixed incorrect segment base address addition in 64-bits mode · 7162ab21
      Vitaly Chipounov 提交于
      According to the Intel manual
      "Intel® 64 and IA-32 Architectures Software Developer’s Manual
      Volume 3", "3.4.4 Segment Loading Instructions in IA-32e Mode":
      
      "When in compatibility mode, FS and GS overrides operate as defined by
      32-bit mode behavior regardless of the value loaded into the upper 32
      linear-address bits of the hidden descriptor register base field.
      Compatibility mode ignores the upper 32 bits when calculating an effective address."
      
      However, the code misses the 64-bit mode case, where an instruction with
      address and segment size override would be translated incorrectly. For example,
      inc dword ptr gs:260h[ebx*4] gets incorrectly translated to:
      
      (uint32_t)(gs.base + ebx * 4 + 0x260)
      instead of
      gs.base + (uint32_t)(ebx * 4 + 0x260)
      Signed-off-by: NVitaly Chipounov <vitaly.chipounov@epfl.ch>
      Reviewed-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      7162ab21
    • P
      place qemu-sockets.c contributions since 2012-01-13 under GPLv2+ · e6d91ab6
      Paolo Bonzini 提交于
      Past contributions since 2012-01-13 were only made by Red Hat people,
      so they are already available under GPLv2+.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      e6d91ab6
    • D
      build: Fix linking failure for qemu-ga · 54c2e502
      Dunrong Huang 提交于
      This patch will fix the following linking failed:
      
        LINK  qemu-ga
      gcc: error: qga/../qapi-generated/qga-qapi-types.o: No such file or directory
      gcc: error: qga/../qapi-generated/qga-qapi-visit.o: No such file or directory
      gcc: error: qga/../qapi-generated/qga-qmp-marshal.o: No such file or directory
      make: *** [qemu-ga] Error 1
      
      Commit cdc976b0 changes the
      dependencies of qemu-ga to depend "../qapi-generated/qga-qapi-types.o",
      which will be expanded to "qga/../qapi-generated/qga-qapi-types.o" when
      building qemu-ga.
      
      In top-level Makefile, we defined a target "qapi-generated/qga-qapi-types.o"
      which was not equal to "qga/../qapi-generated/qga-qapi-types" in the
      Makefile world. So "No such file" error happened when qemu-ga was linking.
      
      The easy approach to fix is to change the target name to
      "qga/../qapi-generated/qga-qapi-types.o", but it is weird.
      
      So, in order to solve it more graciously, I move those temporary
      files(qga-qapi-*.{c,h}) qemu-ga depends on to qemu-ga/qapi-generated,
      this makes dependencies more clearer.
      Signed-off-by: NDunrong Huang <riegamaths@gmail.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      54c2e502
  4. 28 7月, 2012 23 次提交
  5. 27 7月, 2012 6 次提交