1. 17 11月, 2010 6 次提交
    • S
      nwfilter: also purge ip(6)tables rules before detecting IP address · d4897acf
      Stefan Berger 提交于
      Rather than only cleaning any remaining ebtables rules, also clean those applied to iptables and ip6tables when detecting the IP address of an interface. Previous applied iptables rules may hinder DHCP packets.
      d4897acf
    • S
      deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() · 7b7cb1ec
      Stefan Berger 提交于
      Similarly to deprecating close(), I am now deprecating fclose() and
      introduce VIR_FORCE_FCLOSE() and VIR_FCLOSE(). Also, fdopen() is replaced with
      VIR_FDOPEN().
      
      Most of the files are opened in read-only mode, so usage of
      VIR_FORCE_CLOSE() seemed appropriate. Others that are opened in write
      mode already had the fclose()<  0 check and I converted those to
      VIR_FCLOSE()<  0.
      
      I did not find occurrences of possible double-closed files on the way.
      7b7cb1ec
    • O
      daemon: fix indention problem in daemon/libvirt.c · 7942fd1c
      Osier Yang 提交于
      * daemon/libvirtd.c
      7942fd1c
    • O
      qemu: fix typos in qemu_monitor_text.c · 54837455
      Osier Yang 提交于
      * src/qemu/qemu_monitor_text.c (qemuMonitorTextChangeMedia)
      54837455
    • O
      qemu: record timestamp in qemu domain log · 93bc093a
      Osier Yang 提交于
      Currently only support domain start and shutdown, for domain start,
      record timestamp before the qemu command line, and for domain shutdown,
      just say it's shutting down with timestamp.
      
      * src/qemu/qemu_driver.c (qemudStartVMDaemon, qemudShutdownVMDaemon
        introduced two macros - START_POSTFIX, SHUTDOWN_POSTFIX)
      93bc093a
    • O
      virsh: add net-info command · 21f52833
      Osier Yang 提交于
      To list basic information about the network.
      
      * tools/virsh.c
      * tools/virsh.pod
      21f52833
  2. 16 11月, 2010 5 次提交
  3. 15 11月, 2010 5 次提交
  4. 13 11月, 2010 8 次提交
  5. 12 11月, 2010 16 次提交
    • C
      rpm: Fix summary wording · 34d8ca2b
      Cole Robinson 提交于
      34d8ca2b
    • J
      90afacb3
    • M
      phyp: Don't do a flags check in the storage driver · d941eb13
      Matthias Bolte 提交于
      This makes the storage driver fail when the connection is
      opened with the VIR_CONNECT_RO flag, resulting in a read-only
      connection with no storage driver.
      d941eb13
    • M
      qemu: Add qemu-system-s390x to the emulators list · f6d9a3e2
      Matthias Bolte 提交于
      f6d9a3e2
    • S
      macvtap: convert nl msg construction to use libnl · 77e7c13b
      Stefan Berger 提交于
      In a first step I am converting the netlink message construction in
      macvtap code to use libnl. It's pretty much a 1:1 conversion except that
      now the message needs to be allocated and deallocated.
      77e7c13b
    • L
      Do a better job of validating IP and MAC addresses in network.rng · 76654409
      Laine Stump 提交于
      IP addresses and MAC addresses had been defined in the RNG simply as
      <text/> meaning that, according to the RNG, any string could go in
      there. Of course the C parsing code does a much better job of
      validating, but we may as well have this describing the contents
      accurately (even though it's currently only used during "make check").
      76654409
    • L
      re-indent network.rng following structural change · 5983f2d2
      Laine Stump 提交于
      This commit is whitespace changes only, do avoid obscuring actual code
      changes.
      5983f2d2
    • L
      Put network.rng contents inside <grammar> for uniformity with other RNGs · 3d10d348
      Laine Stump 提交于
      All the other RNG files in libvirt are enclosed within <grammar>. This
      commit makes the syntactical changes necessary to make network.rng fit
      that pattern. (This is the first step in adding some data type
      definitions to network.rng for more exact validation of IP and MAC
      addresses).
      
      Formatting changes (indentation) will be done in a subsequent commit,
      so that actual changes to the code won't be obscured by whitespace.
      3d10d348
    • J
      virt-aa-helper should require <uuid> in XML · 29318e17
      Jamie Strandboge 提交于
      When <uuid> is not in the XML, a virUUIDGenerate() ends up being called which
      is unnecessary and can lead to crashes if /dev/urandom isn't available
      because virRandomInitialize() is not called within virt-aa-helper. This patch
      adds verify_xpath_context() and updates caps_mockup() to use it.
      
      Bug-Ubuntu: https://launchpad.net/bugs/672943
      29318e17
    • M
      esx: Support SMBIOS host mode · 52888813
      Matthias Bolte 提交于
      52888813
    • L
      45dc5a14
    • L
      ignore SELinuxSetFilecon error in SELinuxSetSecurityFileLabel if on nfs · 5b04f42c
      Laine Stump 提交于
      If virDomainAttachDevice() was called with an image that was located
      on a root-squashed NFS server, and in a directory that was unreadable
      by root on the machine running libvirtd, the attach would fail due to
      an attempt to change the selinux label of the image with EACCES (which
      isn't covered as an ignore case in SELinuxSetFilecon())
      
      NFS doesn't support SELinux labelling anyway, so we mimic the failure
      handling of commit 93a18bba, which
      just ignores the errors if the target is on an NFS filesystem (in
      SELinuxSetSecurityAllLabel() only, though.)
      
      This can be seen as a follow-on to commit
      347d266c, which ignores file open
      failures of files on NFS that occur directly in
      virDomainDiskDefForeachPath() (also necessary), but does not ignore
      failures in functions that are called from there (eg
      SELinuxSetSecurityFileLabel()).
      5b04f42c
    • D
      Fix reference counting bug in virsh console · a9261567
      Daniel P. Berrange 提交于
      The event watches need to be removed before the event loop
      terminates, otherwise they cause a dangling reference to
      be held on the virStreamPtr, which in turns holds a reference
      on virConnectPtr, which in turn causes errors like
      
        "Failed to disconnect from the hypervisor"
      
      * tools/console.c: Remove watches before event loop quits
      * tools/virsh.c: Print out dangling reference count
      a9261567
    • D
      Wire up virDomainOpenConsole for LXC, Xen and UML · 5fb9db27
      Daniel P. Berrange 提交于
      Introduce implementations of the virDomainOpenConsole() API
      for LXC, Xen and UML drivers.
      
      * src/lxc/lxc_driver.c, src/lxc/lxc_driver.c,
        src/xen/xen_driver.c: Wire up virDomainOpenConsole
      5fb9db27
    • D
      Fix busy-wait loop on closed file descriptor · c5d1a995
      Daniel P. Berrange 提交于
      When closing open streams after a client quits, the event
      callback was not removed. This mean that poll() was using
      a closed FD and returning POLLNVAL in a busy-wait loop.
      
      * daemon/stream.c: Disconnect stream callbacks
      c5d1a995
    • D
      Re-write virsh console to use streams · dad4b5d4
      Daniel P. Berrange 提交于
      This re-writes the 'virsh console' command so that it uses
      the new streams API. This lets it run remotely and/or as a
      non-root user. This requires that virsh be linked against
      the simple event loop from libvirtd in daemon/event.c
      As an added bonus, it can now connect to any console device,
      not just the first one.
      
      * tools/Makefile.am: Link to event.c
      * tools/console.c, tools/console.h: Rewrite to use the
        virDomainOpenConsole() APIs with streams
      * tools/virsh.c: Support choosing the console name
        via --devname $NAME
      dad4b5d4