1. 30 7月, 2010 1 次提交
  2. 29 7月, 2010 9 次提交
  3. 28 7月, 2010 11 次提交
    • G
      fix handling of PORT_PROFILE_RESPONSE_INPROGRESS netlink message · e4fb6a3c
      Gerhard Stenzel 提交于
      During function test of the 802.1Qbg implementation in lldpad we came
      across a small problem in the handling of the netlink message
      corresponding to PORT_PROFILE_RESPONSE_INPROGRESS. This should not
      result in returning the default rc=1.
      
      - src/util/macvtap.c: fix getPortProfileStatus() to return 0 in that
        case and also fix an indentation problem
      e4fb6a3c
    • E
      maint: fix comment typos · 40a0e82c
      Eric Blake 提交于
      * src/network/bridge_driver.c
      (networkAddMasqueradingIptablesRules): Fix spelling and grammar.
      40a0e82c
    • C
    • E
      maint: turn on gcc logical-op checking · 40e973dd
      Eric Blake 提交于
      This would have detected the bug in commit 38ad33931 (Aug 09), which
      we missed until commit f828ca35 (Jul 10); over 11 months later.
      
      However, on Fedora 13, it also triggers LOTS of warnings from
      the libcurl-devel header for two files:
      
      esx/esx_vi.c: In function 'esxVI_CURL_Perform':
      esx/esx_vi.c:232: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]
      esx/esx_vi.c:232: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]
      esx/esx_vi.c:232: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]
      ...
      xenapi/xenapi_driver.c: In function 'call_func':
      xenapi/xenapi_driver.c:1872: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]
      xenapi/xenapi_driver.c:1872: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]
      xenapi/xenapi_driver.c:1872: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]
      ...
      
      libcurl allows to disable the type-checking code that triggers those
      warnings, along with the reduction in type-safety of calls to some
      libcurl functions. I figure this is worth the improved compiler
      checking throughout the rest of libvirt.
      
      * acinclude.m4 (--enable-compile-warnings=error): Add -Wlogical-op.
      * configure.ac: Add -DCURL_DISABLE_TYPECHECK to LIBCURL_CFLAGS to
      avoid compilation warning.
      
      Suggested by Daniel P. Berrange.
      Tweaked by Matthias Bolte.
      40e973dd
    • E
      libvirt-guests: add reload, condrestart · e5360d0b
      Eric Blake 提交于
      Optional per LSB, but required by Fedora:
      https://fedoraproject.org/wiki/Packaging/SysVInitScript
      
      * daemon/libvirt-guests.init.in (main): Add more required
      commands.
      e5360d0b
    • E
      libvirt-guests: enhance status · c629a288
      Eric Blake 提交于
      LSB and https://fedoraproject.org/wiki/Packaging/SysVInitScript
      require status to output something useful, rather than just use
      the exit code.
      
      * daemon/libvirt-guests.init.in (rh_status): Break into new routine,
      and provide output.
      (usage): Document status.
      c629a288
    • E
      libvirt-guests: detect invalid arguments · 592277bc
      Eric Blake 提交于
      Reject extra arguments.
      Return the correct status for unknown arguments, as mandated by
      https://fedoraproject.org/wiki/Packaging/SysVInitScript
      Add --help, as a permitted extension.
      
      * daemon/libvirt-guests.init.in (usage): New function.  Use it in
      more places, and return correct value.
      592277bc
    • D
      Invert logic for checking for QEMU disk cache options · 9749d94f
      Daniel P. Berrange 提交于
      QEMU has had two different syntax for disk cache options
      
       Old: on|off
       New: writeback|writethrough|none
      
      QEMU recently added another 'unsafe' option which broke the
      libvirt check. We can avoid this & future breakage, if we
      do a negative check for the old syntax, instead of a positive
      check for the new syntax
      
      * src/qemu/qemu_conf.c: Invert cache option check
      9749d94f
    • C
      qemu: Allow setting boot menu on/off · 4f24ca01
      Cole Robinson 提交于
      Add a new element to the <os> block:
      
        <bootmenu enable="yes|no"/>
      
      Which maps to -boot,menu=on|off on the QEMU command line.
      
      I decided to use an explicit 'enable' attribute rather than just make the
      bootmenu element boolean. This allows us to treat lack of a bootmenu element
      as 'use hypervisor default'.
      4f24ca01
    • C
      docs: Link wiki FAQ to main page · f8b76f41
      Cole Robinson 提交于
      Since DV recommended keeping the build instructions distributed with the
      source, move them from the old FAQ to the downloads page.
      f8b76f41
    • C
      qemu: Error on unsupported graphics config · 6fe9025e
      Cole Robinson 提交于
      Throw an explicit error if multiple graphics devices are specified, or
      an unsupported type is specified (rdp).
      6fe9025e
  4. 27 7月, 2010 7 次提交
    • J
      libvirt-guests: Don't throw errors if libvirtd is not installed · d1018b1b
      Jiri Denemark 提交于
      When only client parts of libvirt are installed (i.e., no libvirtd
      daemon), libvirt-guests init script in its default configuration would
      throw seriously looking errors during host shutdown:
      
      Running guests on default URI: error: unable to connect to
      '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No
      such file or directory
      error: failed to connect to the hypervisor
      
      This patch changes the script to print rather harmless message in that
      situation:
      
      Running guests on default URI: libvirtd not installed; skipping this
      URI.
      d1018b1b
    • C
      Force FLR on for buggy SR-IOV devices. · 71e92a15
      Chris Lalancette 提交于
      Some buggy PCI devices actually support FLR, but
      forget to advertise that fact in their PCI config space.
      However, Virtual Functions on SR-IOV devices are
      *required* to support FLR by the spec, so force has_flr
      on if this is a virtual function.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      71e92a15
    • E
      build: fix VPATH builds · 4018a026
      Eric Blake 提交于
      After the recent libvirt-qemu library addition, VPATH builds fail with:
      
        CC     libvirt_qemu_la-libvirt-qemu.lo
      In file included from ../../src/libvirt-qemu.c:29:
      ../../include/libvirt/libvirt-qemu.h:17:22: error: libvirt.h: No such file or directory
      ...
        CCLD   libvirt-qmeu.la
      /usr/bin/ld: cannot open linker script file libvirt_qemu.syms: No such file or directory
      
      This fixes both issues (there are still some documentation VPATH issues,
      but those don't show up with 'make check').
      
      * configure.ac (LIBVIRT_QEMU_SYMBOL_FILE): While libvirt.syms is
      generated and lives in $(builddir), libvirt_qemu.syms is static
      and lives in $(srcdir).
      * include/libvirt/libvirt-qemu.h (includes): Pull in libvirt.h via
      the public location, since this is a public header.
      4018a026
    • C
      pciResetDevice: use inactive devices to determine safe reset · 46bcdb96
      Chris Wright 提交于
      When doing a PCI secondary bus reset, we must be sure that there are no
      active devices on the same bus segment.  The active device tracking is
      designed to only track host devices that are active in use by guests.
      This ignores host devices that are actively in use by the host.  So the
      current logic will reset host devices.
      
      Switch this logic around and allow sbus reset when we are assigning all
      devices behind a bridge to the same guest at guest startup or as a result
      of a single attach-device command.
      
      * src/util/pci.h: change signature of pciResetDevice to add an
        inactive devices list
      * src/qemu/qemu_driver.c src/xen/xen_driver.c: use (or not) the new
        functionality of pciResetDevice() depending on the place of use
      * src/util/pci.c: implement the interface and logic changes
      46bcdb96
    • C
      qemudDomainAttachHostPciDevice refactor to use new helpers · 042b2083
      Chris Wright 提交于
      - src/qemu/qemu_driver.c: Eliminate code duplication by using the new
        helpers qemuPrepareHostdevPCIDevices and qemuDomainReAttachHostdevDevices.
        This reduces the number of open coded calls to pciResetDevice.
      042b2083
    • C
      Add helpers qemuPrepareHostdevPCIDevice and qemuDomainReAttachHostdevDevices · f1365b55
      Chris Wright 提交于
      - src/qemu/qemu_driver.c: These new helpers take hostdev list and count
        directly rather than getting them indirectly from domain definition.
        This will allow reuse for the attach-device case.
      f1365b55
    • C
      qemuGetPciHostDeviceList take hostdev list directly · 8bd00c0e
      Chris Wright 提交于
      - src/qemu/qemu_driver.c: Update qemuGetPciHostDeviceList to take a
        hostdev list and count directly, rather than getting this indirectly
        from domain definition. This will allow reuse for the attach-device case.
      8bd00c0e
  5. 25 7月, 2010 2 次提交
    • M
      esx: Support vSphere 4.1 · d3864c37
      Matthias Bolte 提交于
      Also accept version > 4.1, but output a warning.
      d3864c37
    • M
      esx: Add vpx:// scheme to allow direct connection to a vCenter · 3827f7f0
      Matthias Bolte 提交于
      Add a pointer to the primary context of a connection and use it in all
      driver functions that don't dependent on the context type. This includes
      almost all functions that deal with a virDomianPtr. Therefore, using
      a vpx:// connection allows you to perform all the usual domain related
      actions like start, destroy, suspend, resume, dumpxml etc.
      
      Some functions that require an explicitly specified ESX server don't work
      yet. This includes the host UUID, the hostname, the general node info, the
      max vCPU count and the free memory. Also not working yet are migration and
      defining new domains.
      3827f7f0
  6. 24 7月, 2010 10 次提交