1. 14 12月, 2018 2 次提交
    • D
      Enforce a standard header file guard symbol name · 568a4172
      Daniel P. Berrangé 提交于
      Require that all headers are guarded by a symbol named
      
        LIBVIRT_$FILENAME
      
      where $FILENAME is the uppercased filename, with all characters
      outside a-z changed into '_'.
      
      Note we do not use a leading __ because that is technically a
      namespace reserved for the toolchain.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      568a4172
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  2. 21 9月, 2018 1 次提交
  3. 09 12月, 2017 1 次提交
  4. 11 7月, 2016 1 次提交
    • P
      conf: Add private data for virDomainVcpuDef · 5fe0b6b0
      Peter Krempa 提交于
      Allow to store driver specific data on a per-vcpu basis.
      
      Move of the virDomainDef*Vcpus* functions was necessary as
      virDomainXMLOptionPtr was declared below this block and I didn't want to
      split the function headers.
      5fe0b6b0
  5. 18 5月, 2016 2 次提交
    • C
      xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl · 03f8bba2
      Chunyan Liu 提交于
      According to current xl.cfg docs and xl codes, it uses type=vif
      instead of type=netfront.
      
      Currently after domxml-to-native, libvirt xml model=netfront will be
      converted to xl type=netfront. This has no problem before, xen codes
      for a long time just check type=ioemu, if not, set type to _VIF.
      
      Since libxl uses parse_nic_config to avoid duplicate codes, it
      compares 'type=vif' and 'type=ioemu' for valid parameters, others
      are considered as invalid, thus we have problem with type=netfront
      in xl config file.
       #xl create sles12gm-hvm.orig
       Parsing config from sles12gm-hvm.orig
       Invalid parameter `type'.
      
      Correct the conversion in libvirt, so that it matchs libxl codes
      and also xl.cfg.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      03f8bba2
    • C
      extract XEN_CONFIG_FORMAT_XM/XL to xen_common.h · f1066d0d
      Chunyan Liu 提交于
      Unify XEN_CONFIG_FORMAT_x and LIBXL_CONFIG_FORMAT_x to
      XEN_CONFIG_FORMAT_x, and move to xen_common.h.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      f1066d0d
  6. 27 1月, 2016 1 次提交
    • P
      device: cleanup input device code · 36785c7e
      Pavel Hrdina 提交于
      The current code was a little bit odd.  At first we've removed all
      possible implicit input devices from domain definition to add them later
      back if there was any graphics device defined while parsing XML
      description.  That's not all, while formating domain definition to XML
      description we at first ignore any input devices with bus different to
      USB and VIRTIO and few lines later we add implicit input devices to XML.
      
      This seems to me as a lot of code for nothing.  This patch may look
      to be more complicated than original approach, but this is a preferred
      way to modify/add driver specific stuff only in those drivers and not
      deal with them in common parsing/formating functions.
      
      The update is to add those implicit input devices into config XML to
      follow the real HW configuration visible by guest OS.
      
      There was also inconsistence between our behavior and QEMU's in the way,
      that in QEMU there is no way how to disable those implicit input devices
      for x86 architecture and they are available always, even without graphics
      device.  This applies also to XEN hypervisor.  VZ driver already does its
      part by putting correct implicit devices into live XML.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      36785c7e
  7. 18 12月, 2015 1 次提交
  8. 17 4月, 2015 1 次提交
  9. 04 1月, 2015 1 次提交
  10. 19 8月, 2014 4 次提交
  11. 21 12月, 2012 1 次提交
  12. 21 9月, 2012 1 次提交
  13. 23 7月, 2012 1 次提交
    • O
      Desert the FSF address in copyright · f9ce7dad
      Osier Yang 提交于
      Per the FSF address could be changed from time to time, and GNU
      recommends the following now: (http://www.gnu.org/licenses/gpl-howto.html)
      
        You should have received a copy of the GNU General Public License
        along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
      
      This patch removes the explicit FSF address, and uses above instead
      (of course, with inserting 'Lesser' before 'General').
      
      Except a bunch of files for security driver, all others are changed
      automatically, the copyright for securify files are not complete,
      that's why to do it manually:
      
        src/security/security_selinux.h
        src/security/security_driver.h
        src/security/security_selinux.c
        src/security/security_apparmor.h
        src/security/security_apparmor.c
        src/security/security_driver.c
      f9ce7dad
  14. 22 2月, 2011 3 次提交
  15. 10 3月, 2010 1 次提交
  16. 21 9月, 2009 1 次提交
    • D
      Move network driver into src/network · acfe3f26
      Daniel P. Berrange 提交于
      * daemon/qemud.c, src/Makefile.am: Adapt for changed paths
      * src/network_driver.c: Rename to src/network/bridge_driver.c
      * src/network_driver.h: Rename to src/network/bridge_driver.h
      acfe3f26
  17. 10 10月, 2008 1 次提交
  18. 21 8月, 2008 1 次提交
  19. 08 2月, 2008 1 次提交
    • M
      Fix gcc-4.3.0 "inlining failed" warning. · 3da5504e
      Mark McLoughlin 提交于
      * src/internal.h: move xstrol() variants from here ...
      
      * src/util.[ch]: ... to here and rename to virStrToLong()
      
      * src/libvirt_sym.version: export __virStrToLong_i() for
      virsh and qemud.
      
      * src/nodeinfo.c, src/stats_linux.c, src/virsh.c,
        src/xend_internal.c, qemud/qemud.c: replace xstrtol()
      calls with virStrToLong()
      
      * src/nodeinfo.h: don't include internal.h, which was only
      needed for xstrtol(), but instead include libvirt.h which
      is suffificient for the declarations in the header.
      3da5504e
  20. 26 7月, 2007 1 次提交
  21. 29 6月, 2007 1 次提交
  22. 27 6月, 2007 10 次提交
  23. 16 3月, 2007 1 次提交
  24. 23 2月, 2007 1 次提交
    • M
      Fri Feb 23 09:00:13 IST 2007 Mark McLoughlin <markmc@redhat.com> · efe538b7
      Mark McLoughlin 提交于
              * qemud/protocol.h: add the (domain/network)(Get/Set)Autostart
              requests and replies to the protocol.
      
              * src/qemu_internal.c: hookup the qemu driver autostart
              methods
      
              * qemud/dispatch.c, qemud/driver.[ch], internal.h: add
              the daemon side, but just set an in-memory autostart
              flag for now.
      efe538b7