1. 30 11月, 2015 19 次提交
    • J
      qemu: add capability for virtio-input-host-device · e9d7550a
      Ján Tomko 提交于
      Add QEMU_CAPS_VIRTIO_INPUT_HOST for both
      virtio-input-host-device and virtio-input-host-pci.
      e9d7550a
    • J
      qemu: build command line for virtio input devices · 7210cef4
      Ján Tomko 提交于
      Add support for these qemu devices:
      virtio-mouse-{pci,device}
      virtio-keyboard-{pci,device}
      virtio-tablet-{pci,device}
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1231114
      7210cef4
    • J
      conf: parse and format virtio input bus in domain XML · bebdfafb
      Ján Tomko 提交于
      To be used by the family of virtio input devices:
      
      <input type='mouse' bus='virtio'/>
      <input type='tablet' bus='virtio'/>
      <input type='keyboard' bus='virtio'/>
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1231114
      bebdfafb
    • J
      qemu: add capabilities for virtio input devices · 5c62d6c4
      Ján Tomko 提交于
      Add capabilities for virtio-keyboard, virtio-mouse
      and virtio-tablet devices:
      
      name "virtio-keyboard-device", bus virtio-bus
      name "virtio-keyboard-pci", bus PCI
      name "virtio-mouse-device", bus virtio-bus
      name "virtio-mouse-pci", bus PCI
      name "virtio-tablet-device", bus virtio-bus
      name "virtio-tablet-pci", bus PCI
      
      Map both -device and -pci versions of the device to one capability.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1231114
      5c62d6c4
    • P
      virlogd: fix crash if log file exists and it's larger the maxlen · cb974262
      Pavel Hrdina 提交于
      If for some reason there is an existing log file, that is larger then
      max length of log file, we need to rollover that file immediately.
      Trying to figure out how much data we could write will resolve in
      overflow of unsigned variable 'towrite' and this leads to segfault.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      cb974262
    • E
      virt-admin: Provide a man page for virt-admin · 163a781e
      Erik Skultety 提交于
      163a781e
    • E
      admin: Introduce virAdmConnectGetLibVersion · a474371f
      Erik Skultety 提交于
      Introduce a new API to get libvirt version. It is worth noting, that
      libvirt-admin and libvirt share the same version number. Unfortunately,
      our existing API isn't generic enough to be used with virAdmConnectPtr
      as well. Also this patch wires up this API to the virt-admin client
      as a generic cmdVersion command.
      a474371f
    • E
      admin: Add support for connection close callbacks · 6dd7e42d
      Erik Skultety 提交于
      As we need a client disconnect handler, we also need a mechanism to register
      such handlers for a client. This patch introduced both the close callbacks and
      also the client vshAdmCatchDisconnect handler to be registered with it. By
      registering the handler we still need to make sure the client can react to
      daemon's events like disconnect or keepalive, so asynchronous I/O event polling
      is necessary to be enabled too.
      6dd7e42d
    • E
      admin: Add support for URI aliases · 96a96b84
      Erik Skultety 提交于
      Now that we introduced URI support in libvirt-admin, we should also support URI
      aliases during connection establishment phase. After applying this patch,
      virAdmConnectOpen will also support VIR_CONNECT_NO_ALIASES flag.
      96a96b84
    • E
      livirt: Move URI alias matching to util · fb90fcc0
      Erik Skultety 提交于
      As we need to provide support for URI aliases in libvirt-admin as well, URI
      alias matching needs to be internally visible. Since
      virConnectOpenResolveURIAlias does have a compatible signature, it could be
      easily reused by libvirt-admin. This patch moves URI alias matching to util,
      renaming it accordingly.
      fb90fcc0
    • E
      admin: Add URI support and introduce virAdmGetDefaultURI · dbecb87f
      Erik Skultety 提交于
      Since virt-admin should be able to connect to various admin servers
      on hosted different daemons, we need to provide URI support to
      libvirt-admin.
      dbecb87f
    • E
      admin: Do not generate remoteAdminConnect{Open,Close} · 0ecf9b3e
      Erik Skultety 提交于
      As we plan to add more and more logic to remote connecting methods,
      these cannot be generated from admin_protocol.x anymore. Instead,
      this patch implements these to methods explicitly.
      0ecf9b3e
    • E
      admin: Move remote admin API version to a separate module · b86cf882
      Erik Skultety 提交于
      By moving the remote version into a separate module, we gain a slightly
      better maintainability in the long run than just by leaving it in one
      place with the existing libvirt-admin library which can start getting
      pretty messy later on.
      b86cf882
    • E
      admin: Introduce virAdmConnectIsAlive · 47a089f0
      Erik Skultety 提交于
      Since most of our APIs rely on an acive functional connection to a daemon and
      we have such a mechanism in libvirt already, there's need to have such a way in
      libvirt-admin as well. By introducing a new public API, this patch provides
      support to check for an active connection.
      47a089f0
    • E
      virt-admin: Introduce first working skeleton · 64095787
      Erik Skultety 提交于
      This patch introduces virt-admin client which is based on virsh client,
      but had to reimplement several methods to meet virt-admin specific needs
      or remove unnecessary virsh specific logic.
      64095787
    • E
      admin: introduce virAdmGetVersion · b32f715d
      Erik Skultety 提交于
      Unfortunately, client side version retrieval API virGetVersion uses
      one-time initialization (due to the fact we might not have initialized the
      library by calling connect prior to this) which is not completely compatible
      with admin initialization. This API is rather simplistic and reimplementing
      it for admin might be the preferred method of reusing it. Note that even though
      the method will be reimplemented, the version number is still the same for both
      the libvirt and libvirt-admin library.
      b32f715d
    • E
      libvirt: Move config getters to util · c4bdff19
      Erik Skultety 提交于
      virConnectGetConfig and virConnectGetConfigPath were static libvirt
      methods, merely because there hasn't been any need for having them
      internally exported yet. Since libvirt-admin also needs to reference
      its config file, 'xGetConfig' should be exported.
      Besides moving, this patch also renames the methods accordingly,
      as they are libvirt config specific.
      c4bdff19
    • E
      admin: Introduce libvirt-admin.conf · 48cd3dfa
      Erik Skultety 提交于
      Since libvirt-admin is a separate library, it should also have a separate
      config file. Available settings are currently the same as for libvirt.conf.
      48cd3dfa
    • E
      libvirt: introduce libvirt/libvirt-common.h.in · a20b6237
      Erik Skultety 提交于
      As it turned out, we need to share some enums and declarations between
      libvirt.h and libvirt-admin.h, but since our policy forbids direct includes of
      libvirt*.h, there has to be some header exempt from this rule. This patch moves
      the relevant part of code from libvirt.h.in to libvirt-common.h.in. Moreover,
      since there is no need to have libvirt.h generated anymore, introduce a new
      header libvirt.h which was previosly ignored from git and make the common
      header ignored and generated instead.
      a20b6237
  2. 27 11月, 2015 9 次提交
  3. 26 11月, 2015 12 次提交