X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=arch%2Fx86%2Fmm%2Fmem_encrypt.c;h=f633f9e23b8fcc897b990a3c96aeccee34f0c10d;hb=26a4ef7e481c9d70d2e0cf0be1ad37279fe0b6de;hp=ae78cef7998023e7d7520dab74e0153b543af8f4;hpb=2d743660786ec51f5c1fefd5782bbdee7b227db0;p=linux-2.6-microblaze.git diff --git a/arch/x86/mm/mem_encrypt.c b/arch/x86/mm/mem_encrypt.c index ae78cef79980..f633f9e23b8f 100644 --- a/arch/x86/mm/mem_encrypt.c +++ b/arch/x86/mm/mem_encrypt.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -484,3 +485,8 @@ void __init mem_encrypt_init(void) print_mem_encrypt_feature_info(); } +int arch_has_restricted_virtio_memory_access(void) +{ + return sev_active(); +} +EXPORT_SYMBOL_GPL(arch_has_restricted_virtio_memory_access);