1. 09 7月, 2015 7 次提交
    • J
      qemu: Inline qemuGetHostdevPath · 38307953
      John Ferlan 提交于
      Since a future patch will need the device path generated when adding a
      shared host device, remove the qemuAddSharedHostdev and inline the two
      calls into qemuAddSharedHostdev and qemuRemoveSharedHostdev
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      38307953
    • J
      qemu: Refactor qemuCheckSharedDisk to create qemuCheckUnprivSGIO · f6a5cbbf
      John Ferlan 提交于
      Split out the current function in order to share the code with hostdev
      in a future patch. Failure to match the expected sgio value against what
      is stored will cause an error which the caller would need to handle since
      only the caller has the disk (or eventually hostdev) specific data in
      order to uniquely identify the disk in an error message.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f6a5cbbf
    • J
      libxl: rework setting the state of virDomainObj · e9c27344
      Jim Fehlig 提交于
      Set the state of virDomainObj in the functions that
      actually change the domain state, instead of the generic
      libxlDomainCleanup function. This approach gives functions
      calling libxlDomainCleanup more flexibility wrt when and
      how they change virDomainObj state via virDomainObjSetState.
      
      The prior approach of calling virDomainObjSetState in
      libxlDomainCleanup resulted in the following incorrect
      coding pattern in the various functions that change
      domain state
      
       libxlDomain<DoStateTransition>
         call libxl function to do state transition
         emit lifecycle event
         libxlDomainCleanup
           virDomainObjSetState
      
      Once simple manifestation of this bug is seeing a domain
      running in virt-manager after selecting the shutdown button,
      even after the domain has long shutdown.
      e9c27344
    • J
      libxl: support dom0 · 45697fe5
      Jim Fehlig 提交于
      In Xen, dom0 is really just another domain that supports ballooning,
      adding/removing devices, changing vcpu configuration, etc. This patch
      adds support to the libxl driver for managing dom0. Note that the
      legacy xend driver has long supported managing dom0.
      
      Operations that are not supported on dom0 are filtered in libvirt
      where a sensible error is reported. Errors from libxl are not
      always helpful. E.g., attempting a save on dom0 results in
      
      2015-06-23 15:25:05 MDT libxl: debug: libxl_dom.c:1570:libxl__toolstack_save: domain=0 toolstack data size=8
      2015-06-23 15:25:05 MDT libxl: debug: libxl.c:979:do_libxl_domain_suspend: ao 0x7f7e68000b70: inprogress: poller=0x7f7e68000930, flags=i
      2015-06-23 15:25:05 MDT libxl-save-helper: debug: starting save: Success
      2015-06-23 15:25:05 MDT xc: detail: xc_domain_save_suse: starting save of domid 0
      2015-06-23 15:25:05 MDT xc: error: Couldn't map live_shinfo (3 = No such process): Internal error
      2015-06-23 15:25:05 MDT xc: detail: Save exit of domid 0 with errno=3
      2015-06-23 15:25:05 MDT libxl-save-helper: debug: complete r=1: No such process
      2015-06-23 15:25:05 MDT libxl: error: libxl_dom.c:1876:libxl__xc_domain_save_done: saving domain: domain did not respond to suspend request: No such process
      2015-06-23 15:25:05 MDT libxl: error: libxl_dom.c:2033:remus_teardown_done: Remus: failed to teardown device for guest with domid 0, rc -8
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      45697fe5
    • J
      qemu: Introduce qemuGetHostdevPath · 083cbe50
      John Ferlan 提交于
      Introduce a convenience function to handle formulating the hostdev path
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      083cbe50
    • J
      qemu: Introduce qemuIsSharedHostdev · 8c43258e
      John Ferlan 提交于
      Add a single boolean function to handle whether the hostdev is shared or not.
      
      Use the new function for the qemu{Add|Remove}SharedHostdev calls as well
      as qemuSetUnprivSGIO. NB: This third usage fixes a possible bug where
      if this feature is enabled at some time in the future and the shareable flag
      wasn't set, the sgio would have been erroneously set.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      8c43258e
    • J
      docs: Clarify unprivileged sgio feature · 4f4ac391
      John Ferlan 提交于
      Update the descriptions for disk and hostdev sgio in order to indicate
      not all hypervisors and OS's support this feature
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      4f4ac391
  2. 08 7月, 2015 17 次提交
  3. 07 7月, 2015 1 次提交
    • M
      vz: assign static IPs and default gateways for network adapter · beddef39
      Mikhail Feoktistov 提交于
      We support only one IPv4 and one IPv6 default gateway.
      If static IPs are not present in instance config,
      then we switch on DHCP for this adapter.
      PrlVmDevNet_SetAutoApply to makes necessary settings within guest OS
      In linux case it creates network startup scripts
      /etc/sysconfig/network-scripts/ifcfg-ethN and fills it with necessary
      parameters.
      beddef39
  4. 06 7月, 2015 1 次提交
    • D
      vz: fix building capabilities · 651426e9
      Dmitry Guryanov 提交于
      There should be at least one domain for each guest
      in cababilities. And in current code we don't add
      domain for this guest for example.
      
          if ((guest = virCapabilitiesAddGuest(caps, VIR_DOMAIN_OSTYPE_HVM,
                                               VIR_ARCH_X86_64,
                                               "vz",
                                               NULL, 0, NULL)) == NULL)
      
      Anyway, with two virt types it looks a litte messy, so let's
      move adding guest and domain to a separate function.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      651426e9
  5. 03 7月, 2015 3 次提交
  6. 02 7月, 2015 11 次提交