spapr.c (b69c3c21a5d11075d42100d5cfe0a736593fae6b) | spapr.c (8e5c952b370b57beb642826882c80e1b66a9cf12) |
---|---|
1/* 2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator 3 * 4 * Copyright (c) 2004-2007 Fabrice Bellard 5 * Copyright (c) 2007 Jocelyn Mayer 6 * Copyright (c) 2010 David Gibson, IBM Corporation. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 3999 unchanged lines hidden (view full) --- 4008 if (!smc->dr_phb_enabled) { 4009 return; 4010 } 4011 4012 drc = spapr_drc_by_id(TYPE_SPAPR_DRC_PHB, sphb->index); 4013 /* hotplug hooks should check it's enabled before getting this far */ 4014 assert(drc); 4015 | 1/* 2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator 3 * 4 * Copyright (c) 2004-2007 Fabrice Bellard 5 * Copyright (c) 2007 Jocelyn Mayer 6 * Copyright (c) 2010 David Gibson, IBM Corporation. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 3999 unchanged lines hidden (view full) --- 4008 if (!smc->dr_phb_enabled) { 4009 return; 4010 } 4011 4012 drc = spapr_drc_by_id(TYPE_SPAPR_DRC_PHB, sphb->index); 4013 /* hotplug hooks should check it's enabled before getting this far */ 4014 assert(drc); 4015 |
4016 spapr_drc_attach(drc, DEVICE(dev), &local_err); | 4016 spapr_drc_attach(drc, dev, &local_err); |
4017 if (local_err) { 4018 error_propagate(errp, local_err); 4019 return; 4020 } 4021 4022 if (hotplugged) { 4023 spapr_hotplug_req_add_by_index(drc); 4024 } else { --- 966 unchanged lines hidden --- | 4017 if (local_err) { 4018 error_propagate(errp, local_err); 4019 return; 4020 } 4021 4022 if (hotplugged) { 4023 spapr_hotplug_req_add_by_index(drc); 4024 } else { --- 966 unchanged lines hidden --- |