1. 28 11月, 2013 3 次提交
  2. 26 11月, 2013 22 次提交
  3. 24 11月, 2013 1 次提交
  4. 23 11月, 2013 1 次提交
  5. 22 11月, 2013 13 次提交
    • 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
    • P
      target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid() · 2140cfa5
      Peter Maydell 提交于
      Fix build failures with clang when KVM is not enabled by
      providing a stub version of kvm_arch_get_supported_cpuid().
      We retain the compile time check that this function isn't
      called when CONFIG_KVM is not set by guarding the stub with
      ifndef __OPTIMIZE__ (we assume that an optimizing build will
      do sufficient constant folding and dead code elimination to
      remove the calls before linking).
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      2140cfa5
    • A
      vfio-pci: Fix multifunction=on · 8d07d6c4
      Alex Williamson 提交于
      When an assigned device is initialized it copies the device config
      space into the emulated config space.  Unfortunately multifunction is
      setup prior to the device initfn and gets clobbered.  We need to
      restore it just like pci-assign does.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      8d07d6c4
    • P
      atomic.h: Fix build with clang · 392a4d5b
      Peter Maydell 提交于
      clang defines __ATOMIC_SEQ_CST but its implementation of the
      __atomic_exchange() builtin differs from that of gcc. Move the
      __clang__ branch of the ifdef ladder to the top and fix its
      implementation (there is no such builtin as __sync_exchange),
      so we can compile with clang again.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      392a4d5b
    • P
      pc: get rid of builtin pvpanic for "-M pc-1.5" · 7839ff59
      Paolo Bonzini 提交于
      This causes two slight backwards-incompatibilities between "-M pc-1.5"
      and 1.5's "-M pc":
      
      (1) a fw_cfg file is removed with this patch.  This is only a problem
      if migration stops the virtual machine exactly during fw_cfg enumeration.
      
      (2) after migration, a VM created without an explicit "-device pvpanic"
      will stop reporting panics to management.
      
      The first problem only occurs if migration is done at a very, very
      early point (and I'm not sure it can happen in practice for reasonable-size
      VMs, since it will likely take more time to send the RAM to destination,
      than it will take for BIOS to scan fw_cfg).
      
      The second problem only occurs if the guest panics _and_ has a guest
      driver _and_ management knows to look at the crash event, so it is
      mostly theoretical at this point in time.
      
      Thus keep the code simple, and pretend it was never broken.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7839ff59
    • P
      configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0 · 45d285ab
      Peter Maydell 提交于
      Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
      explicitly specifying everything and not relying on any default
      variables or rules. However we were accidentally relying on the
      default ARFLAGS ("rv"). This went unnoticed because of a bug in
      GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
      only affected submakes, not the currently running instance.
      Explicitly set ARFLAGS in config-host.mak, in the same way we
      handle CFLAGS and LDFLAGS; this will allow us to work with
      Make 4.0.
      
      Thanks to Paul Smith for analyzing this bug for us.
      
      Cc: qemu-stable@nongnu.org
      Reported-by: NKen Moffat <zarniwhoop@ntlworld.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      45d285ab
    • M
      sun4m: Add FCode ROM for TCX framebuffer · da87dd7b
      Mark Cave-Ayland 提交于
      Upstream OpenBIOS now implements SBus probing in order to determine the
      contents of a physical bus slot, which is required to allow OpenBIOS to
      identify the framebuffer without help from the fw_cfg interface.
      
      SBus probing works by detecting the presence of an FCode program
      (effectively tokenised Forth) at the base address of each slot, and if
      present executes it so that it creates its own device node in the
      OpenBIOS device tree.
      
      The FCode ROM is generated as part of the OpenBIOS build and should
      generally be updated at the same time.
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      CC: Blue Swirl <blauwirbel@gmail.com>
      CC: Bob Breuer <breuerr@mc.net>
      CC: Artyom Tarasenko <atar4qemu@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      da87dd7b
    • A
      Update version for 1.7.0-rc1 release · 607bb022
      Anthony Liguori 提交于
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      607bb022