> On 29. Jan 2026, at 16:28, Peter Maydell <[email protected]> wrote: > > On Tue, 27 Jan 2026 at 18:29, Mohamed Mediouni <[email protected]> > wrote: >> >> Signed-off-by: Mohamed Mediouni <[email protected]> > > > >> @@ -2143,6 +2146,9 @@ static void finalize_msi_controller(VirtMachineState >> *vms) >> } >> } >> if (vms->msi_controller == VIRT_MSI_CTRL_AUTO) { >> + if (whpx_enabled() && whpx_irqchip_in_kernel()) { >> + vms->msi_controller = VIRT_MSI_CTRL_GICV2M; >> + } > > This looks like it ought to be an "else if" or some other > construct so we don't fall through into the logic below -- > if we've decided we definitely want a GICV2M we can stop > making decisions about how to set vms->msi_controller. Would just doing a return; be a right way to deal with this, or converting to case? Thank you, -Mohamed >> if (vms->gic_version == VIRT_GIC_VERSION_2) { >> vms->msi_controller = VIRT_MSI_CTRL_GICV2M; >> } > > Otherwise > Reviewed-by: Peter Maydell <[email protected]> > > thanks > -- PMM
- [PATCH v18 00/22] WHPX support for Arm Mohamed Mediouni
- [PATCH v18 01/22] target/arm/kvm: add constan... Mohamed Mediouni
- Re: [PATCH v18 01/22] target/arm/kvm: add... Philippe Mathieu-Daudé
- [PATCH v18 08/22] whpx: Move around files bef... Mohamed Mediouni
- [PATCH v18 10/22] whpx: ifdef out winhvemulat... Mohamed Mediouni
- [PATCH v18 13/22] whpx: interrupt controller ... Mohamed Mediouni
- Re: [PATCH v18 13/22] whpx: interrupt con... Peter Maydell
- Re: [PATCH v18 13/22] whpx: interrupt... Mohamed Mediouni
- [PATCH v18 03/22] qtest: hw/arm: virt: skip A... Mohamed Mediouni
- [PATCH v18 02/22] accel/system: Introduce hwa... Mohamed Mediouni
- [PATCH v18 04/22] hw: arm: virt: rework MSI-X... Mohamed Mediouni
- Re: [PATCH v18 04/22] hw: arm: virt: rewo... Peter Maydell
- [PATCH v18 14/22] whpx: add arm64 support Mohamed Mediouni
- [PATCH v18 05/22] tests: data: update AArch64... Mohamed Mediouni
- Re: [PATCH v18 05/22] tests: data: update... Peter Maydell
- Re: [PATCH v18 05/22] tests: data: up... Peter Maydell
- Re: [PATCH v18 05/22] tests: data: up... Michael S. Tsirkin
- Re: [PATCH v18 05/22] tests: data: up... Mohamed Mediouni
