]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Merge branch 'usb.65' of git://git.kraxel.org/qemu
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 21 Sep 2012 17:53:26 +0000 (19:53 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 21 Sep 2012 17:53:26 +0000 (19:53 +0200)
* 'usb.65' of git://git.kraxel.org/qemu:
  uhci: Don't queue up packets after one with the SPD flag set
  usb-redir: Revert usb-redir part of commit 93bfef4c
  usb-redir: Add chardev open / close debug logging
  usb-redir: Add support for migration
  usb-redir: Store max_packet_size in endp_data
  usb-redir: Add an already_in_flight packet-id queue
  usb-redir: Change cancelled packet code into a generic packet-id queue
  ehci: Walk async schedule before and after migration
  ehci: Don't set seen to 0 when removing unseen queue-heads
  configure: usbredir fixes
  ehci: Don't process too much frames in 1 timer tick (v2)
  ehci: Fix interrupts stopping when Interrupt Threshold Control is 8
  ehci: switch to new-style memory ops
  usb-host: allow emulated (non-async) control requests without USBPacket

1  2 
configure
trace-events

diff --combined configure
index 8564142cc566082ef08c544152aa8cd7980ab040,e42c812529ce36675f574a9c8ca59947b2996c99..9caa545abb8faee759a573bf1db9fe9d138a03fa
+++ b/configure
@@@ -118,6 -118,7 +118,6 @@@ audio_card_list="ac97 es1370 sb16 hda
  audio_possible_cards="ac97 es1370 sb16 cs4231a adlib gus hda"
  block_drv_whitelist=""
  host_cc="gcc"
 -helper_cflags=""
  libs_softmmu=""
  libs_tools=""
  audio_pt_int=""
@@@ -126,7 -127,7 +126,7 @@@ cc_i386=i386-pc-linux-gnu-gc
  libs_qga=""
  debug_info="yes"
  
 -target_list="DEFAULT"
 +target_list=""
  
  # Default value for a variable defining feature "foo".
  #  * foo="no"  feature will only be used if --enable-foo arg is given
@@@ -901,6 -902,7 +901,6 @@@ case "$cpu" i
             QEMU_CFLAGS="-m32 -ffixed-g2 -ffixed-g3 $QEMU_CFLAGS"
             if test "$solaris" = "no" ; then
               QEMU_CFLAGS="-ffixed-g1 -ffixed-g6 $QEMU_CFLAGS"
 -             helper_cflags="-ffixed-i0"
             fi
             ;;
      sparc64)
             QEMU_CFLAGS="-m32 $QEMU_CFLAGS"
             LDFLAGS="-m32 $LDFLAGS"
             cc_i386='$(CC) -m32'
 -           helper_cflags="-fomit-frame-pointer"
             host_guest_base="yes"
             ;;
      x86_64)
@@@ -1319,15 -1322,10 +1319,15 @@@ if ! "$python" -c 'import sys; sys.exit
    exit 1
  fi
  
 -if test "$target_list" = "DEFAULT" ; then
 -    target_list=`echo "$default_target_list" | sed -e 's/,/ /g'`
 +if test -z "$target_list" ; then
 +    target_list="$default_target_list"
 +else
 +    target_list=`echo "$target_list" | sed -e 's/,/ /g'`
 +fi
 +if test -z "$target_list" ; then
 +    echo "No targets enabled"
 +    exit 1
  fi
 -
  # see if system emulation was really requested
  case " $target_list " in
    *"-softmmu "*) softmmu=yes
@@@ -1433,10 -1431,10 +1433,10 @@@ if test "$seccomp" != "no" ; the
          LIBS=`$pkg_config --libs libseccomp`
        seccomp="yes"
      else
 -      seccomp="no"
        if test "$seccomp" = "yes"; then
              feature_not_found "libseccomp"
        fi
 +      seccomp="no"
      fi
  fi
  ##########################################
  fi
  
  
 +##########################################
 +# Do we need libm
 +cat > $TMPC << EOF
 +#include <math.h>
 +int main(void) { return isnan(sin(0.0)); }
 +EOF
 +if compile_prog "" "" ; then
 +  :
 +elif compile_prog "" "-lm" ; then
 +  LIBS="-lm $LIBS"
 +  libs_qga="-lm $libs_qga"
 +else
 +  echo
 +  echo "Error: libm check failed"
 +  echo
 +  exit 1
 +fi
 +
  ##########################################
  # Do we need librt
 +# uClibc provides 2 versions of clock_gettime(), one with realtime
 +# support and one without. This means that the clock_gettime() don't
 +# need -lrt. We still need it for timer_create() so we check for this
 +# function in addition.
  cat > $TMPC <<EOF
  #include <signal.h>
  #include <time.h>
 -int main(void) { return clock_gettime(CLOCK_REALTIME, NULL); }
 +int main(void) {
 +  timer_create(CLOCK_REALTIME, NULL, NULL);
 +  return clock_gettime(CLOCK_REALTIME, NULL);
 +}
  EOF
  
  if compile_prog "" "" ; then
    :
 -elif compile_prog "" "-lrt" ; then
 +# we need pthread for static linking. use previous pthread test result
 +elif compile_prog "" "-lrt $pthread_lib" ; then
    LIBS="-lrt $LIBS"
 +  libs_qga="-lrt $libs_qga"
  fi
  
  if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \
