aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/include
diff options
context:
space:
mode:
authorGravatar Janosch Frank <frankja@linux.ibm.com> 2023-08-15 14:43:31 -0400
committerGravatar Heiko Carstens <hca@linux.ibm.com> 2023-08-18 15:09:29 +0200
commitcf3fa16a6fd49216ae83502e61bea0d8322b51eb (patch)
tree89194ffb13d58c7a20d5b1f9d4746fe46d24e858 /arch/s390/include
parents390/vfio-ap: check for TAPQ response codes 0x35 and 0x36 (diff)
downloadlinux-cf3fa16a6fd49216ae83502e61bea0d8322b51eb.tar.gz
linux-cf3fa16a6fd49216ae83502e61bea0d8322b51eb.tar.bz2
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/include')
-rw-r--r--arch/s390/include/asm/uv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
index d6bb2f4f78d1..d2cd42bb2c26 100644
--- a/arch/s390/include/asm/uv.h
+++ b/arch/s390/include/asm/uv.h
@@ -463,6 +463,7 @@ static inline int is_prot_virt_host(void)
return prot_virt_host;
}
+int uv_pin_shared(unsigned long paddr);
int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb);
int gmap_destroy_page(struct gmap *gmap, unsigned long gaddr);
int uv_destroy_owned_page(unsigned long paddr);
@@ -475,6 +476,11 @@ void setup_uv(void);
#define is_prot_virt_host() 0
static inline void setup_uv(void) {}
+static inline int uv_pin_shared(unsigned long paddr)
+{
+ return 0;
+}
+
static inline int uv_destroy_owned_page(unsigned long paddr)
{
return 0;