1. 19 5月, 2016 8 次提交
    • E
      admin: Introduce virAdmServerSetClientLimits · 8b1f0469
      Erik Skultety 提交于
      Opposite operation to virAdmServerGetClientLimits. Understandably though,
      setting values for current number of clients connected or still waiting
      for authentication does not make sense, since changes to these values are event
      dependent, i.e. a client connects - counter is increased. Thus only the limits
      to maximum clients connected and waiting for authentication can be set. Should
      a request for other controls to be set arrive (provided such a setting will
      be first introduced to the config), the set of configuration controls can be
      later expanded (thanks to typed params). This patch also introduces a
      constraint that the maximum number of clients waiting for authentication has to
      be less than the overall maximum number of clients connected and any attempt to
      violate this constraint will be denied.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      8b1f0469
    • E
      admin: Introduce virAdmServerGetClientLimits · 509bd5d8
      Erik Skultety 提交于
      Enable retrieval of the number of maximum clients connected to all sockets
      combined, as well as the number of maximum clients waiting for authentication,
      in order to be successfully connected. These are the attributes configurable
      through libvirtd.conf, however, it could be handy to not only know values for
      these limits, but also the values for the current number of clients
      connected and number of clients currently waiting for authentication which are
      changing dynamically. This API does both, retrieves the limits as well as the
      current dynamic values.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      509bd5d8
    • E
      virnetserver: Introduce server's client-related limits getters · abf29786
      Erik Skultety 提交于
      Add some trivial getters for client related attributes to virnetserver before
      any admin method can be introduced.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      abf29786
    • J
      qemu_cgroup: allow access to /dev/dri for virtio-vga · 3943bdd6
      Ján Tomko 提交于
      QEMU needs access to the /dev/dri/render* device for
      virgl to work.
      
      Allow access to all /dev/dri/* devices for domains with
      <video>
        <model type='virtio' heads='1' primary='yes'>
          <acceleration accel3d='yes'/>
        </model>
      </video>
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1337290
      3943bdd6
    • C
      qemu: address: Remove QEMU_CAPS_DEVICE usage · 20a0fa8e
      Cole Robinson 提交于
      All qemu versions we support have QEMU_CAPS_DEVICE, so checking
      for it is redundant. Remove the usage.
      
      The code diff isn't clear, but all that code is just inindented
      with no other change.
      
      Test cases that hit qemuDomainAssignAddresses but don't have
      infrastructure for specifying qemuCaps values see lots of
      churn, since now PCI addresses are in the XML output.
      20a0fa8e
    • C
      qemu: Call virDomainDefPostParse via CONFIG hotplug · 383833e2
      Cole Robinson 提交于
      hotplug APIs with the AFFECT_CONFIG flag are essentially replicating
      'insert <device> into XML document, and redefine XML'. Thinking of
      it this way, it's natural that we call virDomainDefPostParse after
      manually editing the XML here.
      
      Not only does doing so allow us to drop a bunch of open coded calls
      to qemuDomainAssignAddresses, but it also means we are going through
      the standard channels for XML validation and potentially catching
      errors in user submitted XML.
      383833e2
    • C
      qemu: Assign device addresses in PostParse · 5d7314bb
      Cole Robinson 提交于
      This wires up qemuDomainAssignAddresses into the new
      virDomainDefAssignAddressesCallback, so it's always triggered
      via virDomainDefPostParse. We are essentially doing this already
      with open coded calls sprinkled about.
      
      qemu argv parse output changes slightly since previously it wasn't
      hitting qemuDomainAssignAddresses.
      5d7314bb
    • C
      domain: Add virDomainDefAssignAddressesCallback · f891390f
      Cole Robinson 提交于
      This will be called at the end of virDomainDefPostParse to
      allow hypervisor drivers to fill in device addresses.
      f891390f
  2. 18 5月, 2016 16 次提交
  3. 17 5月, 2016 16 次提交