1. 01 10月, 2010 2 次提交
    • L
      Monitor: Rename the qemu-monitor.hx file · acd0a093
      Luiz Capitulino 提交于
      Let's be consistent and call it hmp-commands.hx, so that we have
      qmp-commands.hx for QMP and hmp-commands.hx for HMP.
      
      Please, note that this commit doesn't touch qemu-monitor.texi. All
      texi files have the qemu- prefix and I don't think it's worth
      changing that.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      acd0a093
    • L
      Monitor: Introduce the qmp-commands.hx file · 82a56f0d
      Luiz Capitulino 提交于
      This file contains a copy of the following information from the
      qemu-monitor.hx file:
      
          o QObject handlers entries
          o QMP documentation (all SQMP/EQMP sections)
      
      Right now it's only used to generate the QMP docs in QMP/, but
      next commits will turn this into QMP's command dispatch table.
      
      It's important to note that QObject handlers entries are going
      to get duplicated: they will exist in both QMP's and HMP's
      dispatch tables.
      
      This will be fixed in the near future, when we add a proper
      QMP call interface and HMP is converted to use it. This way we
      can completely drop QObject handlers entries from HMP's tables.
      
      NOTE: HMP specific constructions, like "q|quit", have been dropped.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      82a56f0d
  2. 27 9月, 2010 1 次提交
  3. 22 9月, 2010 1 次提交
    • A
      trace: Fix user emulator dependency on trace objects · 91f16900
      Andreas Färber 提交于
      On a clean build, after generating trace.h, make would recurse into *-*-user
      without a clue how to build ../trace.o (added to $(obj-y) in Makefile.target)
      since its generation rule is in the main Makefile.
      The softmmus are seemingly unaffected because the $(TOOLS), which each have
      a dependency on $(trace-obj-y), are built first for the build-all target.
      
      Add a dependency on $(trace-obj-y) for %-user, as done for the qemu-* tools.
      
      Let's be paranoid and do the same for %-softmmu while at it, just in case
      someone messes with $(TOOLS) or calls the Makefile target directly.
      Signed-off-by: NAndreas Färber <andreas.faerber@web.de>
      Acked-by: NStefan Weil <weil@mail.berlios.de>
      Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Cc: Prerna Saxena <prerna@linux.vnet.ibm.com>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Anthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      91f16900
  4. 10 9月, 2010 2 次提交
    • S
      trace: Add simple built-in tracing backend · 26f7227b
      Stefan Hajnoczi 提交于
      This patch adds a simple tracer which produces binary trace files.  To
      try out the simple backend:
      
      $ ./configure --trace-backend=simple
      $ make
      
      After running QEMU you can pretty-print the trace:
      
      $ ./simpletrace.py trace-events trace.log
      
      The output of simpletrace.py looks like this:
      
        qemu_realloc 0.699 ptr=0x24363f0 size=0x3 newptr=0x24363f0
        qemu_free 0.768 ptr=0x24363f0
        ^           ^---- timestamp delta (us)
        |____ trace event name
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      
      trace: Make trace record fields 64-bit
      
      Explicitly use 64-bit fields in trace records so that timestamps and
      magic numbers work for 32-bit host builds.
      
      Includes fixes from Prerna Saxena <prerna@linux.vnet.ibm.com>.
      Signed-off-by: NPrerna Saxena <prerna@linux.vnet.ibm.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      26f7227b
    • S
      trace: Add trace-events file for declaring trace events · 94a420b1
      Stefan Hajnoczi 提交于
      This patch introduces the trace-events file where trace events can be
      declared like so:
      
      qemu_malloc(size_t size) "size %zu"
      qemu_free(void *ptr) "ptr %p"
      
      These trace event declarations are processed by a new tool called
      tracetool to generate code for the trace events.  Trace event
      declarations are independent of the backend tracing system (LTTng User
      Space Tracing, ftrace markers, DTrace).
      
      The default "nop" backend generates empty trace event functions.
      Therefore trace events are disabled by default.
      
      The trace-events file serves two purposes:
      
      1. Adding trace events is easy.  It is not necessary to understand the
         details of a backend tracing system.  The trace-events file is a
         single location where trace events can be declared without code
         duplication.
      
      2. QEMU is not tightly coupled to one particular backend tracing system.
         In order to support tracing across QEMU host platforms and to
         anticipate new backend tracing systems that are currently maturing,
         it is important to be flexible and not tied to one system.
      
      This commit includes fixes from Prerna Saxena
      <prerna@linux.vnet.ibm.com> and Blue Swirl <blauwirbel@gmail.com>.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      94a420b1
  5. 27 7月, 2010 1 次提交
  6. 12 7月, 2010 2 次提交
  7. 02 7月, 2010 1 次提交
  8. 02 6月, 2010 4 次提交
  9. 22 5月, 2010 1 次提交
    • S
      Fix tarbin Makefile rule · 4c0a6db0
      Stuart Brady 提交于
      The 'tarbin' Makefile rule doesn't include qemu-system-sparc64, but
      should do, now that sparc64-softmmu is in the default target list.
      
      The rule attempts to tar up binaries that were not built if a target
      list was passed to the configure script -- in which case, it will
      either fail, or otherwise include binaries from previous builds.
      
      Fix both problems once and for all by building a list of binaries to
      include in the tarball, using the list of targets to be built.
      Signed-off-by: NStuart Brady <sdb@zubnet.me.uk>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      4c0a6db0
  10. 19 5月, 2010 1 次提交
  11. 04 5月, 2010 1 次提交
  12. 28 4月, 2010 1 次提交
  13. 27 3月, 2010 1 次提交
  14. 21 3月, 2010 1 次提交
  15. 13 3月, 2010 1 次提交
  16. 07 3月, 2010 1 次提交
  17. 05 3月, 2010 1 次提交
  18. 27 2月, 2010 1 次提交
  19. 23 2月, 2010 1 次提交
    • J
      Add cpu model configuration support.. · b5ec5ce0
      john cooper 提交于
      This is a reimplementation of prior versions which adds
      the ability to define cpu models for contemporary processors.
      The added models are likewise selected via -cpu <name>,
      and are intended to displace the existing convention
      of "-cpu qemu64" augmented with a series of feature flags.
      
      A primary motivation was determination of a least common
      denominator within a given processor class to simplify guest
      migration.  It is still possible to modify an arbitrary model
      via additional feature flags however the goal here was to
      make doing so unnecessary in typical usage.  The other
      consideration was providing models names reflective of
      current processors.  Both AMD and Intel have reviewed the
      models in terms of balancing generality of migration vs.
      excessive feature downgrade relative to released silicon.
      
      This version of the patch replaces the prior hard wired
      definitions with a configuration file approach for new
      models.  Existing models are thus far left as-is but may
      easily be transitioned to (or may be overridden by) the
      configuration file representation.
      
      Proposed new model definitions are provided here for current
      AMD and Intel processors.  Each model consists of a name
      used to select it on the command line (-cpu <name>), and a
      model_id which corresponds to a least common denominator
      commercial instance of the processor class.
      
      A table of names/model_ids may be queried via "-cpu ?model":
      
              :
          x86       Opteron_G3  AMD Opteron 23xx (Gen 3 Class Opteron)
          x86       Opteron_G2  AMD Opteron 22xx (Gen 2 Class Opteron)
          x86       Opteron_G1  AMD Opteron 240 (Gen 1 Class Opteron)
          x86          Nehalem  Intel Core i7 9xx (Nehalem Class Core i7)
          x86           Penryn  Intel Core 2 Duo P9xxx (Penryn Class Core 2)
          x86           Conroe  Intel Celeron_4x0 (Conroe/Merom Class Core 2)
              :
      
      Also added is "-cpu ?dump" which exhaustively outputs all config
      data for all defined models, and "-cpu ?cpuid" which enumerates
      all qemu recognized CPUID feature flags.
      
      The pseudo cpuid flag 'check' when added to the feature flag list
      will warn when feature flags (either implicit in a cpu model or
      explicit on the command line) would have otherwise been quietly
      unavailable to a guest:
      
          # qemu-system-x86_64 ... -cpu Nehalem,check
          warning: host cpuid 0000_0001 lacks requested flag 'sse4.2|sse4_2' [0x00100000]
          warning: host cpuid 0000_0001 lacks requested flag 'popcnt' [0x00800000]
      
      A similar 'enforce' pseudo flag exists which in addition
      to the above causes qemu to error exit if requested flags are
      unavailable.
      
      Configuration data for a cpu model resides in the target config
      file which by default will be installed as:
      
          /usr/local/etc/qemu/target-<arch>.conf
      
      The format of this file should be self explanatory given the
      definitions for the above six models and essentially mimics
      the structure of the static x86_def_t x86_defs.
      
      Encoding of cpuid flags names now allows aliases for both the
      configuration file and the command line which reconciles some
      Intel/AMD/Linux/Qemu naming differences.
      
      This patch was tested relative to qemu.git.
      Signed-off-by: Njohn cooper <john.cooper@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b5ec5ce0
  20. 11 2月, 2010 1 次提交
    • S
      Documentation: Add build support for documentation in pdf format · 20cc9997
      Stefan Weil 提交于
      Makefile already supported dvi, html and info formats,
      but pdf was missing.
      
      pdf is especially convenient for printing and for
      documentation reviews. I hope it will help to
      improve qemu's documentation.
      
      Make now supports the new target 'pdf' which will
      create qemu-doc.pdf and qemu-tech.pdf. It is also
      possible to build both files individually.
      
      texi2pdf and texi2dvi are rather noisy, so normally
      some less important warnings are suppressed.
      When make is called with V=1 (verbose mode),
      warnings are not suppressed.
      
      The patch also sorts the documentation targets
      alphabetically and wraps a line which was too long.
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      20cc9997
  21. 04 2月, 2010 1 次提交
  22. 27 1月, 2010 1 次提交
  23. 21 1月, 2010 1 次提交
  24. 15 1月, 2010 1 次提交
  25. 09 1月, 2010 2 次提交
  26. 08 1月, 2010 3 次提交
    • S
      Makefile: Update unmodified config-devices.mak automatically · 012f0879
      Stefan Weil 提交于
      This makes rebuilds after source updates easier
      for most users (who don't edit config-devices.mak).
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      012f0879
    • P
      Use vpath directive · 076d2471
      Paolo Bonzini 提交于
      The vpath directive has two advantages over the VPATH variable:
      1) it allows to skip searching of .o files; 2) the default semantics
      are to append to the vpath, so there is no confusion between "VPATH=xyz"
      and "VPATH+=xyz".
      
      Since "vpath %.c %.h PATH" is not valid, I'm introducing a wrapper
      macro to append one or more directories to the vpath.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      076d2471
    • A
      Drop --whole-archive and static libraries · 0e8c9214
      Andreas Färber 提交于
      Juan has contributed a cool Makefile infrastructure that enables us to drop
      static libraries completely:
      
      Move shared obj-y definitions to Makefile.objs, prefixed {common-,hw-,user-},
      and link those object files directly into the executables.
      
      Replace HWLIB by HWDIR, specifying only the directory.
      
      Drop --whole-archive and ARLIBS in Makefiles and configure.
      
      Drop GENERATED_HEADERS dependency in rules.mak, since this rebuilds all
      common objects after generating a target-specific header; add dependency
      rules to Makefile and Makefile.target instead.
      
      v2:
      - Don't try to include /config.mak for user emulators
      - Changes to user object paths ("Quickfix for libuser.a drop") were obsoleted
        by "user_only: compile everything with -fpie" (Kirill A. Shutemov)
      
      v3:
      - Fix dependency modelling for tools
      - Remove comment on GENERATED_HEADERS obsoleted by this patch
      Signed-off-by: NAndreas Färber <afaerber@opensolaris.org>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Palle Lyckegaard <palle@lyckegaard.dk>
      Cc: Ben Taylor <bentaylor.solx86@gmail.com>
      Cc: Juan Quintela <quintela@trasno.org>
      Cc: Kirill A. Shutemov <kirill@shutemov.name>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      0e8c9214
  27. 18 12月, 2009 1 次提交
  28. 12 12月, 2009 4 次提交