diff options
author | 2023-08-15 14:43:31 -0400 | |
---|---|---|
committer | 2023-08-18 15:09:29 +0200 | |
commit | cf3fa16a6fd49216ae83502e61bea0d8322b51eb (patch) | |
tree | 89194ffb13d58c7a20d5b1f9d4746fe46d24e858 /arch/s390/kernel/uv.c | |
parent | s390/vfio-ap: check for TAPQ response codes 0x35 and 0x36 (diff) | |
download | wireguard-linux-cf3fa16a6fd49216ae83502e61bea0d8322b51eb.tar.xz wireguard-linux-cf3fa16a6fd49216ae83502e61bea0d8322b51eb.zip |
s390/uv: export uv_pin_shared for direct usage
Export the uv_pin_shared function so that it can be called from other
modules that carry a GPL-compatible license.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Tested-by: Viktor Mihajlovski <mihajlov@linux.ibm.com>
Link: https://lore.kernel.org/r/20230815184333.6554-11-akrowiak@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/uv.c')
-rw-r--r-- | arch/s390/kernel/uv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c index 66f0eb1c872b..b771f1b4cdd1 100644 --- a/arch/s390/kernel/uv.c +++ b/arch/s390/kernel/uv.c @@ -88,7 +88,7 @@ fail: * Requests the Ultravisor to pin the page in the shared state. This will * cause an intercept when the guest attempts to unshare the pinned page. */ -static int uv_pin_shared(unsigned long paddr) +int uv_pin_shared(unsigned long paddr) { struct uv_cb_cfs uvcb = { .header.cmd = UVC_CMD_PIN_PAGE_SHARED, @@ -100,6 +100,7 @@ static int uv_pin_shared(unsigned long paddr) return -EINVAL; return 0; } +EXPORT_SYMBOL_GPL(uv_pin_shared); /* * Requests the Ultravisor to destroy a guest page and make it |