mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-04-03 12:05:13 +02:00
PCI: Extend isolated function probing to LoongArch
commita02fd05661upstream. Like s390 and the jailhouse hypervisor, LoongArch's PCI architecture allows passing isolated PCI functions to a guest OS instance. So it is possible that there is a multi-function device without function 0 for the host or guest. Allow probing such functions by adding a IS_ENABLED(CONFIG_LOONGARCH) case in the hypervisor_isolated_pci_functions() helper. This is similar to commit189c6c33ff("PCI: Extend isolated function probing to s390"). Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20250624062927.4037734-1-chenhuacai@loongson.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
816a6f60c2
commit
154bfe9acb
@@ -37,6 +37,9 @@ static inline bool hypervisor_isolated_pci_functions(void)
|
||||
if (IS_ENABLED(CONFIG_S390))
|
||||
return true;
|
||||
|
||||
if (IS_ENABLED(CONFIG_LOONGARCH))
|
||||
return true;
|
||||
|
||||
return jailhouse_paravirt();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user