|
From: | Cédric Le Goater |
Subject: | Re: [PATCH] ppc: spapr: Fix device tree entries in absence of XIVE native mode |
Date: | Fri, 30 Jun 2023 07:59:40 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
On 6/30/23 07:30, Gautam Menghani wrote:
Currently, XIVE native exploitation mode is not supported in nested guests. When we boot up a nested guest on PowerNV platform, we observe the following entries in the device tree of nested guest: ``` device_type = "power-ivpe"; compatible = "ibm,power-ivpe"; ``` But as per LoPAR section B.5.9[1], these entries should only be present when XIVE native exploitation mode is being used. Presently, there is no support for nested virtualization in the context of XIVE, and hence, DT shouldn't advertise support for XIVE interrupt controller to a nested guest. Also, according to the present behaviour, when we boot a nested KVM guest, the following QEMU warnings are reported : ``` Calling ibm,client-architecture-support...qemu-system-ppc64: warning: kernel_irqchip allowed but unavailable: IRQ_XIVE capability must be present for KVM Falling back to kernel-irqchip=off
Yes. A QEMU/KVM principle is to be closest as possible to HW using emulation if necessary, this to be compatible with a platform which would have the required HW feature. The reason behind is migration. This is the case on L1s running on Boston systems which have an old FW not supporting XIVE migration. pseries machines runs with and emulated XIVE IC. It allowed to migrate such a guest from a Boston to a Witherspoon where XIVE HW was supported in guests. KVM-on-pseries is just another platform where XIVE can not use the KVM backend and needs to run under partially emulation. I see no reason to change. Thanks, C.
[Prev in Thread] | Current Thread | [Next in Thread] |