mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 05:06:56 +00:00
ppc/spapr: remove deprecated machine pseries-2.3
Commit 1392617d35
intended to tag pseries-2.1 - 2.11 machines as
deprecated with reasons mentioned in its commit log.
Removing pseries-2.3 specific code with this patch for now.
While at it, also remove the dynamic-reconfiguration option which was
introduced to disable it by default for legacy machines until pseries-2.3.
Suggested-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
6e3d3578d7
commit
b89c746c22
@ -281,19 +281,6 @@ GlobalProperty hw_compat_2_4[] = {
|
|||||||
};
|
};
|
||||||
const size_t hw_compat_2_4_len = G_N_ELEMENTS(hw_compat_2_4);
|
const size_t hw_compat_2_4_len = G_N_ELEMENTS(hw_compat_2_4);
|
||||||
|
|
||||||
GlobalProperty hw_compat_2_3[] = {
|
|
||||||
{ "virtio-blk-pci", "any_layout", "off" },
|
|
||||||
{ "virtio-balloon-pci", "any_layout", "off" },
|
|
||||||
{ "virtio-serial-pci", "any_layout", "off" },
|
|
||||||
{ "virtio-9p-pci", "any_layout", "off" },
|
|
||||||
{ "virtio-rng-pci", "any_layout", "off" },
|
|
||||||
{ TYPE_PCI_DEVICE, "x-pcie-lnksta-dllla", "off" },
|
|
||||||
{ "migration", "send-configuration", "off" },
|
|
||||||
{ "migration", "send-section-footer", "off" },
|
|
||||||
{ "migration", "store-global-state", "off" },
|
|
||||||
};
|
|
||||||
const size_t hw_compat_2_3_len = G_N_ELEMENTS(hw_compat_2_3);
|
|
||||||
|
|
||||||
MachineState *current_machine;
|
MachineState *current_machine;
|
||||||
|
|
||||||
static char *machine_get_kernel(Object *obj, Error **errp)
|
static char *machine_get_kernel(Object *obj, Error **errp)
|
||||||
|
@ -5349,21 +5349,6 @@ static void spapr_machine_2_4_class_options(MachineClass *mc)
|
|||||||
|
|
||||||
DEFINE_SPAPR_MACHINE(2, 4);
|
DEFINE_SPAPR_MACHINE(2, 4);
|
||||||
|
|
||||||
/*
|
|
||||||
* pseries-2.3
|
|
||||||
*/
|
|
||||||
|
|
||||||
static void spapr_machine_2_3_class_options(MachineClass *mc)
|
|
||||||
{
|
|
||||||
static GlobalProperty compat[] = {
|
|
||||||
{ "spapr-pci-host-bridge", "dynamic-reconfiguration", "off" },
|
|
||||||
};
|
|
||||||
spapr_machine_2_4_class_options(mc);
|
|
||||||
compat_props_add(mc->compat_props, hw_compat_2_3, hw_compat_2_3_len);
|
|
||||||
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
|
||||||
}
|
|
||||||
DEFINE_SPAPR_MACHINE(2, 3);
|
|
||||||
|
|
||||||
static void spapr_machine_register_types(void)
|
static void spapr_machine_register_types(void)
|
||||||
{
|
{
|
||||||
type_register_static(&spapr_machine_info);
|
type_register_static(&spapr_machine_info);
|
||||||
|
@ -1237,10 +1237,6 @@ static void add_drcs(SpaprPhbState *phb, PCIBus *bus)
|
|||||||
int i;
|
int i;
|
||||||
uint8_t chassis;
|
uint8_t chassis;
|
||||||
|
|
||||||
if (!phb->dr_enabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
chassis = chassis_from_bus(bus);
|
chassis = chassis_from_bus(bus);
|
||||||
|
|
||||||
if (pci_bus_is_root(bus)) {
|
if (pci_bus_is_root(bus)) {
|
||||||
@ -1260,10 +1256,6 @@ static void remove_drcs(SpaprPhbState *phb, PCIBus *bus)
|
|||||||
int i;
|
int i;
|
||||||
uint8_t chassis;
|
uint8_t chassis;
|
||||||
|
|
||||||
if (!phb->dr_enabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
chassis = chassis_from_bus(bus);
|
chassis = chassis_from_bus(bus);
|
||||||
|
|
||||||
for (i = PCI_SLOT_MAX * PCI_FUNC_MAX - 1; i >= 0; i--) {
|
for (i = PCI_SLOT_MAX * PCI_FUNC_MAX - 1; i >= 0; i--) {
|
||||||
@ -1548,17 +1540,6 @@ static void spapr_pci_pre_plug(HotplugHandler *plug_handler,
|
|||||||
PCIBus *bus = PCI_BUS(qdev_get_parent_bus(DEVICE(pdev)));
|
PCIBus *bus = PCI_BUS(qdev_get_parent_bus(DEVICE(pdev)));
|
||||||
uint32_t slotnr = PCI_SLOT(pdev->devfn);
|
uint32_t slotnr = PCI_SLOT(pdev->devfn);
|
||||||
|
|
||||||
if (!phb->dr_enabled) {
|
|
||||||
/* if this is a hotplug operation initiated by the user
|
|
||||||
* we need to let them know it's not enabled
|
|
||||||
*/
|
|
||||||
if (plugged_dev->hotplugged) {
|
|
||||||
error_setg(errp, "Bus '%s' does not support hotplugging",
|
|
||||||
phb->parent_obj.bus->qbus.name);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IS_PCI_BRIDGE(plugged_dev)) {
|
if (IS_PCI_BRIDGE(plugged_dev)) {
|
||||||
if (!bridge_has_valid_chassis_nr(OBJECT(plugged_dev), errp)) {
|
if (!bridge_has_valid_chassis_nr(OBJECT(plugged_dev), errp)) {
|
||||||
return;
|
return;
|
||||||
@ -1591,14 +1572,6 @@ static void spapr_pci_plug(HotplugHandler *plug_handler,
|
|||||||
SpaprDrc *drc = drc_from_dev(phb, pdev);
|
SpaprDrc *drc = drc_from_dev(phb, pdev);
|
||||||
uint32_t slotnr = PCI_SLOT(pdev->devfn);
|
uint32_t slotnr = PCI_SLOT(pdev->devfn);
|
||||||
|
|
||||||
/*
|
|
||||||
* If DR is disabled we don't need to do anything in the case of
|
|
||||||
* hotplug or coldplug callbacks.
|
|
||||||
*/
|
|
||||||
if (!phb->dr_enabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
g_assert(drc);
|
g_assert(drc);
|
||||||
|
|
||||||
if (IS_PCI_BRIDGE(plugged_dev)) {
|
if (IS_PCI_BRIDGE(plugged_dev)) {
|
||||||
@ -1673,12 +1646,6 @@ static void spapr_pci_unplug_request(HotplugHandler *plug_handler,
|
|||||||
PCIDevice *pdev = PCI_DEVICE(plugged_dev);
|
PCIDevice *pdev = PCI_DEVICE(plugged_dev);
|
||||||
SpaprDrc *drc = drc_from_dev(phb, pdev);
|
SpaprDrc *drc = drc_from_dev(phb, pdev);
|
||||||
|
|
||||||
if (!phb->dr_enabled) {
|
|
||||||
error_setg(errp, "Bus '%s' does not support hotplugging",
|
|
||||||
phb->parent_obj.bus->qbus.name);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
g_assert(drc);
|
g_assert(drc);
|
||||||
g_assert(drc->dev == plugged_dev);
|
g_assert(drc->dev == plugged_dev);
|
||||||
|
|
||||||
@ -2089,8 +2056,6 @@ static Property spapr_phb_properties[] = {
|
|||||||
SPAPR_PCI_MEM64_WIN_SIZE),
|
SPAPR_PCI_MEM64_WIN_SIZE),
|
||||||
DEFINE_PROP_UINT64("io_win_size", SpaprPhbState, io_win_size,
|
DEFINE_PROP_UINT64("io_win_size", SpaprPhbState, io_win_size,
|
||||||
SPAPR_PCI_IO_WIN_SIZE),
|
SPAPR_PCI_IO_WIN_SIZE),
|
||||||
DEFINE_PROP_BOOL("dynamic-reconfiguration", SpaprPhbState, dr_enabled,
|
|
||||||
true),
|
|
||||||
/* Default DMA window is 0..1GB */
|
/* Default DMA window is 0..1GB */
|
||||||
DEFINE_PROP_UINT64("dma_win_addr", SpaprPhbState, dma_win_addr, 0),
|
DEFINE_PROP_UINT64("dma_win_addr", SpaprPhbState, dma_win_addr, 0),
|
||||||
DEFINE_PROP_UINT64("dma_win_size", SpaprPhbState, dma_win_size, 0x40000000),
|
DEFINE_PROP_UINT64("dma_win_size", SpaprPhbState, dma_win_size, 0x40000000),
|
||||||
|
@ -822,7 +822,4 @@ extern const size_t hw_compat_2_5_len;
|
|||||||
extern GlobalProperty hw_compat_2_4[];
|
extern GlobalProperty hw_compat_2_4[];
|
||||||
extern const size_t hw_compat_2_4_len;
|
extern const size_t hw_compat_2_4_len;
|
||||||
|
|
||||||
extern GlobalProperty hw_compat_2_3[];
|
|
||||||
extern const size_t hw_compat_2_3_len;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -53,7 +53,6 @@ struct SpaprPhbState {
|
|||||||
uint32_t index;
|
uint32_t index;
|
||||||
uint64_t buid;
|
uint64_t buid;
|
||||||
char *dtbusname;
|
char *dtbusname;
|
||||||
bool dr_enabled;
|
|
||||||
|
|
||||||
MemoryRegion memspace, iospace;
|
MemoryRegion memspace, iospace;
|
||||||
hwaddr mem_win_addr, mem_win_size, mem64_win_addr, mem64_win_size;
|
hwaddr mem_win_addr, mem_win_size, mem64_win_addr, mem64_win_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user