@@@ -2738,9 -2709,6 +2738,9 @@@ EO
      if $pkg_config --atleast-version=0.12.0 spice-protocol >/dev/null 2>&1; then
          spice_qxl_io_monitors_config_async="yes"
      fi
 +    if $pkg_config --atleast-version=0.12.2 spice-protocol > /dev/null 2>&1; then
 +        spice_qxl_client_monitors_config="yes"
 +    fi
    else
      if test "$spice" = "yes" ; then
        feature_not_found "spice"
@@@ -2795,7 -2763,7 +2795,7 @@@ if test "$usb_redir" != "no" ; the
          usb_redir_cflags=$($pkg_config --cflags libusbredirparser 2>/dev/null)
          usb_redir_libs=$($pkg_config --libs libusbredirparser 2>/dev/null)
          QEMU_CFLAGS="$QEMU_CFLAGS $usb_redir_cflags"
-         LIBS="$LIBS $usb_redir_libs"
+         libs_softmmu="$libs_softmmu $usb_redir_libs"
      else
          if test "$usb_redir" = "yes"; then
              feature_not_found "usb-redir"
@@@ -3488,10 -3456,6 +3488,10 @@@ if test "$spice_qxl_io_monitors_config_
    echo "CONFIG_QXL_IO_MONITORS_CONFIG_ASYNC=y" >> $config_host_mak
  fi
  
 +if test "$spice_qxl_client_monitors_config" = "yes" ; then
 +  echo "CONFIG_QXL_CLIENT_MONITORS_CONFIG=y" >> $config_host_mak
 +fi
 +
  if test "$smartcard" = "yes" ; then
    echo "CONFIG_SMARTCARD=y" >> $config_host_mak
  fi
@@@ -3626,6 -3590,7 +3626,6 @@@ if test "$sparse" = "yes" ; the
    echo "HOST_CC      := REAL_CC=\"\$(HOST_CC)\" cgcc"  >> $config_host_mak
    echo "QEMU_CFLAGS  += -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-non-pointer-null" >> $config_host_mak
  fi
 -echo "HELPER_CFLAGS=$helper_cflags" >> $config_host_mak
  echo "LDFLAGS=$LDFLAGS" >> $config_host_mak
  echo "ARLIBS_BEGIN=$arlibs_begin" >> $config_host_mak
  echo "ARLIBS_END=$arlibs_end" >> $config_host_mak
  
  symlink "$source_path/Makefile.target" "$target_dir/Makefile"
  
 -
 -case "$target_arch2" in
 -  alpha | i386 | or32 | s390x | sparc* | x86_64 | xtensa* | ppc*)
 -    echo "CONFIG_TCG_PASS_AREG0=y" >> $config_target_mak
 -  ;;
 -esac
 -
  upper() {
      echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]'
  }
