1. 15 Apr, 2014 4 commits
  2. 09 Apr, 2014 1 commit
  3. 08 Apr, 2014 4 commits
  4. 07 Apr, 2014 4 commits
  5. 01 Apr, 2014 2 commits
    • Apollon Oikonomopoulos's avatar
      KVM: use running HVPs to calc blockdev options · 918baead
      Apollon Oikonomopoulos authored
      Commit 0fe22ad2
       moved the call to _GenerateKVMBlockDevicesOptions() from
      _GenerateKVMRuntime() to _ExecuteKvmRuntime. However, while in
      _GenerateKVMRuntime() there is only one set of HVPs, those of the
      instance's configuration, in _ExecuteKVMRuntime there are two sets of
        - The instance's configured HVPs
        - The HVPs the instance used when it was started
      Currently, _GenerateKVMBlockDevicesOptions() uses the first set of HVPs
      only, meaning that it will always read the configured HVPs. Since
      _ExecuteKVMRuntime() is also called at migration time, it should use the
      instance's running HVPs, otherwise migration while fail.
      The following scenario will lead to a crash on migration:
       1. Start the instance (assuming 'paravirtual' disk_type)
       2. gnt-instance modify -H disk_type=scsi <instance_name>
       3. gnt-instance migrate <instance_name>
      Step 3 will start the instance on the remote node with all disks
      configured as 'scsi' and qemu will crash post-migration.
      We fix this by making sure _GenerateKVMBlockDevicesOptions gets the
      running HVPs as well.
      Signed-off-by: default avatarApollon Oikonomopoulos <apoikos@gmail.com>
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
    • Apollon Oikonomopoulos's avatar
      KVM: reserve a PCI slot for the SCSI controller · 5e6d16ab
      Apollon Oikonomopoulos authored
      Currently instances with disk_type=scsi are broken, because the SCSI
      controller uses a PCI slot not accounted for in the PCI assignment
      logic. We reserve a throw-away slot just for that.
      This is a temporary workaround and will be reverted during the upcoming
      Signed-off-by: default avatarApollon Oikonomopoulos <apoikos@gmail.com>
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
  6. 26 Mar, 2014 1 commit
  7. 24 Mar, 2014 1 commit
    • Dimitris Aragiorgis's avatar
      kvm: Add migration capabilities as an hvparam · 937ff984
      Dimitris Aragiorgis authored
      Latest QEMU versions support various migration capabilities. Each
      can be enabled/disabled with 'migrate_set_capability' monitor
      Version 1.7.0 defines x-rdma-pin-all, auto-converge, zero-blocks,
      and xbzrle migration capabilities.
      Since migration capabilities are more than one, and because hvparams
      accept only strings/integers and not dicts we decide to provide
      the capabilities that should be on via a ":" separated string.
      In other words one can use the following to enable xbzrle and
      -H kvm:migration_caps=xbzrle:auto-converge
      IMPORTANT: xbzrle may result to BSOD for instances running
      Windows 2008r8 on drbd.
      Update man page of gnt-instance to include the new hvparam.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
  8. 17 Mar, 2014 2 commits
    • Dimitris Aragiorgis's avatar
      Fix conflict between virtio + spice or soundhw · 3a72e34a
      Dimitris Aragiorgis authored
      With regard to PCI slot occupied by a KVM instance we have
      observed the following:
      1) Slot 0 will always be Host bridge.
      2) Slot 1 will always be ISA bridge.
      3) Slot 2 will always be VGA controller (even with -display none).
      4) If soundhw=hda|ac97|es1370 an extra PCI slot is occupied.
         This slot *MUST* be the No. 3.
      5) Option '-balloon virtio' gets an extra PCI slot.
         Still it can take id, bus, and addr args and be placed anywhere
      6) If spice is used instead of vnc we have:
         * No extra PCI slot gets occupied without vdagent
         * Otherwise we have the following extra optionsa [1]
           a) -device virtio-serial-pci
              (this can take id, bus, and addr args too)
           b) -device virtserialport,chardev=spicechannel0,...
           c) -chardev spicevmc,id=spicechannel0
      This patch does the following:
      1) Change _DEFAULT_PCI_RESERVATIONS to "1110...."
      2) Move soundhw option early in the command line and if hda etc.
         reserve slot 3.
      3) Add id, bus, and addr in balloon option and reserve next slot.
      4) Add id, bus, and addr in -device virtio-serial-pci option and if
         passed reserve next slot.
      [1] http://www.linux-kvm.org/page/SPICE
      Fixes issue 757.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
    • Dimitris Aragiorgis's avatar
      Fix bitarray ops wrt PCI slots · d13fb3f1
      Dimitris Aragiorgis authored
      Introduce new method `_GetFreeSlot()` responsible only for bitarray
      operations. It fixes search in case of bitarray is either '0000..'
      or '1111..'.
      Use it instead of `_UpdatePCISlots()` and in `_GetFreePCISlot()`.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
  9. 07 Mar, 2014 5 commits
  10. 06 Feb, 2014 5 commits
  11. 04 Feb, 2014 1 commit
  12. 24 Jan, 2014 1 commit
  13. 17 Jan, 2014 3 commits
  14. 13 Jan, 2014 3 commits
  15. 09 Jan, 2014 1 commit
    • Michele Tartara's avatar
      Improve backwards compatibility of Issue 649 fix · 02a6b50a
      Michele Tartara authored
      Commit e6e4ff4c
       fixed Issue 649 by switching the
      separator for usb_devices from comma to space. That solved the problem with
      the command line, but RAPI was able to work with commas too, so, for backwards
      compatibility we need to keep supporting that as well.
      Also, in order to avoid changing the format of the config file, the default
      internal representation is brought back to being comma-based, and it is changed
      at the interface level (CLI or RAPI) before being passed on.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
  16. 07 Jan, 2014 1 commit
  17. 16 Dec, 2013 1 commit