@@ -65,4 +65,6 @@ void sev_dev_destroy(struct psp_device *psp);
void sev_pci_init(void);
void sev_pci_exit(void);
+bool sev_version_greater_or_equal(u8 maj, u8 min);
+
#endif /* __SEV_DEV_H */
@@ -945,6 +945,7 @@ int sev_do_cmd(int cmd, void *data, int *psp_ret);
void *psp_copy_user_blob(u64 uaddr, u32 len);
void *snp_alloc_firmware_page(gfp_t mask);
void snp_free_firmware_page(void *addr);
+int snp_reclaim_pages(unsigned long paddr, unsigned int npages, bool locked);
#else /* !CONFIG_CRYPTO_DEV_SP_PSP */
@@ -109,7 +109,7 @@ static void *sev_init_ex_buffer;
*/
static struct sev_data_range_list *snp_range_list;
-static inline bool sev_version_greater_or_equal(u8 maj, u8 min)
+bool sev_version_greater_or_equal(u8 maj, u8 min)
{
struct sev_device *sev = psp_master->sev_data;
@@ -365,7 +365,7 @@ static int sev_write_init_ex_file_if_required(int cmd_id)
*/
static int __sev_do_cmd_locked(int cmd, void *data, int *psp_ret);
-static int snp_reclaim_pages(unsigned long paddr, unsigned int npages, bool locked)
+int snp_reclaim_pages(unsigned long paddr, unsigned int npages, bool locked)
{
int ret, err, i;
For SEV TIO. Signed-off-by: Alexey Kardashevskiy <aik@amd.com> --- drivers/crypto/ccp/sev-dev.h | 2 ++ include/linux/psp-sev.h | 1 + drivers/crypto/ccp/sev-dev.c | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-)