spapr_pci.c (0db949f1810f4d497762d57d8db6f219c0607529) | spapr_pci.c (981c3dcd948907f1127bc1d85b6e455dce687096) |
---|---|
1/* 2 * QEMU sPAPR PCI host originated from Uninorth PCI host 3 * 4 * Copyright (c) 2011 Alexey Kardashevskiy, IBM Corporation. 5 * Copyright (C) 2011 David Gibson, IBM Corporation. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 1573 unchanged lines hidden (view full) --- 1582 */ 1583 pci_device_reset(PCI_DEVICE(plugged_dev)); 1584 1585 if (pc->is_bridge) { 1586 spapr_pci_bridge_unplug(phb, PCI_BRIDGE(plugged_dev)); 1587 return; 1588 } 1589 | 1/* 2 * QEMU sPAPR PCI host originated from Uninorth PCI host 3 * 4 * Copyright (c) 2011 Alexey Kardashevskiy, IBM Corporation. 5 * Copyright (C) 2011 David Gibson, IBM Corporation. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 1573 unchanged lines hidden (view full) --- 1582 */ 1583 pci_device_reset(PCI_DEVICE(plugged_dev)); 1584 1585 if (pc->is_bridge) { 1586 spapr_pci_bridge_unplug(phb, PCI_BRIDGE(plugged_dev)); 1587 return; 1588 } 1589 |
1590 object_property_set_bool(OBJECT(plugged_dev), false, "realized", 1591 &error_abort); | 1590 qdev_unrealize(plugged_dev); |
1592} 1593 1594static void spapr_pci_unplug_request(HotplugHandler *plug_handler, 1595 DeviceState *plugged_dev, Error **errp) 1596{ 1597 SpaprPhbState *phb = SPAPR_PCI_HOST_BRIDGE(DEVICE(plug_handler)); 1598 PCIDevice *pdev = PCI_DEVICE(plugged_dev); 1599 SpaprDrc *drc = drc_from_dev(phb, pdev); --- 844 unchanged lines hidden --- | 1591} 1592 1593static void spapr_pci_unplug_request(HotplugHandler *plug_handler, 1594 DeviceState *plugged_dev, Error **errp) 1595{ 1596 SpaprPhbState *phb = SPAPR_PCI_HOST_BRIDGE(DEVICE(plug_handler)); 1597 PCIDevice *pdev = PCI_DEVICE(plugged_dev); 1598 SpaprDrc *drc = drc_from_dev(phb, pdev); --- 844 unchanged lines hidden --- |