Skip to content
Snippets Groups Projects
  1. Apr 05, 2017
  2. Mar 22, 2017
  3. Mar 15, 2017
  4. Mar 02, 2017
  5. Mar 01, 2017
    • Marc-André Lureau's avatar
      bus: do not unref hotplug handler · 675f22c6
      Marc-André Lureau authored
      
      Apparently, none of the bus owner give a reference to the hotplug
      handler property, do not unref it on bus release.
      
      Furthermore, a bus is allowed to be its own hotplug handler, which can
      be seen in qbus_set_bus_hotplug_handler() function. However, in this
      case, the reference can't be given to the property, or this will create
      a cyclic dependency and the bus will never be free.
      
      Each bus owner should manage the lifecycle of the hotplug handler.
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      675f22c6
    • Igor Mammedov's avatar
      pc: pcihp: avoid adding ACPI_PCIHP_PROP_BSEL twice · f0c9d64a
      Igor Mammedov authored
      
      PCI hotplug for bridges was introduced only since 2.0 however
        acpi_set_bsel()->object_property_add_uint32_ptr(bus, ACPI_PCIHP_PROP_BSEL)
      didn't take in account that for legacy mode (1.7) when
      PCI hotplug for bridges is unavailable and ACPI_PCIHP_PROP_BSEL property
      the only bus "PCI.0' has been created earlier at acpi_pcihp_init() time.
      
      We managed to live with it only because of error rised by adding
      a duplicate property in acpi_set_bsel() has been ignored which
      resulted in useless leaking of just allocated (int)bus_bsel.
      
      Issue affects only 1.7 machine type as ACPI tables supported by
      QEMU were introduced at that time, but there wasn't PCI hotplug
      for bridges till the next release (2.0).
      
      Fix it by removing duplicate ACPI_PCIHP_PROP_BSEL intialization
      in acpi_pcihp_init() and doing it only in one place acpi_set_pci_info().
      
      PS:
      do not ignore error returned by object_property_add_uint32_ptr()
      and abort QEMU since it's programming error which should be fixed
      instead of being ignored.
      
      Signed-off-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Reported-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <1470211497-116801-1-git-send-email-imammedo@redhat.com>
      Reviewed-by: default avatarMarcel Apfelbaum <marcel@redhat.com>
      Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      [ Marc-André - Remove now unused ACPI_PCIHP_LEGACY_SIZE ]
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      f0c9d64a
  6. Feb 28, 2017
  7. Feb 22, 2017
  8. Jan 23, 2017
  9. Jan 16, 2017
  10. Jan 10, 2017
  11. Nov 15, 2016
  12. Nov 01, 2016
Loading