1. 23 4月, 2010 10 次提交
    • E
      maint: update AUTHORS with recent contributors · 2a82a33e
      Eric Blake 提交于
      git shortlog $(git log -1 --format=%H AUTHORS).. | grep -v "^ "
      
      then add missing entries to AUTHORS.
      
      * AUTHORS: Update.
      2a82a33e
    • S
      qemu: fix security context references in DAC code · c85c9b3a
      Spencer Shimko 提交于
      * The error messages coming from qemu's DAC support contain strings
        from the original SELinux security driver code.  This just removes
        references to "security context" and other SELinux-isms from the DAC
        code.
      Signed-off-by: NSpencer Shimko <sshimko@tresys.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      c85c9b3a
    • S
      Changes from V1 to V2: · 647c26c8
      Stefan Berger 提交于
       - using INT_BUFSIZE_BOUND() to determine the length of the buffersize
      for printing and integer into
      
       - not explicitly initializing static var threadsTerminate to false
      anymore, since that's done automatically
      
      Changes after V2:
        - removed while looks in case of OOM error
        - removed on ifaceDown() call
        - preceding one ifaceDown() call with an ifaceCheck() call
      
      Since the name of an interface can be the same between stops and starts
      of different VMs I have to switch the IP address learning thread to use
      the index of the interface to determine whether an interface is still
      available or not - in the case of macvtap the thread needs to listen for
      traffic on the physical interface, thus having to time out periodically
      to check whether the VM's macvtap device is still there as an indication
      that the VM is still alive. Previously the following sequence of 2 VMs
      with macvtap device
      
      virsh start testvm1; virsh destroy testvm1 ; virsh start testvm2
      
      would not terminate the thread upon testvm1's destroy since the name of
      the interface on the host could be the same (i.e, macvtap0) on testvm1
      and testvm2, thus it was easily race-able. The thread would then
      determine the IP address parameter for testvm2 but apply the rule set
      for testvm1. :-(
      I am also introducing a lock for the interface (by name) that the thread
      must hold while it listens for the traffic and releases when it
      terminates upon VM termination or 0.5 second thereafter. Thus, the new
      thread for a newly started VM with the same interface name will not
      start while the old one still holds the lock. The only other code that I
      see that also needs to grab the lock to serialize operation is the one
      that tears down the firewall that were established on behalf of an
      interface.
      
      I am moving the code applying the 'basic' firewall rules during the IP
      address learning phase inside the thread but won't start the thread
      unless it is ensured that the firewall driver has the ability to apply
      the 'basic' firewall rules.
      647c26c8
    • D
      Properly indent encryption tags · 68529bc5
      David Allan 提交于
      * Fix for the bug reported at:
      
      https://bugzilla.redhat.com/show_bug.cgi?id=573908
      68529bc5
    • J
      Fix locking in qemudDomainCoreDump · 96ac1859
      Jiri Denemark 提交于
      The hang fix in d376b7d6 was incomplete
      since it left quite a few {Enter,Exit}Monitor calls which require driver
      to be unlocked. Since the driver is locked throughout the whole
      function, {Enter,Exit}MonitorWithDriver need to be used instead to
      ensure driver is not locked when issuing monitor commands.
      96ac1859
    • J
      Poll for migration end every 50ms instead of 50us · e2c05948
      Jiri Denemark 提交于
      The comment in qemuDomainWaitForMigrationComplete says we are polling
      every 50ms but the code sleeps only for 50us. This was already discussed
      during review but apparently forgotten when the series was pushed.
      e2c05948
    • S
      configure.ac SELinux fixes · e5c668a0
      Spencer Shimko 提交于
      * Fix a logic error in configure.ac that prevented --with-selinux=no
        from being used with --with-secdriver-selinux=no.
      
      * Fix some strings to clarify the difference between --with-selinux
        and --with-secdriver-selinux.
      Signed-off-by: NSpencer Shimko <sshimko@tresys.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      e5c668a0
    • D
      Fix QEMU text monitor command error checking · 9772beba
      Daniel P. Berrange 提交于
      The text monitor code was checking for a '\n' prefix on several
      places. Previously this would work, but since the monitor code
      re-write the '\n' is already stripped off, so mustn't be checked
      for.
      
      * src/qemu/qemu_monitor_text.c: Fix monitor error checking
      9772beba
    • D
      Fix CPU hotplug command names · a980d123
      Daniel P. Berrange 提交于
      Probably as a result of a merge error, the CPU hotplug command
      names were completely wrong.
      
      * src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_text.c: Fix
        the CPU hotplug command names
      a980d123
    • D
      Fix printing of event detail in python events demo program · de8ecb12
      Daniel P. Berrange 提交于
      The events demo program is slightly misleading printing
      
        myDomainEventCallback1 EVENT: Domain f14i686(-1) Added
      
      which is not distinguishing Add vs Update events. It should have
      been doing
      
        myDomainEventCallback1 EVENT: Domain f14i686(-1) Defined Updated
      
      * examples/domain-events/events-python/event-test.py: Fully print
        event detail info string
      de8ecb12
  2. 22 4月, 2010 13 次提交
  3. 21 4月, 2010 10 次提交
  4. 20 4月, 2010 3 次提交
    • P
      Install nwfilter xml files from source directory. · 8b3a89c4
      Philipp Hahn 提交于
      During an out-of-tree build, the current working directory is the build
      directory. Since the FILTERS are static and not modified or
      auto-generated during the build process, they need to be explicitly
      fetched from the source directory during install.
      
      Prefix the files with $(srcdir), which gets expanded to the absolute or
      relative path to the source directory, even when duing out-of-tree
      builds.
      Signed-off-by: NPhilipp Hahn <hahn@univention.de>
      8b3a89c4
    • P
      Don't ship generated python/libvirt.? files. · 5d4009b0
      Philipp Hahn 提交于
      libvirt.c and libvirt.h are auto-generated files. Mentioning their names
      in *_SOURCES includes them in the distribution. During an out-of-tree
      build these shipped files are included instead of the auto-generated
      version, potentially breaking the build (as it happend in 0.8.0, because
      the shipped libvirt.h was missing the declaration for
      'libvirt_virDomainUpdateDeviceFlags')
      
      Use the nodist_*_SOURCES automake variable instead.
      Signed-off-by: NPhilipp Hahn <hahn@univention.de>
      5d4009b0
    • D
      Fixup python binding for virDomainSnapshot APIs · 90302e7f
      Daniel P. Berrange 提交于
      The generator code was totally wrong for the virDomainSnapshot
      APIs, not generating the wrapper class, and giving methods the
      wrong names
      
      * generator.py: Set metadata for virDomainSnapshot type & APIs
      * libvirt-override-api.xml, libvirt-override.c: Hand-code the
        virDomainSnapshotListNames glue layer
      90302e7f
  5. 19 4月, 2010 3 次提交
    • D
      Fix network hotplug to use device_add in QEMU · f3e098f3
      Daniel P. Berrange 提交于
      The initial boot of VMs uses -device for NICs where available. The
      corresponding monitor command is device_add, but the network hotplug
      code was still using device_del by mistake.
      
      * src/qemu/qemu_driver.c: Use device_add for NIC hotplug where
        available
      f3e098f3
    • D
      Fix error reporting for getfd + host_net_add in QEMU · 9417eb03
      Daniel P. Berrange 提交于
      If either of the getfd or host_net_add monitor commands return
      any text, this indicates an error condition. Don't ignore this!
      
      * src/qemu/qemu_monitor_text.c: Report errors for getfd and
        host_net_add
      9417eb03
    • D
      Fix device_del in JSON mode for QEMU · e699a824
      Daniel P. Berrange 提交于
      The 'device_del' command expects a parameter called 'id' but we
      were passing 'config'.
      
      * src/qemu/qemu_monitor_json.c: Fix device_del command parameter
      e699a824
  6. 18 4月, 2010 1 次提交