1. 05 10月, 2009 2 次提交
  2. 11 9月, 2009 1 次提交
    • G
      switch chardev to QemuOpts: infrastructure, null device · 191bc01b
      Gerd Hoffmann 提交于
      start switching chardevs to QemuOpts.  This patch adds the
      infrastructure and converts the null device.
      
      The patch brings two new functions:
      
      qemu_chr_open_opts()
      	same as qemu_chr_open(), but uses QemuOpts instead of a
      	option char string.
      
      qemu_chr_parse_compat()
      	accepts a traditional chardev option string, returns the
      	corresponding QemuOpts instance, to handle backward
      	compatibility.
      
      The patch also adds a new -chardev switch which can be used to create
      named+unconnected chardevs, like this:
      
      	-chardev null,id=test
      
      This uses the new qemu_chr_open_opts.  Thus with this patch alone only
      the null device works.  The other devices will follow ...
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      191bc01b
  3. 04 9月, 2009 1 次提交
  4. 28 8月, 2009 1 次提交
    • C
      raw-posix: add Linux native AIO support · 5c6c3a6c
      Christoph Hellwig 提交于
      Now that do have a nicer interface to work against we can add Linux native
      AIO support.  It's an extremly thing layer just setting up an iocb for
      the io_submit system call in the submission path, and registering an
      eventfd with the qemu poll handler to do complete the iocbs directly
      from there.
      
      This started out based on Anthony's earlier AIO patch, but after
      estimated 42,000 rewrites and just as many build system changes
      there's not much left of it.
      
      To enable native kernel aio use the aio=native sub-command on the
      drive command line.  I have also added an option to qemu-io to
      test the aio support without needing a guest.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      5c6c3a6c
  5. 24 8月, 2009 2 次提交
    • A
      Make the e1000 the default network adapter for the pc target. · 0d6b0b1d
      Anthony Liguori 提交于
      The ne2k is an ancient card that performs pretty terribly under QEMU.  In many
      modern OSes, there is no longer drivers available for the ne2k.
      
      Switch the default network adapter to e1000.  This card is more widely
      suppported and performs rather well under QEMU.  There may be very old OSes
      that had a ne2k driver but not an e1000 driver but I think this is likely the
      exception.
      
      I think the average user is better served with an e1000 vs ne2k.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0d6b0b1d
    • A
      Unbreak large mem support by removing kqemu · 4a1418e0
      Anthony Liguori 提交于
      kqemu introduces a number of restrictions on the i386 target.  The worst is that
      it prevents large memory from working in the default build.
      
      Furthermore, kqemu is fundamentally flawed in a number of ways.  It relies on
      the TSC as a time source which will not be reliable on a multiple processor
      system in userspace.  Since most modern processors are multicore, this severely
      limits the utility of kqemu.
      
      kvm is a viable alternative for people looking to accelerate qemu and has the
      benefit of being supported by the upstream Linux kernel.  If someone can
      implement work arounds to remove the restrictions introduced by kqemu, I'm
      happy to avoid and/or revert this patch.
      
      N.B. kqemu will still function in the 0.11 series but this patch removes it from
      the 0.12 series.
      
      Paul, please Ack or Nack this patch.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4a1418e0
  6. 11 8月, 2009 1 次提交
  7. 28 7月, 2009 1 次提交
  8. 27 7月, 2009 1 次提交
  9. 16 7月, 2009 1 次提交
  10. 10 7月, 2009 4 次提交
    • A
      Disable kqemu by default at run time · 52249f0f
      Anthony Liguori 提交于
       -no-kqemu -> -enable-kqemu
      
      kqemu is still present at compile time by default
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      52249f0f
    • A
      Allow setting qemu process name v2 · 1889465a
      Andi Kleen 提交于
      Set the Linux process name to the name argument specified with name. I find
      this useful to see which guests are taking CPU time in top.
      
      This doesn't affect ps, which checks argv[0], but rewriting the
      environment uses much more code, so I only used this simple way.
      
      v2: Use separate process= argument, no prefixes.
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      1889465a
    • K
      qcow2: Make cache=writethrough default · 0aa217e4
      Kevin Wolf 提交于
      The performance of qcow2 has improved meanwhile, so we don't need to
      special-case it any more. Switch the default to write-through caching
      like all other block drivers.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0aa217e4
    • M
      net: set a default value for sndbuf= · fc5b81d1
      Mark McLoughlin 提交于
      On reflection, perhaps it does make sense to set a default value for
      the sndbuf= tap parameter.
      
      For best effect, sndbuf= should be set to just below the capacity of
      the physical NIC.
      
      Setting it higher will cause packets to be dropped before the limit
      is hit. Setting it much lower will not cause any problems unless
      you set it low enough such that the guest cannot queue up new packets
      before the NIC has emptied its queue.
      
      In Linux, txqueuelen=1000 by default for ethernet NICs. Given a 1500
      byte MTU, 1Mb is a good choice for sndbuf.
      
      If it turns out that txqueuelen is actually much lower than this, then
      sndbuf is essentially disabled. In the event that txqueuelen is much
      higher, it's unlikely that the NIC will be able to empty a 1Mb queue.
      
      Thanks to Herbert Xu for this logic.
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      Cc: Herbert Xu <herbert.xu@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      fc5b81d1
  11. 30 6月, 2009 2 次提交
  12. 29 6月, 2009 3 次提交
  13. 24 6月, 2009 1 次提交
  14. 22 6月, 2009 3 次提交
    • M
      net: add '-net tap,sndbuf=nbytes' · 0df0ff6d
      Mark McLoughlin 提交于
      2.6.30 adds a new TUNSETSNDBUF ioctl() which allows a send buffer limit
      for the tap device to be specified. When this limit is reached, a tap
      write() will return EAGAIN and poll() will indicate the fd isn't
      writable.
      
      This allows people to tune their setups so as to avoid e.g. UDP packet
      loss when the sending application in the guest out-runs the NIC in the
      host.
      
      There is no obviously sensible default setting - a suitable value
      depends mostly on the capabilities of the physical NIC through which the
      packets are being sent.
      
      Also, note that when using a bridge with netfilter enabled, we currently
      never get EAGAIN because netfilter causes the packet to be immediately
      orphaned. Set /proc/sys/net/bridge/bridge nf-call-iptables to zero to
      disable this behaviour.
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0df0ff6d
    • M
      Support addr=... in option argument of -drive if=virtio · c2cc47a4
      Markus Armbruster 提交于
      Make drive_init() accept addr=, put the value into struct DriveInfo.
      Use it in all the places that create virtio-blk-pci devices:
      pc_init1(), bamboo_init(), mpc8544ds_init().
      
      Don't support addr= in third argument of monitor command pci_add and
      second argument of drive_add, because that clashes with their first
      arguments.  Admittedly unelegant.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c2cc47a4
    • M
      Support addr=... in option argument of -net nic · 5607c388
      Markus Armbruster 提交于
      Make net_client_init() accept addr=, put the value into struct
      NICinfo.  Use it in pci_nic_init(), and remove arguments bus and
      devfn.
      
      Don't support addr= in third argument of monitor command pci_add,
      because that clashes with its first argument.  Admittedly unelegant.
      
      Machines "malta" and "r2d" have a default NIC with a well-known PCI
      address.  Deal with that the same way as the NIC model: make
      pci_nic_init() take an optional default to be used when the user
      doesn't specify one.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      5607c388
  15. 14 6月, 2009 1 次提交
  16. 10 6月, 2009 1 次提交
  17. 04 5月, 2009 1 次提交
  18. 01 5月, 2009 1 次提交
  19. 22 4月, 2009 5 次提交
  20. 19 4月, 2009 1 次提交
  21. 18 4月, 2009 1 次提交
    • A
      qemu: Add support for SMBIOS command line otions (Alex Williamson) · b6f6e3d3
      aliguori 提交于
      Create a new -smbios option (x86-only) to allow binary SMBIOS entries
      to be passed through to the BIOS or modify the default values of
      individual fields of type 0 and 1 entries on the command line.
      
      Binary SMBIOS entries can be generated as follows:
      
      dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | \
              perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin
      
      These can then be passed to the BIOS using this switch:
      
       -smbios file=smbios_type_1.bin
      
      Command line generation supports the following syntax:
      
       -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d]
       -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str]
                    [,uuid=$(uuidgen)][,sku=str][,family=str]
      
      For instance, to add a serial number to the type 1 table:
      
       -smbios type=1,serial=0123456789
      
      Interface is extensible to support more fields/tables as needed.
      
      aliguori: remove texi formatting from help output
      Signed-off-by: NAlex Williamson <alex.williamson@hp.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7163 c046a42c-6fe2-441c-8c8c-71466251a162
      b6f6e3d3
  22. 08 4月, 2009 1 次提交
  23. 06 4月, 2009 4 次提交