1. 20 7月, 2017 1 次提交
  2. 14 7月, 2017 1 次提交
    • C
      pc-bios/s390: add s390-netboot.img · 6c5359e1
      Christian Borntraeger 提交于
      It's already possible to do a network boot of an s390x guest with an
      external netboot image based on a Linux installation, but it would
      be much more convenient if the s390-ccw firmware supported network
      booting right out of the box, without the need to assemble such an
      external image first.
      
      This is an s390-netboot.img that can be used for network booting.
      You can download a combined kernel + initrd image via TFTP
      by starting QEMU for example with:
      
       qemu-system-s390x ... -device virtio-net,netdev=n1,bootindex=1 \
             -netdev user,id=n1,tftp=/path/to/tftp,bootfile=kernel.img
      
      Note that this version does not support downloading via config
      files (i.e. pxelinux config files or .INS config files) yet. This
      will be added later.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      6c5359e1
  3. 15 6月, 2017 4 次提交
    • F
      vhost-user-scsi: Introduce a vhost-user-scsi sample application · 49cc0340
      Felipe Franciosi 提交于
      This commit introduces a vhost-user-scsi backend sample application. It
      must be linked with libiscsi and libvhost-user.
      
      To use it, compile with:
        $ make vhost-user-scsi
      
      And run as follows:
        $ ./vhost-user-scsi -u vus.sock -i iscsi://uri_to_target/
        $ qemu-system-x86_64 --enable-kvm -m 512 \
            -object memory-backend-file,id=mem,size=512m,share=on,mem-path=guestmem \
            -numa node,memdev=mem \
            -chardev socket,id=vhost-user-scsi,path=vus.sock \
            -device vhost-user-scsi-pci,chardev=vhost-user-scsi \
      
      The application is currently limited at one LUN only and it processes
      requests synchronously (therefore only achieving QD1). The purpose of
      the code is to show how a backend can be implemented and to test the
      vhost-user-scsi Qemu implementation.
      
      If a different instance of this vhost-user-scsi application is executed
      at a remote host, a VM can be live migrated to such a host.
      Signed-off-by: NFelipe Franciosi <felipe@nutanix.com>
      Message-Id: <1488479153-21203-5-git-send-email-felipe@nutanix.com>
      49cc0340
    • P
      qemu-doc: include version number · 44cb280d
      Paolo Bonzini 提交于
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      44cb280d
    • P
      docs: create interop/ subdirectory · d59157ea
      Paolo Bonzini 提交于
      This is for the future interoperability & management guide.  It includes
      the QAPI docs, including the automatically generated ones, other socket
      protocols (vhost-user, VNC), and the qcow2 file format.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      d59157ea
    • T
      Makefile: Do not generate files if "configure" has not been run yet · 428952cf
      Thomas Huth 提交于
      When doing a "make -j10" in the vanilla QEMU source tree (without
      running "configure" first), the Makefile currently generates two
      files already, qemu-version.h and qemu-options.def. This should not
      happen, so let's only build the generated files if config-host.mak
      is available (i.e. "configure" has been run already).
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1496926799-13040-1-git-send-email-thuth@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      428952cf
  4. 11 5月, 2017 1 次提交
  5. 21 4月, 2017 1 次提交
    • X
      trace: Put all trace.o into libqemuutil.a · 3d1baccb
      Xu, Anthony 提交于
      Currently all trace.o are linked into qemu-system, qemu-img,
      qemu-nbd, qemu-io etc., even the corresponding components
      are not included.
      Put all trace.o into libqemuutil.a that the linker would only pull in .o
      files containing symbols that are actually referenced by the
      program.
      
      Signed-off -by: Anthony Xu <anthony.xu@intel.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      3d1baccb
  6. 21 3月, 2017 1 次提交
  7. 19 3月, 2017 1 次提交
  8. 16 3月, 2017 4 次提交
  9. 20 2月, 2017 1 次提交
  10. 16 2月, 2017 1 次提交
    • L
      Makefile: avoid leaving the temporary QEMU_PKGVERSION header file · d9e73d32
      Lin Ma 提交于
      By commit 67a1de0d, When we perform 'git pull && make && sudo make install',
      In 'make' stage a qemu-version.h.tmp will be generated. If the content of
      qemu-version.h.tmp and qemu-version.h aren't consistent, The qemu-version.h.tmp
      will be renamed to qemu-version.h. Because of the target FORCE, The same action
      will be do again in 'make install' stage.
      
      In 'make install' stage, If there is no qemu-version.h.tmp exists and we run
      'make install' with sudo, The owner and group of new qemu-version.h.tmp will be
      privileged user/group. When we run 'make' next time, qemu-version.h.tmp can't
      be overwritten because of permission issue.
      
      This patch removed qemu-version.h.tmp after build to fix this issue.
      Signed-off-by: NLin Ma <lma@suse.com>
      Message-Id: <20170215024030.23895-1-lma@suse.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      d9e73d32
  11. 13 2月, 2017 1 次提交
  12. 01 2月, 2017 2 次提交
  13. 27 1月, 2017 1 次提交
  14. 24 1月, 2017 1 次提交
  15. 16 1月, 2017 6 次提交
  16. 22 12月, 2016 1 次提交
  17. 16 12月, 2016 1 次提交
    • M
      contrib: add libvhost-user · 7b2e5c65
      Marc-André Lureau 提交于
      Add a library to help implementing vhost-user backend (or slave).
      
      Dealing with vhost-user as an application developer isn't so easy: you
      have all the trouble with any protocol: validation, unix ancillary data,
      shared memory, eventfd, logging, and on top of that you need to deal
      with virtio queues, if possible efficiently.
      
      qemu test has a nice vhost-user testing application vhost-user-bridge,
      which implements most of vhost-user, and virtio.c which implements
      virtqueues manipulation. Based on these two, I tried to make a simple
      library, reusable for tests or development of new vhost-user scenarios.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      [Felipe: set used_idx copy on SET_VRING_ADDR and update shadow avail idx
       on SET_VRING_BASE]
      Signed-off-by: NFelipe Franciosi <felipe@nutanix.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      7b2e5c65
  18. 28 10月, 2016 2 次提交
  19. 12 10月, 2016 1 次提交
  20. 07 10月, 2016 1 次提交
  21. 06 10月, 2016 1 次提交
    • P
      rules.mak: quiet-command: Split command name and args to print · 0bdb12c7
      Peter Maydell 提交于
      The quiet-command make rule currently takes two arguments:
      the command and arguments to run, and a string to print if
      the V flag is not set (ie we are not being verbose).
      By convention, the string printed is of the form
      "  NAME   some args". Unfortunately to get nicely lined up
      output all the strings have to agree about what column the
      arguments should start in, which means that if we add a
      new quiet-command usage which wants a slightly longer CMD
      name then we either put up with misalignment or change
      every quiet-command string.
      
      Split the quiet-mode string into two, the "NAME" and
      the "same args" part, and use printf(1) to format the
      string automatically. This means we only need to change
      one place if we want to support a longer maximum name.
      
      In particular, we can now print 7-character names lined
      up properly (they are needed for the OSX "SETTOOL" invocation).
      
      Change all the uses of quiet-command to the new syntax.
      (Any which are missed or inadvertently reintroduced
      via later merges will result in slightly misformatted
      quiet output rather than disaster.)
      
      A few places in the pc-bios/ makefiles are updated to use
      "BUILD", "SIGN" and "STRIP" rather than "Building",
      "Signing" and "Stripping" for consistency and to keep them
      below 7 characters. Module .mo links now print "LD" rather
      than the nonstandard "LD -r".
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1475598441-27908-1-git-send-email-peter.maydell@linaro.org
      0bdb12c7
  22. 21 9月, 2016 2 次提交
    • M
      blockdev: Add dynamic module loading for block drivers · 88d88798
      Marc Mari 提交于
      Extend the current module interface to allow for block drivers to be
      loaded dynamically on request. The only block drivers that can be
      converted into modules are the drivers that don't perform any init
      operation except for registering themselves.
      
      In addition, only the protocol drivers are being modularized, as they
      are the only ones which see significant performance benefits. The format
      drivers do not generally link to external libraries, so modularizing
      them is of no benefit from a performance perspective.
      
      All the necessary module information is located in a new structure found
      in module_block.h
      
      This spoils the purpose of 5505e8b7 (block/dmg: make it modular).
      
      Before this patch, if module build is enabled, block-dmg.so is linked to
      libbz2, whereas the main binary is not. In downstream, theoretically, it
      means only the qemu-block-extra package depends on libbz2, while the
      main QEMU package needn't to. With this patch, we (temporarily) change
      the case so that the main QEMU depends on libbz2 again.
      Signed-off-by: NMarc Marí <markmb@redhat.com>
      Signed-off-by: NColin Lord <clord@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1471008424-16465-4-git-send-email-clord@redhat.com
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      [mreitz: Do a signed comparison against the length of
       block_driver_modules[], so it will not cause a compile error when
       empty]
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      88d88798
    • M
      blockdev: Add dynamic generation of module_block.h · 0c0c1fd9
      Marc Mari 提交于
      To simplify the addition of new block modules, add a script that generates
      module_block.h automatically from the modules' source code.
      
      This script assumes that the QEMU coding style rules are followed.
      Signed-off-by: NMarc Marí <markmb@redhat.com>
      Signed-off-by: NColin Lord <clord@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1471008424-16465-3-git-send-email-clord@redhat.com
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      0c0c1fd9
  23. 20 9月, 2016 2 次提交
  24. 19 9月, 2016 1 次提交
  25. 15 9月, 2016 1 次提交