diff --combined trace-events
index b48fe2d15af088b85a9b35e38b65107de4878156,a58b0b71e3ecde9e841ea53697b2382f09d5070b..f5b50975526b47187f817cd0aa1fb03e061ec825
@@@ -243,9 -243,12 +243,12 @@@ usb_port_release(int bus, const char *p
  
  # hw/usb/hcd-ehci.c
  usb_ehci_reset(void) "=== RESET ==="
- usb_ehci_mmio_readl(uint32_t addr, const char *str, uint32_t val) "rd mmio %04x [%s] = %x"
- usb_ehci_mmio_writel(uint32_t addr, const char *str, uint32_t val) "wr mmio %04x [%s] = %x"
- usb_ehci_mmio_change(uint32_t addr, const char *str, uint32_t new, uint32_t old) "ch mmio %04x [%s] = %x (old: %x)"
+ usb_ehci_opreg_read(uint32_t addr, const char *str, uint32_t val) "rd mmio %04x [%s] = %x"
+ usb_ehci_opreg_write(uint32_t addr, const char *str, uint32_t val) "wr mmio %04x [%s] = %x"
+ usb_ehci_opreg_change(uint32_t addr, const char *str, uint32_t new, uint32_t old) "ch mmio %04x [%s] = %x (old: %x)"
+ usb_ehci_portsc_read(uint32_t addr, uint32_t port, uint32_t val) "rd mmio %04x [port %d] = %x"
+ usb_ehci_portsc_write(uint32_t addr, uint32_t port, uint32_t val) "wr mmio %04x [port %d] = %x"
+ usb_ehci_portsc_change(uint32_t addr, uint32_t port, uint32_t new, uint32_t old) "ch mmio %04x [port %d] = %x (old: %x)"
  usb_ehci_usbsts(const char *sts, int state) "usbsts %s %d"
  usb_ehci_state(const char *schedule, const char *state) "%s schedule %s"
  usb_ehci_qh_ptrs(void *q, uint32_t addr, uint32_t nxt, uint32_t c_qtd, uint32_t n_qtd, uint32_t a_qtd) "q %p - QH @ %08x: next %08x qtds %08x,%08x,%08x"
@@@ -932,9 -935,8 +935,9 @@@ qxl_interface_update_area_complete_rest
  qxl_interface_update_area_complete_overflow(int qid, int max) "%d max=%d"
  qxl_interface_update_area_complete_schedule_bh(int qid, uint32_t num_dirty) "%d #dirty=%d"
  qxl_io_destroy_primary_ignored(int qid, const char *mode) "%d %s"
 +qxl_io_log(int qid, const uint8_t *log_buf) "%d %s"
  qxl_io_read_unexpected(int qid) "%d"
 -qxl_io_unexpected_vga_mode(int qid, uint32_t io_port, const char *desc) "%d 0x%x (%s)"
 +qxl_io_unexpected_vga_mode(int qid, uint64_t addr, uint64_t val, const char *desc) "%d 0x%"PRIx64"=%"PRIu64" (%s)"
  qxl_io_write(int qid, const char *mode, uint64_t addr, uint64_t val, unsigned size, int async) "%d %s addr=%"PRIu64 " val=%"PRIu64" size=%u async=%d"
  qxl_memslot_add_guest(int qid, uint32_t slot_id, uint64_t guest_start, uint64_t guest_end) "%d %u: guest phys 0x%"PRIx64 " - 0x%" PRIx64
  qxl_post_load(int qid, const char *mode) "%d %s"
@@@ -965,7 -967,7 +968,7 @@@ qxl_spice_destroy_surfaces(int qid, in
  qxl_spice_destroy_surface_wait_complete(int qid, uint32_t id) "%d sid=%d"
  qxl_spice_destroy_surface_wait(int qid, uint32_t id, int async) "%d sid=%d async=%d"
  qxl_spice_flush_surfaces_async(int qid, uint32_t surface_count, uint32_t num_free_res) "%d s#=%d, res#=%d"
 -qxl_spice_monitors_config(int id) "%d"
 +qxl_spice_monitors_config(int qid) "%d"
  qxl_spice_loadvm_commands(int qid, void *ext, uint32_t count) "%d ext=%p count=%d"
  qxl_spice_oom(int qid) "%d"
  qxl_spice_reset_cursor(int qid) "%d"
@@@ -974,12 -976,6 +977,12 @@@ qxl_spice_reset_memslots(int qid) "%d
  qxl_spice_update_area(int qid, uint32_t surface_id, uint32_t left, uint32_t right, uint32_t top, uint32_t bottom) "%d sid=%d [%d,%d,%d,%d]"
  qxl_spice_update_area_rest(int qid, uint32_t num_dirty_rects, uint32_t clear_dirty_region) "%d #d=%d clear=%d"
  qxl_surfaces_dirty(int qid, int surface, int offset, int size) "%d surface=%d offset=%d size=%d"
 +qxl_send_events(int qid, uint32_t events) "%d %d"
 +qxl_set_guest_bug(int qid) "%d"
 +qxl_interrupt_client_monitors_config(int qid, int num_heads, void *heads) "%d %d %p"
 +qxl_client_monitors_config_unsupported_by_guest(int qid, uint32_t int_mask, void *client_monitors_config) "%d %X %p"
 +qxl_client_monitors_config_capped(int qid, int requested, int limit) "%d %d %d"
 +qxl_client_monitors_config_crc(int qid, unsigned size, uint32_t crc32) "%d %u %u"
  
  # hw/qxl-render.c
  qxl_render_blit_guest_primary_initialized(void) ""