[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 2/4] spapr: Add /rtas/ibm,change-msix-capable
From: |
Sam Bobroff |
Subject: |
[Qemu-ppc] [PATCH 2/4] spapr: Add /rtas/ibm,change-msix-capable |
Date: |
Fri, 3 Jul 2015 13:42:18 +1000 |
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 <address@hidden>
---
hw/ppc/spapr.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 603f517..6801724 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -543,6 +543,10 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
_FDT((fdt_property_cell(fdt, "rtas-error-log-max", RTAS_ERROR_LOG_MAX)));
+ 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.
--
2.1.4
- [Qemu-ppc] [PATCH 0/4] spapr: Small PAPR compliance fixes, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 4/4] spapr: SPLPAR Characteristics, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 3/4] spapr: Make ibm, change-msi respect 3 return values, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 2/4] spapr: Add /rtas/ibm,change-msix-capable,
Sam Bobroff <=
- [Qemu-ppc] [PATCH 1/4] spapr: Add /ibm,partition-name, Sam Bobroff, 2015/07/02
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes, David Gibson, 2015/07/07