1. 05 4月, 2018 1 次提交
    • M
      qemu_cgroup: Handle device mapper targets properly · 6dd84f68
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1557769
      
      Problem with device mapper targets is that there can be several
      other devices 'hidden' behind them. For instance, /dev/dm-1 can
      consist of /dev/sda, /dev/sdb and /dev/sdc. Therefore, when
      setting up devices CGroup and namespaces we have to take this
      into account.
      
      This bug was exposed after Linux kernel was fixed. Initially,
      kernel used different functions for getting block device in
      open() and ioctl(). While CGroup permissions were checked in the
      former case, due to a bug in kernel they were not checked in the
      latter case. This changed with the upstream commit of
      519049afead4f7c3e6446028c41e99fde958cc04 (v4.16-rc5~11^2~4).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      6dd84f68
  2. 03 4月, 2018 18 次提交
  3. 02 4月, 2018 1 次提交
  4. 01 4月, 2018 3 次提交
  5. 26 3月, 2018 1 次提交
  6. 24 3月, 2018 5 次提交
  7. 23 3月, 2018 7 次提交
  8. 20 3月, 2018 1 次提交
    • J
      qemu: Don't assign alias to disabled balloon device · 1554eafb
      Jiri Denemark 提交于
      <memballoon model='none'/> is the only way to disable balloon driver
      since libvirt will add one automatically if the memballoon element is
      missing. In other words, there's no balloon device if model is 'none'
      and generating an alias for it makes no sense. The alias will be ignored
      when parsing the XML and it will disappear once libvirtd is restarted.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      1554eafb
  9. 19 3月, 2018 1 次提交
    • E
      qemu: hostdev: Fix the error on VM start with an mdev when IOMMU is off · e02d102b
      Erik Skultety 提交于
      Commit b4c2ac8d made a false assumption that IOMMU support necessary
      for an mdev device to be assigned to a VM. Unlike direct PCI assignment,
      IOMMU support is not needed for mediated devices, as the physical parent
      device provides the isolation, therefore, simply checking for VFIO
      presence is enough to successfully start a VM.
      
      Luckily, this issue is not serious, since as of yet, libvirt mandates
      mdevs to be pre-created prior to a domain's launch - if it is,
      everything does work smoothly even with IOMMU disabled, because the
      parent device will ensure the iommu groups we try to access exist.
      However, if there are *no* IOMMU groups yet, thus no mdev exists yet, one
      would see the following error:
      
      "unsupported configuration: Mediated host device assignment requires VFIO
      support"
      
      The error msg above is simply wrong and doesn't even reflect the IOMMU
      reality, so after applying this patch one would rather see the following
      error in such case instead:
      
      "device not found: mediated device '<UUID>' not found"
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      e02d102b
  10. 18 3月, 2018 1 次提交
  11. 16 3月, 2018 1 次提交
    • M
      qemu: Build usb controller command line more wisely · b133fac3
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1552127
      
      When building command line for USB controllers we have to do more
      than just put controller's alias onto the command line. QEMU has
      concept of these joined USB controllers. For instance ehci and
      uhci controllers need to create the same USB bus. To achieve that
      the slave controller needs to refer the master controller. This
      worked until we've introduced user aliases because both master
      and slave had the same alias. With user aliases slave can have
      different alias than master. Therefore, when generating command
      line for slave we need to look up the master's alias.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b133fac3