1. 12 12月, 2012 24 次提交
  2. 11 12月, 2012 16 次提交
    • D
      parallels: handle network adapters of type 'routed' · ad9d8dbc
      Dmitry Guryanov 提交于
      Network adapters of type 'routed' is a special case. Other adapters
      have 'network' parameter in prlctl's output instead.
      
      Routed network adapters should be connected to 'routed' network
      from libvirt's view.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      ad9d8dbc
    • D
      parallels: add routed pseudo network · 84f0a0b8
      Dmitry Guryanov 提交于
      Historically if traffic from the adapter is routed to LAN without
      NAT, it isn't connected to any virtual networks, but has a 'type'
      instead. Sinse libvirt has special virtual network type for such case,
      let's add pseudo network 'routed' to fit libvirt's API well.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      84f0a0b8
    • D
      parallels: parse virtual network properties · 56494d2b
      Dmitry Guryanov 提交于
      Fill bridge name and mac for bridged network and
      DHCP server parameter for host-only network.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      56494d2b
    • D
      parallels: add network driver · 6034ce31
      Dmitry Guryanov 提交于
      Parallels Cloud Server uses virtual networks model for network
      configuration. It uses own tools for virtual network management.
      So add network driver, which will be responsible for listing
      virtual networks and performing different operations on them
      (in consequent patched).
      
      This patch only allows listing virtual network names, without
      any parameters like DHCP server settings.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      6034ce31
    • D
      parallels: move parallelsParseError to parallels_utils.h · 68c6d3dc
      Dmitry Guryanov 提交于
      This macro will be used in another file in the next
      patch, so move it to common header file.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      68c6d3dc
    • D
      parallels: add support of network interfaces to parallelsDomainDefineXML · 880fcf6a
      Dmitry Guryanov 提交于
      Allow changing network interfaces in domain configuration.
      
      ifname is used as iterface identifier: if there is interface
      with some ifname in old config and there are no interfaces with
      such name in the new config - issue prlctl command to delete
      the network interface. And vice versa - if interface with
      some ifname exists only in new config - issue prlctl command
      to create it.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      880fcf6a
    • D
      parallels: parse information about network interfaces · 8ce9e2ab
      Dmitry Guryanov 提交于
      Parse network interfaces info from prlctl output.
      
      Parallels Cloud Server uses virtual networks model for
      network configuration: You can add network adapter to
      VM and connect it to some predefined virtual network.
      
      Fill type, mac, network name and linkstate fields of
      virDomainNetDef structure.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      8ce9e2ab
    • P
      qemu: snapshot: Remove memory image if external checkpoint fails · a912977a
      Peter Krempa 提交于
      When the disk snapshot part of an external system checkpoint fails the
      memory image is retained. This patch adds code to remove the image in
      such case.
      a912977a
    • P
      qemu: snapshot: Don't leak XML definition if restarting of CPUs fails · d5b28287
      Peter Krempa 提交于
      In case the snapshot code isn't able to restart CPUs after an external
      checkpoint we would leak a copy of the domains XML definition. This
      patch fixes the cleanup path.
      d5b28287
    • J
      qemu: fix uninitialized variable warning in doPeer2PeerMigrate · 07b64de5
      Ján Tomko 提交于
      False positive, but it breaks the build with gcc-4.6.3.
      
      qemu/qemu_migration.c:2931:37: error: 'offline' may be used
      uninitialized in this function [-Werror=uninitialized]
      qemu/qemu_migration.c:2887:10: note: 'offline' was declared here
      07b64de5
    • J
      80756876
    • J
      examples: Fix balloon event callback · d648b056
      Jiri Denemark 提交于
      d648b056
    • G
      network: put dnsmasq parameters in conf-file instead of command line · 8b32c80d
      Gene Czarcinski 提交于
      This patch changes how parameters are passed to dnsmasq.  Instead of
      being on the command line, the parameters are put into a file (one
      parameter per line) and a commandline --conf-file= specifies the
      location of the file.  The file is located in the same directory as
      the leases file.
      
      Putting the dnsmasq parameters into a configuration file
      allows them to be examined and more easily understood than
      examining the command lines displayed by "ps ax".  This is
      especially true when a number of networks have been started.
      
      When the use of dnsmasq was originally done, the required command line
      was simple, but it has gotten more complicated over time and will
      likely become even more complicated in the future.
      
      Note: The test conf files have all been renamed .conf instead of
      .argv, and tests/networkxml2xmlargvdata was moved to
      tests/networkxml2xmlconfdata.
      8b32c80d
    • G
      network: add support for DHCPv6 · 2d5cd1d7
      Gene Czarcinski 提交于
      The DHCPv6 support includes IPV6 dhcp-range and dhcp-host for one
      IPv6 subnetwork on one interface.  This support will only work
      if dnsmasq version >= 2.64; otherwise an error occurs if
      dhcp-range or dhcp-host is specified for an IPv6 address.
      
      Essentially, this change provides the same DHCP support for IPv6
      that has been available for IPv4.
      
      With dnsmasq >= 2.64, support for the RA service is also now provided
      by dnsmasq (radvd is no longer used/started). (Although at least one
      version of dnsmasq prior to 2.64 "supported" IPv6 Router
      Advertisement, there were bugs (fixed in 2.64) that rendered it
      unusable.)
      
      Documentation and the network schema has been updated
      to reflect the new support.
      2d5cd1d7
    • L
      conf: split <forward> parser/clear into separate functions · 71e30eff
      Laine Stump 提交于
      virNetworkDefUpdateForward requires separate functions to parse and
      clear a virNetworkForwardDef by itself, but they were previously just
      inlined in the virNetworkDef parse and free functions. This patch
      makes them into separate functions.
      71e30eff
    • L
      conf: put data for network <forward> element into its own struct · 47c94b65
      Laine Stump 提交于
      The attributes of a <network> element's <forward> element were
      previously stored directly in the virNetworkDef object, but
      virNetworkUpdateForward() needs to operate on a <forward> in
      isolation, so this patchs pulls out all those attributes into a
      separate virNetworkForwardDef struct (and shortens their names
      appropriately). This new object is contained in the virNetworkDef, not
      pointed to by it, so there is no extra memory management.
      
      This patch makes no functional changes, it only changes, e.g.,
      "nForwardIfs" to "forward.nifs".
      47c94b65