1. 10 12月, 2013 18 次提交
  2. 28 11月, 2013 2 次提交
  3. 27 11月, 2013 2 次提交
  4. 26 11月, 2013 10 次提交
    • A
      Update version for v1.7.0-rc2 release · 7457fe95
      Anthony Liguori 提交于
      7457fe95
    • G
      curses: fixup SIGWINCH handler mess · 032ac6f8
      Gerd Hoffmann 提交于
      Don't run code in the signal handler, only set a flag.
      Use sigaction(2) to avoid non-portable signal(2) semantics.
      Make #ifdefs less messy.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Message-id: 1385130903-20531-1-git-send-email-kraxel@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      032ac6f8
    • S
      qga: Fix two format strings for MinGW · 16f4e8fa
      Stefan Weil 提交于
      Both code locations cause a compiler warning. Using "%s" instead of "%lu"
      would result in a program crash if the wrong code were executed.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Message-id: 1385409257-2522-1-git-send-email-sw@weilnetz.de
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      16f4e8fa
    • A
      PPC: BookE: Make FIT/WDT timers at best millisecond grained · 84dc96e1
      Alexander Graf 提交于
      The default granularity for the FIT timer on 440 is on every 0x1000th
      transition of TB from 0 to 1. Translated that means 48828 times a second.
      
      Since interrupts are quite expensive for 440 and we don't really care
      about the accuracy of the FIT to that significance, let's force FIT and
      WDT to at best millisecond granularity.
      
      This basically restores behavior as it was in QEMU 1.6, where timers
      could only deal with millisecond granularities at all.
      
      This patch greatly improves performance with the 440 target and restores
      roughly the same performance level that QEMU 1.6 had for me.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Message-id: 1385416015-22775-3-git-send-email-agraf@suse.de
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      84dc96e1
    • A
      PPC: Make BookE FIT/WDT timers more lazy · 455df3f3
      Alexander Graf 提交于
      Today we fire FIT and WDT timer events every time the respective bit
      position in TB flips from 0 -> 1.
      
      However, there is no need to do this if the end result would be that
      we're changing a TSR bit that is set to 1 to 1 again. No guest visible
      change would have occured.
      
      So whenever we see that the TSR bit to our timer is already set, don't
      even bother to update the timer that would potentially fire it off.
      
      However, we do need to make sure that we update our timer that notifies
      us of the TB flip when the respective TSR bit gets unset. In that case
      we do care about the flip and need to notify the guest again. So add
      a callback into our timer handlers when TSR bits get unset.
      
      This improves performance for me when the guest is busy processing things.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Message-id: 1385416015-22775-2-git-send-email-agraf@suse.de
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      455df3f3
    • M
      acpi-build: fix support for glib < 2.22 · 134d42d6
      Michael S. Tsirkin 提交于
      glib < 2.22 does not have g_array_get_element_size,
      limit it's use (to check all elements are 1 byte
      in size) to newer glib.
      
      This fixes build on RHEL 5.3.
      Reported-by: NRichard Henderson <rth@redhat.com>
      Reported-by: NErik Rull <erik.rull@rdsoftware.de>
      Tested-by: NRichard Henderson <rth@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-id: 20131125220039.GA16386@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      134d42d6
    • A
      Merge remote-tracking branch 'mst/tags/for_anthony' into staging · c0caec17
      Anthony Liguori 提交于
      pc very last minute fixes for 1.7
      
      This has a fix for a crasher bug with pci bridges,
      boot failure fix for s390 on 32 bit hosts,
      and fixes build for hosts with old glib.
      
      There's also a fix for --iasl configure flag - it can be used
      to work around broken iasl on some systems either
      by using a non-standard iasl or by disabling it.
      
      I've also reverted a e1000/rtl mac programming change
      that seems slightly wrong and too risky for 1.8.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Mon 25 Nov 2013 03:40:07 AM PST using RSA key ID D28D5469
      # gpg: Can't check signature: public key not found
      
      # By Michael S. Tsirkin (5) and Bandan Das (1)
      # Via Michael S. Tsirkin
      * mst/tags/for_anthony:
        configure: make --iasl option actually work
        Revert "e1000/rtl8139: update HMP NIC when every bit is written"
        acpi-build: fix build on glib < 2.14
        acpi-build: fix build on glib < 2.22
        pci: unregister vmstate_pcibus on unplug
        s390x: fix flat file load on 32 bit systems
      
      Message-id: 1385379990-32093-1-git-send-email-mst@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      c0caec17
    • A
      Merge remote-tracking branch 'bonzini/tags/for-anthony' into staging · d916adaa
      Anthony Liguori 提交于
      Here are a bunch of 1.7-tagged patches that I was afraid
      were getting forgotten or that did not have a clear maintainer responsible
      for making a pull request.
      
      # gpg: Signature made Thu 21 Nov 2013 08:40:59 AM PST using RSA key ID 9B4D86F2
      # gpg: Can't check signature: public key not found
      
      # By Peter Maydell (3) and others
      # Via Paolo Bonzini
      * bonzini/tags/for-anthony:
        qga: Fix compiler warnings (missing format attribute, wrong format strings)
        mips jazz: do not raise data bus exception when accessing invalid addresses
        target-i386: yield to another VCPU on PAUSE
        rng-egd: offset the point when repeatedly read from the buffer
        rng-egd: remove redundant free
        target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid()
        vfio-pci: Fix multifunction=on
        atomic.h: Fix build with clang
        pc: get rid of builtin pvpanic for "-M pc-1.5"
        configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
        sun4m: Add FCode ROM for TCX framebuffer
      
      Message-id: 1385052578-32352-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      d916adaa
    • A
      Merge remote-tracking branch 'mdroth/qga-pull-2013-11-22' into staging · 833637d4
      Anthony Liguori 提交于
      # By Tomoki Sekiyama
      # Via Michael Roth
      * mdroth/qga-pull-2013-11-22:
        qemu-ga: vss-win32: Install VSS provider COM+ application service
      
      Message-id: 1385154505-15145-1-git-send-email-mdroth@linux.vnet.ibm.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      833637d4
    • A
      Merge remote-tracking branch 'stefanha/net' into staging · 0ff1e1da
      Anthony Liguori 提交于
      # By Vlad Yasevich
      # Via Stefan Hajnoczi
      * stefanha/net:
        qdev-properties-system.c: Allow vlan or netdev for -device, not both
      
      Message-id: 1385118544-28482-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      0ff1e1da
  5. 24 11月, 2013 1 次提交
  6. 23 11月, 2013 1 次提交
  7. 22 11月, 2013 6 次提交
    • V
      qdev-properties-system.c: Allow vlan or netdev for -device, not both · 30c367ed
      Vlad Yasevich 提交于
      It is currently possible to specify things like:
      	-device e1000,netdev=foo,vlan=1
      With this usage, whichever argument was specified last (vlan or netdev)
      overwrites what was previousely set and results in a non-working
      configuration.  Even worse, when used with multiqueue devices,
      it causes a segmentation fault on exit in qemu_free_net_client.
      
      That patch treates the above command line options as invalid and
      generates an error at start-up.
      Signed-off-by: NVlad Yasevich <vyasevic@redhat.com>
      Acked-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      30c367ed
    • S
      qga: Fix compiler warnings (missing format attribute, wrong format strings) · d607a523
      Stefan Weil 提交于
      gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra):
      
        CC    qga/commands.o
      qga/commands.c: In function ‘slog’:
      qga/commands.c:28:5: error:
       function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
           g_logv("syslog", G_LOG_LEVEL_INFO, fmt, ap);
           ^
      
      gcc 4.8.2 reports this warning when slog is declared with the
      gnu_printf format attribute:
      
      qga/commands-posix.c: In function ‘qmp_guest_file_open’:
      qga/commands-posix.c:404:5: warning:
       format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int64_t’ [-Wformat=]
           slog("guest-file-open, handle: %d", handle);
           ^
      
      On 32 bit hosts there are three more warnings which are also fixed here.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      d607a523
    • H
      mips jazz: do not raise data bus exception when accessing invalid addresses · b6a06e72
      Hervé Poussineau 提交于
      MIPS Jazz chipset doesn't seem to raise data bus exceptions on invalid accesses.
      However, there is no easy way to prevent them. Creating a big memory region
      for the whole address space doesn't prevent memory core to directly call
      unassigned_mem_read/write which in turn call cpu->do_unassigned_access,
      which (for MIPS CPU) raise an data bus exception.
      
      This fixes a MIPS Jazz regression introduced in c658b94f.
      Signed-off-by: NHervé Poussineau <hpoussin@reactos.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      b6a06e72
    • P
      target-i386: yield to another VCPU on PAUSE · b5fc314b
      Paolo Bonzini 提交于
      After commit b1bbfe72 (aio / timers: On timer modification, qemu_notify
      or aio_notify, 2013-08-21) FreeBSD guests report a huge slowdown.
      
      The problem shows up as soon as FreeBSD turns out its periodic (~1 ms)
      tick, but the timers are only the trigger for a pre-existing problem.
      
      Before the offending patch, setting a timer did a timer_settime system call.
      
      After, setting the timer exits the event loop (which uses poll) and
      reenters it with a new deadline.  This does not cause any slowdown; the
      difference is between one system call (timer_settime and a signal
      delivery (SIGALRM) before the patch, and two system calls afterwards
      (write to a pipe or eventfd + calling poll again when re-entering the
      event loop).
      
      Unfortunately, the exit/enter causes the main loop to grab the iothread
      lock, which in turns kicks the VCPU thread out of execution.  This
      causes TCG to execute the next VCPU in its round-robin scheduling of
      VCPUS.  When the second VCPU is mostly unused, FreeBSD runs a "pause"
      instruction in its idle loop which only burns cycles without any
      progress.  As soon as the timer tick expires, the first VCPU runs
      the interrupt handler but very soon it sets it again---and QEMU
      then goes back doing nothing in the second VCPU.
      
      The fix is to make the pause instruction do "cpu_loop_exit".
      Reported-by: NLuigi Rizzo <rizzo@iet.unipi.it>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      b5fc314b
    • A
      rng-egd: offset the point when repeatedly read from the buffer · fbdcec5c
      Amos Kong 提交于
      The buffer content might be read out more than once, currently
      we just repeatedly read the first data block, buffer offset is
      missing.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      fbdcec5c
    • A
      rng-egd: remove redundant free · 60aad298
      Amos Kong 提交于
      We didn't set default chr_name, the free is redundant.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      60aad298