mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
ppc/xics: export the XICS init routines
There is nothing left related to the XICS object in the realize functions of the KVMXICSState and XICSState class. So adapt the interfaces to call these routines directly from the sPAPR machine init sequence. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
852ad27e14
commit
2192a9303d
4 changed files with 13 additions and 20 deletions
|
@ -161,7 +161,8 @@ static XICSState *xics_system_init(MachineState *machine,
|
|||
if (kvm_enabled()) {
|
||||
Error *err = NULL;
|
||||
|
||||
if (machine_kernel_irqchip_allowed(machine)) {
|
||||
if (machine_kernel_irqchip_allowed(machine) &&
|
||||
!xics_kvm_init(SPAPR_MACHINE(machine), errp)) {
|
||||
xics = try_create_xics(SPAPR_MACHINE(machine),
|
||||
TYPE_XICS_SPAPR_KVM, TYPE_ICS_KVM,
|
||||
TYPE_KVM_ICP, nr_servers, nr_irqs, &err);
|
||||
|
@ -175,6 +176,7 @@ static XICSState *xics_system_init(MachineState *machine,
|
|||
}
|
||||
|
||||
if (!xics) {
|
||||
xics_spapr_init(SPAPR_MACHINE(machine), errp);
|
||||
xics = try_create_xics(SPAPR_MACHINE(machine),
|
||||
TYPE_XICS_SPAPR, TYPE_ICS_SIMPLE,
|
||||
TYPE_ICP, nr_servers, nr_irqs, errp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue