File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,7 @@ static inline int is_prot_virt_host(void)
463
463
return prot_virt_host ;
464
464
}
465
465
466
+ int uv_pin_shared (unsigned long paddr );
466
467
int gmap_make_secure (struct gmap * gmap , unsigned long gaddr , void * uvcb );
467
468
int gmap_destroy_page (struct gmap * gmap , unsigned long gaddr );
468
469
int uv_destroy_owned_page (unsigned long paddr );
@@ -475,6 +476,11 @@ void setup_uv(void);
475
476
#define is_prot_virt_host () 0
476
477
static inline void setup_uv (void ) {}
477
478
479
+ static inline int uv_pin_shared (unsigned long paddr )
480
+ {
481
+ return 0 ;
482
+ }
483
+
478
484
static inline int uv_destroy_owned_page (unsigned long paddr )
479
485
{
480
486
return 0 ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ void __init setup_uv(void)
88
88
* Requests the Ultravisor to pin the page in the shared state. This will
89
89
* cause an intercept when the guest attempts to unshare the pinned page.
90
90
*/
91
- static int uv_pin_shared (unsigned long paddr )
91
+ int uv_pin_shared (unsigned long paddr )
92
92
{
93
93
struct uv_cb_cfs uvcb = {
94
94
.header .cmd = UVC_CMD_PIN_PAGE_SHARED ,
@@ -100,6 +100,7 @@ static int uv_pin_shared(unsigned long paddr)
100
100
return - EINVAL ;
101
101
return 0 ;
102
102
}
103
+ EXPORT_SYMBOL_GPL (uv_pin_shared );
103
104
104
105
/*
105
106
* Requests the Ultravisor to destroy a guest page and make it
You can’t perform that action at this time.
0 commit comments