1. 23 3月, 2010 2 次提交
  2. 22 3月, 2010 18 次提交
  3. 21 3月, 2010 1 次提交
  4. 18 3月, 2010 1 次提交
  5. 16 3月, 2010 2 次提交
  6. 13 3月, 2010 1 次提交
  7. 01 3月, 2010 1 次提交
  8. 20 2月, 2010 1 次提交
  9. 14 2月, 2010 1 次提交
    • M
      rwhandler: simplified way to register for mem/io · 049f7adb
      Michael S. Tsirkin 提交于
      Some users prefer a single callback with length passed as parameter to
      using b/w/l callbacks. It would maybe be cleaner to just pass length to
      existing callbacks but that's a lot of churn.  So for now add a wrapper.
      For convenience use pcibus_t for address so a single callback can be
      used for pci io and pci memory.
      
      I did have to resort to preprocessor to reduce code duplication.  It is
      however slightly more straightforward, and better contained than what we
      had with pci_host_template.h. Again, it would go away if we just passed
      len to existing callbacks.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      049f7adb
  10. 07 2月, 2010 1 次提交
  11. 06 2月, 2010 1 次提交
  12. 05 2月, 2010 1 次提交
  13. 25 1月, 2010 1 次提交
  14. 20 1月, 2010 2 次提交
    • A
      Move virtio-serial to Makefile.objs · 4d3053a3
      Amit Shah 提交于
      There's nothing target-dependent in the virtio-serial code so allow it
      to be compiled just once for all the targets.
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4d3053a3
    • A
      virtio-console: qdev conversion, new virtio-serial-bus · 98b19252
      Amit Shah 提交于
      This commit converts the virtio-console device to create a new
      virtio-serial bus that can host console and generic serial ports. The
      file hosting this code is now called virtio-serial-bus.c.
      
      The virtio console is now a very simple qdev device that sits on the
      virtio-serial-bus and communicates between the bus and qemu's chardevs.
      
      This commit also includes a few changes to the virtio backing code for
      pci and s390 to spawn the virtio-serial bus.
      
      As a result of the qdev conversion, we get rid of a lot of legacy code.
      The old-style way of instantiating a virtio console using
      
          -virtioconsole ...
      
      is maintained, but the new, preferred way is to use
      
          -device virtio-serial -device virtconsole,chardev=...
      
      With this commit, multiple devices as well as multiple ports with a
      single device can be supported.
      
      For multiple ports support, each port gets an IO vq pair. Since the
      guest needs to know in advance how many vqs a particular device will
      need, we have to set this number as a property of the virtio-serial
      device and also as a config option.
      
      In addition, we also spawn a pair of control IO vqs. This is an internal
      channel meant for guest-host communication for things like port
      open/close, sending port properties over to the guest, etc.
      
      This commit is a part of a series of other commits to get the full
      implementation of multiport support. Future commits will add other
      support as well as ride on the savevm version that we bump up here.
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      98b19252
  15. 09 1月, 2010 1 次提交
  16. 08 1月, 2010 4 次提交
    • A
      multiboot: Separate multiboot loading into separate file · 52001445
      Adam Lackorzynski 提交于
      Move multiboot loading code into separate files as suggested by Alex Graf.
      Signed-off-by: NAdam Lackorzynski <adam@os.inf.tu-dresden.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      52001445
    • H
      debugcon: support for debugging consoles (e.g. Bochs port 0xe9) · c9f398e5
      H. Peter Anvin 提交于
      Add generic support for debugging consoles (simple I/O ports which
      when written to cause debugging output to be written to a target.)
      The current implementation matches Bochs' port 0xe9, allowing the same
      debugging code to be used for both Bochs and Qemu.
      
      There is no vm state associated with the debugging port, simply
      because it has none -- the entire interface is a single, stateless,
      write-only port.
      
      Most of the code was cribbed from the serial port driver.
      
      v2: removed non-ISA variants (they can be introduced when/if someone
      wants them, using code from the serial port); added configurable
      readback (Bochs returns 0xe9 on a read from this register, mimic that
      by default)  This retains the apparently somewhat controversial user
      friendly option, however.
      
      v3: reimplemented the user friendly option as a synthetic option
      ("-debugcon foo" basically ends up being a parser-level shorthand for
      "-chardev stdio,id=debugcon -device isa-debugcon,chardev=debugcon") --
      this dramatically reduced the complexity while keeping the same level
      of user friendliness.
      
      v4: spaces, not tabs.
      
      v5: update to match current top of tree.  Calling qemu_chr_open()
      already during parsing no longer works; defer until we are parsing the
      other console-like devices.
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c9f398e5
    • 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
  17. 06 12月, 2009 1 次提交