2022-01-14 23:05:34

by Matthew Rosato

[permalink] [raw]
Subject: [PATCH v2 09/30] s390/pci: export some routines related to RPCIT processing

KVM will re-use dma_walk_cpu_trans to walk the host shadow table and
will also need to be able to call zpci_refresh_trans to re-issue a RPCIT.

Reviewed-by: Niklas Schnelle <[email protected]>
Acked-by: Christian Borntraeger <[email protected]>
Signed-off-by: Matthew Rosato <[email protected]>
---
arch/s390/pci/pci_dma.c | 1 +
arch/s390/pci/pci_insn.c | 1 +
2 files changed, 2 insertions(+)

diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c
index f46833a25526..a81de48d5ea7 100644
--- a/arch/s390/pci/pci_dma.c
+++ b/arch/s390/pci/pci_dma.c
@@ -116,6 +116,7 @@ unsigned long *dma_walk_cpu_trans(unsigned long *rto, dma_addr_t dma_addr)
px = calc_px(dma_addr);
return &pto[px];
}
+EXPORT_SYMBOL_GPL(dma_walk_cpu_trans);

void dma_update_cpu_trans(unsigned long *entry, phys_addr_t page_addr, int flags)
{
diff --git a/arch/s390/pci/pci_insn.c b/arch/s390/pci/pci_insn.c
index 2a47b3936e44..0509554301c7 100644
--- a/arch/s390/pci/pci_insn.c
+++ b/arch/s390/pci/pci_insn.c
@@ -95,6 +95,7 @@ int zpci_refresh_trans(u64 fn, u64 addr, u64 range)

return (cc) ? -EIO : 0;
}
+EXPORT_SYMBOL_GPL(zpci_refresh_trans);

/* Set Interruption Controls */
int zpci_set_irq_ctrl(u16 ctl, u8 isc, union zpci_sic_iib *iib)
--
2.27.0


2022-01-20 02:10:18

by Pierre Morel

[permalink] [raw]
Subject: Re: [PATCH v2 09/30] s390/pci: export some routines related to RPCIT processing



On 1/14/22 21:31, Matthew Rosato wrote:
> KVM will re-use dma_walk_cpu_trans to walk the host shadow table and
> will also need to be able to call zpci_refresh_trans to re-issue a RPCIT.
>
> Reviewed-by: Niklas Schnelle <[email protected]>
> Acked-by: Christian Borntraeger <[email protected]>
> Signed-off-by: Matthew Rosato <[email protected]>


Reviewed-by: Pierre Morel <[email protected]>

> ---
> arch/s390/pci/pci_dma.c | 1 +
> arch/s390/pci/pci_insn.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c
> index f46833a25526..a81de48d5ea7 100644
> --- a/arch/s390/pci/pci_dma.c
> +++ b/arch/s390/pci/pci_dma.c
> @@ -116,6 +116,7 @@ unsigned long *dma_walk_cpu_trans(unsigned long *rto, dma_addr_t dma_addr)
> px = calc_px(dma_addr);
> return &pto[px];
> }
> +EXPORT_SYMBOL_GPL(dma_walk_cpu_trans);
>
> void dma_update_cpu_trans(unsigned long *entry, phys_addr_t page_addr, int flags)
> {
> diff --git a/arch/s390/pci/pci_insn.c b/arch/s390/pci/pci_insn.c
> index 2a47b3936e44..0509554301c7 100644
> --- a/arch/s390/pci/pci_insn.c
> +++ b/arch/s390/pci/pci_insn.c
> @@ -95,6 +95,7 @@ int zpci_refresh_trans(u64 fn, u64 addr, u64 range)
>
> return (cc) ? -EIO : 0;
> }
> +EXPORT_SYMBOL_GPL(zpci_refresh_trans);
>
> /* Set Interruption Controls */
> int zpci_set_irq_ctrl(u16 ctl, u8 isc, union zpci_sic_iib *iib)
>

--
Pierre Morel
IBM Lab Boeblingen