1. 23 8月, 2011 1 次提交
    • S
      block: add cache=directsync parameter to -drive · 92196b2f
      Stefan Hajnoczi 提交于
      This patch adds -drive cache=directsync for O_DIRECT | O_SYNC host file
      I/O with no disk write cache presented to the guest.
      
      This mode is useful when guests may not be sending flushes when
      appropriate and therefore leave data at risk in case of power failure.
      When cache=directsync is used, write operations are only completed to
      the guest when data is safely on disk.
      
      This new mode is like cache=writethrough but it bypasses the host page
      cache.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      92196b2f
  2. 29 7月, 2011 1 次提交
    • W
      showing a splash picture when start · 3d3b8303
      wayne 提交于
          Added options to let qemu transfer two configuration files to bios:
      "bootsplash.bmp" and "etc/boot-menu-wait", which could be specified by command
          -boot splash=P,splash-time=T
      P is jpg/bmp file name or an absolute path, T have a max value of 0xffff, unit
      is ms. With these two options, if user invoke qemu with menu=on option, then
      a splash picture would be showed in a given time. For example:
          qemu -boot menu=on,splash=/root/boot.bmp,splash-time=5000
      would make boot.bmp shown as a brand with 5 seconds in the booting up process.
      This feature need the new seabios's support, which could be got from git.
      Signed-off-by: NWayne Xia <xiawenc@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      3d3b8303
  3. 23 7月, 2011 1 次提交
  4. 19 7月, 2011 1 次提交
  5. 06 6月, 2011 3 次提交
    • G
      qemu-config: comment spell fix · 44bd6907
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      44bd6907
    • M
      spice: add SASL support · 48b3ed0a
      Marc-André Lureau 提交于
      Turn on SASL support by appending "sasl" to the spice arguments, which
      requires that the client use SASL to authenticate with the spice.  The
      exact choice of authentication method used is controlled from the
      system / user's SASL configuration file for the 'qemu' service. This
      is typically found in /etc/sasl2/qemu.conf. If running QEMU as an
      unprivileged user, an environment variable SASL_CONF_PATH can be used
      to make it search alternate locations for the service config.  While
      some SASL auth methods can also provide data encryption (eg GSSAPI),
      it is recommended that SASL always be combined with the 'tls' and
      'x509' settings to enable use of SSL and server certificates. This
      ensures a data encryption preventing compromise of authentication
      credentials.
      
      It requires support from spice 0.8.1.
      
      [ kraxel: moved spell fix to separate commit ]
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      48b3ed0a
    • H
      spice: add option for disabling copy paste support · d4970b07
      Hans de Goede 提交于
      Some people want to be able disable spice's guest <-> client copy paste support
      because of security considerations.
      
      [ kraxel: drop old-version error message ]
      d4970b07
  6. 08 5月, 2011 1 次提交
    • A
      Introduce -machine command option. · 303d4e86
      Anthony PERARD 提交于
      This option gives the ability to switch one "accelerator" like kvm, xen
      or the default one tcg. We can specify more than one accelerator by
      separate them by a colon. QEMU will try each one and use the first whose
      works.
      
      So,
      ./qemu -machine accel=xen:kvm:tcg
      
      which would try Xen support first, then KVM and finally TCG if none of
      the other works.
      
      By default, QEMU will use TCG. But we can specify another default in the
      global configuration file.
      Signed-off-by: NAnthony PERARD <anthony.perard@citrix.com>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      303d4e86
  7. 16 4月, 2011 1 次提交
  8. 24 1月, 2011 1 次提交
    • A
      spice: add chardev (v5) · cbcc6336
      Alon Levy 提交于
      Adding a chardev backend for spice, where spice determines what
      to do with it based on the name attribute given during chardev creation.
      For usage by spice vdagent in conjunction with a properly named
      virtio-serial device, and future smartcard channel usage.
      
      Example usage:
       qemu -device virtio-serial -chardev spicevmc,name=vdagent,id=vdagent \
       -device virtserialport,chardev=vdagent,name=com.redhat.spice.0
      
      v4->v5:
       * add tracing events
       * fix missing comma
       * fix help string to show debug is optional
      
      v3->v4:
       * updated commit message
      
      v1->v3 changes: (v2 had a wrong commit message)
       * removed spice-qemu-char.h, folded into ui/qemu-spice.h
       * removed dead IOCTL code
       * removed comment
       * removed ifdef CONFIG_SPICE from qemu-config.c and qemu-options.hx help.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      cbcc6336
  9. 12 12月, 2010 1 次提交
  10. 08 10月, 2010 5 次提交
  11. 01 10月, 2010 1 次提交
  12. 22 9月, 2010 1 次提交
    • G
      spice: core bits · 29b0040b
      Gerd Hoffmann 提交于
      Add -spice command line switch.  Has support setting passwd and port for
      now.  With this patch applied the spice client can successfully connect
      to qemu.  You can't do anything useful yet though.
      29b0040b
  13. 10 9月, 2010 1 次提交
  14. 04 9月, 2010 1 次提交
  15. 23 8月, 2010 2 次提交
  16. 19 8月, 2010 1 次提交
  17. 23 6月, 2010 1 次提交
  18. 27 5月, 2010 1 次提交
    • A
      Add cache=unsafe parameter to -drive · 016f5cf6
      Alexander Graf 提交于
      Usually the guest can tell the host to flush data to disk. In some cases we
      don't want to flush though, but try to keep everything in cache.
      
      So let's add a new cache value to -drive that allows us to set the cache
      policy to most aggressive, disabling flushes. We call this mode "unsafe",
      as guest data is not guaranteed to survive host crashes anymore.
      
      This patch also adds a noop function for aio, so we can do nothing in AIO
      fashion.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      016f5cf6
  19. 25 5月, 2010 1 次提交
  20. 04 5月, 2010 2 次提交
  21. 23 4月, 2010 3 次提交
  22. 19 4月, 2010 1 次提交
  23. 17 3月, 2010 2 次提交
  24. 16 3月, 2010 4 次提交
  25. 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
  26. 12 12月, 2009 1 次提交