1. 07 6月, 2013 8 次提交
    • P
      API: Introduce VIR_DOMAIN_VCPU_AGENT, for agent based CPU hot(un)plug · 29c1e913
      Peter Krempa 提交于
      This flag will allow to use qemu guest agent commands to disable
      (offline) and enable (online) processors in a live guest that has the
      guest agent running.
      29c1e913
    • P
      qemu_agent: Introduce helpers for agent based CPU hot(un)plug · 3099c063
      Peter Krempa 提交于
      The qemu guest agent allows to online and offline CPUs from the
      perspective of the guest. This patch adds helpers that call
      'guest-get-vcpus' and 'guest-set-vcpus' guest agent functions and
      convert the data for internal libvirt usage.
      3099c063
    • P
      qemu: Use bool instead of int in qemuMonitorSetCPU APIs · 82e119f5
      Peter Krempa 提交于
      The 'online' parameter has only two possible values. Use a bool for it.
      82e119f5
    • R
      Add support for VirtualBox 4.2 APIs · ab7110bf
      ryan woodsmall 提交于
      A few things have changed in the VirtualBox API - some small
      (capitalizations of things in function names like Ip to IP
      and Dhcp to DHCP) and some much larger (FindMedium is superceded
      by OpenMedium). The biggest change for the sake of this patch
      is the signature of CreateMachine is quite a bit different. Using
      the Oracle source as a guide, to spin up a VM with a given UUID,
      it looks like a text flag has to be passed in a new argument to
      CreateMachine. This flag is built in the VirtualBox 4.2 specific
      ifdefs and is kind of ugly but works. Additionally, there is now
      (unused) VM groups support in CreateMachine and the previous
      'osTypeId' arg is currently set to nsnull as in the Oracle code.
      
      The FindMedium to OpenMedium changes were more straightforward
      and are pretty clear. The rest of the vbox template changes are
      basically spelling/capitalization changes from the looks of things.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      ab7110bf
    • M
      qemuDomainMigrateGraphicsRelocate: Use then new virSocketAddrIsWildcard · b72ba1da
      Michal Privoznik 提交于
      Since we have the new internal API to check for wildcard address,
      we can use it instead of parsing and formatting.
      b72ba1da
    • M
      virsocket: Introduce virSocketAddrIsWildcard · 68899436
      Michal Privoznik 提交于
      This internal API checks, if passed address is a wildcard address.
      68899436
    • J
      iscsi: pass hostnames to iscsiadm instead of resolving them · cbdb3c73
      Ján Tomko 提交于
      iscsiadm now supports specifying hostnames in the portal argument [1]
      
      Instead of resolving the hostname to a single IPv4 address, pass the
      hostname to isciadm, allowing IPv6 targets to work.
      
      [1] https://bugzilla.redhat.com/show_bug.cgi?id=624437
      cbdb3c73
    • O
      qemu: Report the offset from host UTC for RTC_CHANGE event · e31b5cf3
      Osier Yang 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=964177
      
      Though both libvirt and QEMU's document say RTC_CHANGE returns
      the offset from the host UTC, qemu actually returns the offset
      from the specified date instead when specific date is provided
      (-rtc base=$date).
      
      It's not safe for qemu to fix it in code, it worked like that
      for 3 years, changing it now may break other QEMU use cases.
      What qemu tries to do is to fix the document:
      
      http://lists.gnu.org/archive/html/qemu-devel/2013-05/msg04782.html
      
      And in libvirt side, instead of replying on the value from qemu,
      this converts the offset returned from qemu to the offset from
      host UTC, by:
      
        /*
         * a: the offset from qemu RTC_CHANGE event
         * b: The specified date (-rtc base=$date)
         * c: the host date when libvirt gets the RTC_CHANGE event
         * offset: What libvirt will report
         */
      
        offset = a + (b - c);
      
      The specified date (-rtc base=$date) is recorded in clock's def as
      an internal only member (may be useful to exposed outside?).
      
      Internal only XML tag "basetime" is introduced to not lose the
      guest's basetime after libvirt restarting/reloading:
      
      <clock offset='variable' adjustment='304' basis='utc' basetime='1370423588'/>
      e31b5cf3
  2. 06 6月, 2013 9 次提交
  3. 05 6月, 2013 11 次提交
  4. 04 6月, 2013 1 次提交
    • A
      Fix a invalid usage of virDomainNetDef in OpenVZ driver · 7a5ac835
      Alvaro Polo 提交于
      OpenVZ was accessing ethernet data to obtain the guest iface name
      regardless the domain is configured to use ethernet or bridged
      networking. This prevented the guest network interface to be rightly
      named for bridged networking.
      7a5ac835
  5. 03 6月, 2013 7 次提交
  6. 01 6月, 2013 4 次提交
    • O
      conf: Generate address for scsi host device automatically · cdb97895
      Osier Yang 提交于
      With unknown good reasons, the attribute "bus" of scsi device
      address is always set to 0, same for attribute "target". (See
      virDomainDiskDefAssignAddress).
      
      Though we might need to change the algorithm to honor "bus"
      and "target" too, that's a different issue. The address generator
      for scsi host device in this patch just follows the unknown
      good reasons, only considering the "controller" and "unit".
      It walks through all scsi controllers and their units, to see
      if the address $controller:0:0:$unit can be used (if not used
      by any disk or scsi host device yet), if found one, it sits on
      it, otherwise, it creates a new controller (actually the controller
      is implicitly created by someone else), and sits on
      $new_controller:0:0:0 instead.
      cdb97895
    • L
      qemu: prevent termination of guests w/hostdev on driver reconnect · 2ea45647
      Laine Stump 提交于
      This should resolve:
      
        https://bugzilla.redhat.com/show_bug.cgi?id=959191
      
      The problem was that qemuUpdateActivePciHostdevs was returning 0
      (success) when no hostdevs were present, but would otherwise return -1
      (failure) even when it completed successfully. It is only called from
      qemuProcessReconnect(), and when qemuProcessReconnect got back an
      error, it would not only stop reconnecting, but would terminate the
      guest qemu process "to remove danger of it ending up running twice if
      user tries to start it again later".
      
      (This bug was introduced in commit 011cf7ad, which was pushed between
      v1.0.2 and v1.0.3, so all maintenance branches from v1.0.3 up to 1.0.5
      will need this one line patch applied.)
      2ea45647
    • G
      vbox: define DYNLIB_NAME for kFreeBSD · aeef20e9
      Guido Günther 提交于
      Similar to what Eric did for Cygwin it helps at least to compile
      without --without-vbox
      aeef20e9
    • D
      Introduce virFilePrintf() as a portable fprintf() · a2619962
      Daniel P. Berrange 提交于
      We can't use GNULIB's fprintf-posix due to licensing
      incompatibilities. We do already have a portable
      formatting via virAsprintf() which we got from GNULIB
      though. We can use to create a virFilePrintf() function.
      
      But really gnulib could just provide a 'fprintf'
      module, that depended on just its 'asprintf' module.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a2619962