1. 09 12月, 2016 8 次提交
    • N
      qemu: Fix xml dump of autogenerated websocket · 61a0026a
      Nikolay Shirokovskiy 提交于
      When save/migrate a domain and we autogenerated a port, then if we
      print the inactive domain config, write out a -1 for the socket value;
      otherwise, it's possible that the subsequent start will fail if the
      autogenerated websocket used conflicts with an existing running config
      that also used autogenerated websockets.
      
      Examples:
      
      == A. Can not restore domain with autoconfigured websocket.
      
      domain 1 and 2 have autoconfigured websocket.
      
      1. domain 1 is started then, saved
      2. domain 2 is started
      3. domain 1 restoration is failed:
      
      error: internal error: qemu unexpectedly closed the monitor: 2016-11-21T10:23:11.356687Z
      qemu-kvm: -vnc 0.0.0.0:2,websocket=5700: Failed to start VNC server on `(null)':
      Failed to bind socket: Address already in use
      
      == B. Can not migrate domain with autoconfigured websocket.
      
      domain 1 on host A, domain 2 on host B, both have autoconfigured websocket
      
      1. domain 1 started, domain 2 started
      2. domain 1 migration to host B is failed with the above error.
      61a0026a
    • N
      qemu: mark user defined websocket as used · 1215965a
      Nikolay Shirokovskiy 提交于
      We need extra state variable to distinguish between autogenerated
      and user defined cases after auto generation is done.
      1215965a
    • N
      qemu: Refactor qemuProcessGraphicsReservePorts · b07cfd72
      Nikolay Shirokovskiy 提交于
      Use switch for enums rather than if/else conditions.
      b07cfd72
    • M
      qemuGetDomainHugepagePath: Initialize @ret · b492f7ef
      Michal Privoznik 提交于
      The variable may be used uninitialized in this function.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b492f7ef
    • M
      Move virstat.c code to virnetdevtap.c · e0d893e8
      Mehdi Abaakouk 提交于
      This is just a code move of virstat.c to virnetdevtap.c
      e0d893e8
    • M
      virstat: fix signature of virstat helper · 9b6de7c5
      Mehdi Abaakouk 提交于
      In preparation to the code move to virnetdevtap.c, this change:
      
      * renames virNetInterfaceStats to virNetDevTapInterfaceStats
      * changes 'path' to 'ifname', to use the same vocable as other
        method in virnetdevtap.c.
      * Add the attributes checker
      9b6de7c5
    • M
      Gathering vhostuser interface stats with ovs · 013df874
      Mehdi Abaakouk 提交于
      When vhostuser interfaces are used, the interface statistics
      are not available in /proc/net/dev.
      
      This change looks at the openvswitch interfaces statistics
      tables to provide this information for vhostuser interface.
      
      Note that in openvswitch world drop/error doesn't always make sense
      for some interface type. When these informations are not available we
      set them to 0 on the virDomainInterfaceStats.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      013df874
    • P
      qemu: Don't try to find compression program for "raw" memory images · a4ed5b42
      Peter Krempa 提交于
      There's nothing to compress if the requested snapshot memory format is
      set to 'raw' explicitly. After commit 9e14689e libvirt would try to
      run /sbin/raw to process the memory stream if the qemu.conf option
      snapshot_image_format is set.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1402726
      a4ed5b42
  2. 08 12月, 2016 6 次提交
    • C
      lxc: monitor now holds a reference to the domain · 3cd556d4
      Cédric Bosdonnat 提交于
      If the monitor doesn't hold a reference to the domain object
      the object may be destroyed before the monitor actually stops.
      3cd556d4
    • M
      security: Drop virSecurityManagerSetHugepages · ce937d37
      Michal Privoznik 提交于
      Since its introduction in 2012 this internal API did nothing.
      Moreover we have the same API that does exactly the same:
      virSecurityManagerDomainSetPathLabel.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ce937d37
    • M
      qemu: Create hugepage path on per domain basis · f55afd83
      Michal Privoznik 提交于
      If you've ever tried running a huge page backed guest under
      different user than in qemu.conf, you probably failed. Problem is
      even though we have corresponding APIs in the security drivers,
      there's no implementation and thus we don't relabel the huge page
      path. But even if we did, so far all of the domains share the
      same path:
      
         /hugepageMount/libvirt/qemu
      
      Our only option there would be to set 0777 mode on the qemu dir
      which is totally unsafe. Therefore, we can create dir on
      per-domain basis, i.e.:
      
         /hugepageMount/libvirt/qemu/domainName
      
      and chown domainName dir to the user that domain is configured to
      run under.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      f55afd83
    • M
      virDomainObjGetShortName: take virDomainDef · 7ed6934f
      Michal Privoznik 提交于
      So far this function takes virDomainObjPtr which:
      1) is an overkill,
      2) might be not available in all the places we will use it.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      7ed6934f
    • M
      conf: Make scheduler formatting simpler · dc18766b
      Martin Kletzander 提交于
      Since the great rework of how we store vcpu- and iothread-related
      data, we have overly complex part of code that is trying to format the
      scheduler tuning data in as less lines as possible by grouping
      settings for multiple threads.  That was designed as an input syntax
      sugar for users, but we don't need to also use that when formatting
      the XML.  Switching to simple enumeration makes the code nicer,
      shorter and more welcoming to future changes.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      dc18766b
    • D
      test: fix screenshot API impl · 0be9cea1
      Daniel P. Berrange 提交于
      When redoing the website we deleted the libvirtLogo.png file
      not remembering that the test driver screenshot API impl
      relied on it.
      
      Rather than having the test driver use the logo as a side
      effect, give it its own dedicated image to use. This is
      installed in /usr/share/libvirt/test-screenshot.png and
      is taken from a NeXT Cube running WorldWideWeb[1]. The
      very first web browser in existance, running on the
      hardware it was originally written on.
      
      [1] https://en.wikipedia.org/wiki/WorldWideWebSigned-off-by: NDaniel P. Berrange <berrange@redhat.com>
      0be9cea1
  3. 07 12月, 2016 5 次提交
  4. 06 12月, 2016 16 次提交
  5. 05 12月, 2016 5 次提交