mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-25 04:30:02 +00:00
spapr/xive: activate KVM support
All is in place for KVM now. State synchronization and migration will come next. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20190513084245.25755-8-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
277dd3d771
commit
0dc9f5f849
@ -248,19 +248,10 @@ SpaprIrq spapr_irq_xics = {
|
||||
static void spapr_irq_init_xive(SpaprMachineState *spapr, int nr_irqs,
|
||||
Error **errp)
|
||||
{
|
||||
MachineState *machine = MACHINE(spapr);
|
||||
uint32_t nr_servers = spapr_max_server_number(spapr);
|
||||
DeviceState *dev;
|
||||
int i;
|
||||
|
||||
/* KVM XIVE device not yet available */
|
||||
if (kvm_enabled()) {
|
||||
if (machine_kernel_irqchip_required(machine)) {
|
||||
error_setg(errp, "kernel_irqchip requested. no KVM XIVE support");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
dev = qdev_create(NULL, TYPE_SPAPR_XIVE);
|
||||
qdev_prop_set_uint32(dev, "nr-irqs", nr_irqs);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user