1. 17 8月, 2018 2 次提交
    • A
      vfio/ccw/pci: Allow devices to opt-in for ballooning · 238e9172
      Alex Williamson 提交于
      If a vfio assigned device makes use of a physical IOMMU, then memory
      ballooning is necessarily inhibited due to the page pinning, lack of
      page level granularity at the IOMMU, and sufficient notifiers to both
      remove the page on balloon inflation and add it back on deflation.
      However, not all devices are backed by a physical IOMMU.  In the case
      of mediated devices, if a vendor driver is well synchronized with the
      guest driver, such that only pages actively used by the guest driver
      are pinned by the host mdev vendor driver, then there should be no
      overlap between pages available for the balloon driver and pages
      actively in use by the device.  Under these conditions, ballooning
      should be safe.
      
      vfio-ccw devices are always mediated devices and always operate under
      the constraints above.  Therefore we can consider all vfio-ccw devices
      as balloon compatible.
      
      The situation is far from straightforward with vfio-pci.  These
      devices can be physical devices with physical IOMMU backing or
      mediated devices where it is unknown whether a physical IOMMU is in
      use or whether the vendor driver is well synchronized to the working
      set of the guest driver.  The safest approach is therefore to assume
      all vfio-pci devices are incompatible with ballooning, but allow user
      opt-in should they have further insight into mediated devices.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      238e9172
    • M
      fw_cfg: ignore suffixes in the bootdevice list dependent on machine class · 907aac2f
      Mark Cave-Ayland 提交于
      For the older machines (such as Mac and SPARC) the DT nodes representing
      bootdevices for disk nodes are irregular for mainly historical reasons.
      
      Since the majority of bootdevice nodes for these machines either do not have a
      separate disk node or require different (custom) names then it is much easier
      for processing to just disable all suffixes for a particular machine.
      
      Introduce a new ignore_boot_device_suffixes MachineClass property to control
      bootdevice suffix generation, defaulting to false in order to preserve
      compatibility.
      Suggested-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Message-Id: <20180810124027.10698-1-mark.cave-ayland@ilande.co.uk>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      907aac2f
  2. 16 8月, 2018 8 次提交
  3. 15 8月, 2018 5 次提交
  4. 07 8月, 2018 1 次提交
  5. 30 7月, 2018 1 次提交
  6. 17 7月, 2018 3 次提交
  7. 16 7月, 2018 1 次提交
  8. 10 7月, 2018 2 次提交
  9. 09 7月, 2018 3 次提交
  10. 06 7月, 2018 4 次提交
  11. 03 7月, 2018 5 次提交
  12. 02 7月, 2018 5 次提交