1. 09 6月, 2012 4 次提交
    • S
      w32: Fix broken build (missing include file) · bbbc0e24
      Stefan Weil 提交于
      dump.c was recently added to the code. It unconditionally
      includes sys/procfs which is not available with MinGW (w32, w64).
      
      It looks like this file is not needed at all (tested on Linux),
      so I removed it completely.
      
      Some other include statements are also redundant because they are
      already included in qemu-common, therefore they were removed, too.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      bbbc0e24
    • M
      do not include <libutil.h> needlessly or if it doesn't exist · 3294ce18
      Michael Tokarev 提交于
      <libutil.h> and <util.h> on *BSD (some have one, some another)
      were #included just for openpty() declaration.  The only file
      where this function is actually used is qemu-char.c.
      
      In vl.c and net/tap-bsd.c, none of functions declared in libutil.h
      (login logout logwtmp timdomain openpty forkpty uu_lock realhostname
      fparseln and a few others depending on version) are used.
      
      Initially the code which is currently in qemu-char.c was in vl.c,
      it has been removed into separate file in commit 0e82f34d
      Fri Oct 31 18:44:40 2008, but the #includes were left in vl.c.
      So with vl.c, we just remove includes - libutil.h, util.h and
      pty.h (which declares only openpty() and forkpty()) from there.
      
      The code in net/tap-bsd.c, which come from net/tap.c, had this
      
      commit 5281d757
      Author: Mark McLoughlin <markmc@redhat.com>
      Date:   Thu Oct 22 17:49:07 2009 +0100
      
          net: split all the tap code out into net/tap.c
      
      Note this commit not only moved stuff out of net.c to net/tap.c,
      but also rewrote large portions of the tap code, and added these
      completely unnecessary #includes -- as usual, I question why such
      a misleading commit messages are allowed.
      
      Again, no functions defined in libutil.h or util.h on *BSD are
      used by neither net/tap.c nor net/tap-bsd.c.  Removing them.
      
      And finally, the only real user for these #includes, qemu-char.c,
      which actually uses openpty().  There, the #ifdef logic is wrong.
      A GLIBC-based system has <pty.h>, even if it is a variant of *BSD.
      So __GLIBC__ should be checked first, and instead of trying to
      include <libutil.h> or <util.h>, we include <pty.h>.  If it is not
      GLIBC-based, we check for variations between <*util.h> as before.
      
      This patch fixes build of qemu 1.1 on Debian/kFreebsd (well, one
      of the two problems): it is a distribution with a FreeBSD kernel,
      so it #defines at least __FreeBSD_kernel__, but since it is based
      on GLIBC, it has <pty.h>, but current version does not have neither
      <util.h> nor <libutil.h>, which the code tries to include 3 times
      but uses only once.
      Signed-off-By: NMichael Tokarev <mjt@tls.msk.ru>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      3294ce18
    • A
      target-ppc: Unbreak kvm_ppc.c build · 7c760cbc
      Andreas Färber 提交于
      The file is located in target-ppc/, not hw/.
      Signed-off-by: NAndreas Färber <andreas.faerber@web.de>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Anthony Liguori <anthony@codemonkey.ws>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      7c760cbc
    • S
      dump: Fix build breakage (missing sys/procfs.h) · 7baa8207
      Stefan Weil 提交于
      sys/procfs is not available everywhere (MingW does not have it).
      
      Remove this and more unused or redundant include statements.
      This fixes the broken build.
      
      qerror.h was previously included indirectly.
      Add an explicit include statement for it because it is needed.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      7baa8207
  2. 07 6月, 2012 31 次提交
  3. 06 6月, 2012 4 次提交
    • A
      Merge remote-tracking branch 'qmp/queue/qmp' into staging · 34941700
      Anthony Liguori 提交于
      * qmp/queue/qmp: (29 commits)
        Add 'query-events' command to QMP to query async events
        qapi: convert netdev_del
        qapi: convert netdev_add
        net: net_client_init(): use error_set()
        net: purge the monitor object from all init functions
        qemu-config: introduce qemu_find_opts_err()
        qemu-config: find_list(): use error_set()
        qerror: introduce QERR_INVALID_OPTION_GROUP
        qemu-option: qemu_opts_from_qdict(): use error_set()
        qemu-option: introduce qemu_opt_set_err()
        qemu-option: opt_set(): use error_set()
        qemu-option: qemu_opts_validate(): use error_set()
        qemu-option: qemu_opt_parse(): use error_set()
        qemu-option: parse_option_size(): use error_set()
        qemu-option: parse_option_bool(): use error_set()
        qemu-option: parse_option_number(): use error_set()
        qemu-option: qemu_opts_create(): use error_set()
        introduce a new monitor command 'dump-guest-memory' to dump guest's memory
        make gdb_id() generally avialable and rename it to cpu_index()
        target-i386: Add API to get note's size
        ...
      34941700
    • A
      Merge remote-tracking branch 'afaerber-or/qom-cpu-3' into staging · e1ae9a7a
      Anthony Liguori 提交于
      * afaerber-or/qom-cpu-3: (74 commits)
        Kill off cpu_state_reset()
        linux-user: Use cpu_reset() after cpu_init() / cpu_copy()
        bsd-user: Use cpu_reset() in after cpu_init()
        leon3: Store SPARCCPU in ResetData
        leon3: Use cpu_sparc_init() to obtain SPARCCPU
        sun4u: Store SPARCCPU in ResetData
        sun4u: Let cpu_devinit() return SPARCCPU
        sun4u: Use cpu_sparc_init() to obtain SPARCCPU
        sun4m: Pass SPARCCPU to {main,secondary}_cpu_reset()
        sun4m: Use cpu_sparc_init() to obtain SPARCCPU
        target-sparc: Let cpu_sparc_init() return SPARCCPU
        cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC
        virtex_ml507: Pass PowerPCCPU to main_cpu_reset()
        virtex_ml507: Let ppc440_init_xilinx() return PowerPCCPU
        virtex_ml507: Use cpu_ppc_init() to obtain PowerPCCPU
        ppc_prep: Pass PowerPCCPU to ppc_prep_reset()
        ppc_prep: Use cpu_ppc_init() to obtain PowerPCCPU
        ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset()
        ppc_oldworld: Use cpu_ppc_init() to obtain PowerPCCPU
        ppc_newworld: Pass PowerPCCPU to ppc_core99_reset()
        ...
      e1ae9a7a
    • A
      Merge remote-tracking branch 'qemu-kvm/uq/master' into staging · 6e72ae46
      Anthony Liguori 提交于
      * qemu-kvm/uq/master:
        kvm: Fix build for non-CAP_IRQ_ROUTING targets
      6e72ae46
    • J
      kvm: Fix build for non-CAP_IRQ_ROUTING targets · d3d3bef0
      Jan Kiszka 提交于
      A type definition and a KVMState field initialization escaped the
      required wrapping with KVM_CAP_IRQ_ROUTING. Also, we need to provide a
      dummy kvm_irqchip_release_virq as virtio-pci references (but does not
      use) it.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Acked-by: NBen Collins <bcollins@ubuntu.com>
      Tested-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      d3d3bef0
  4. 05 6月, 2012 1 次提交