[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87pls44y0s.ffs@tglx>
Date: Tue, 25 Jun 2024 21:34:27 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: Huacai Chen <chenhuacai@...nel.org>, Song Gao <gaosong@...ngson.cn>
Cc: linux-kernel@...r.kernel.org, jiaxun.yang@...goat.com, maobibo@...ngson.cn
Subject: Re: [PATCH v3] irqchip/loongson-eiointc: Add extioi virt extension
support
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
Powered by blists - more mailing lists