Re: [PATCH v3] irqchip/loongson-eiointc: Add extioi virt extension support

From: Thomas Gleixner
Date: Tue Jun 25 2024 - 15:34:43 EST


On Tue, Jun 25 2024 at 22:19, Huacai Chen wrote:
>> static int cpu_to_eio_node(int cpu)
>> {
>> - return cpu_logical_map(cpu) / CORES_PER_EIO_NODE;
>> + int cores = cpu_has_hypervisor ? MAX_CORES_PER_EIO_NODE : CORES_PER_EIO_NODE;
> I think the correct condition is not cpu_has_hypervisor, but something
> read from the virtual registers?

I dropped the commit for now until this is sorted out.

Thanks,

tglx