From: Sam Bobroff Date: Tue, 1 Sep 2015 01:23:34 +0000 (+1000) Subject: spapr: Add /rtas/ibm,change-msix-capable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a95f99224c08efcf91b4259c34754f69d962bf23;p=qemu.git spapr: Add /rtas/ibm,change-msix-capable QEMU is MSI-X capable and makes it available via ibm,change-msi, so we should indicate this by adding /rtas/ibm,change-msix-capable to the device tree. This is specificed by PAPR. Signed-off-by: Sam Bobroff Reviewed-by: David Gibson Signed-off-by: David Gibson --- diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 09962c4f8e..ed0abd8498 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -432,6 +432,10 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base, _FDT((fdt_property_cell(fdt, "rtas-event-scan-rate", RTAS_EVENT_SCAN_RATE))); + if (msi_supported) { + _FDT((fdt_property(fdt, "ibm,change-msix-capable", NULL, 0))); + } + /* * According to PAPR, rtas ibm,os-term does not guarantee a return * back to the guest cpu.