Skip to content

Commit

Permalink
s390/mm: Remove sev_active() function
Browse files Browse the repository at this point in the history
All references to sev_active() were moved to arch/x86 so we don't need to
define it for s390 anymore.

Signed-off-by: Thiago Jung Bauermann <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Halil Pasic <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
bauermann authored and mpe committed Aug 9, 2019
1 parent ae7eb82 commit 5cbdaee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion arch/s390/include/asm/mem_encrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef __ASSEMBLY__

static inline bool mem_encrypt_active(void) { return false; }
extern bool sev_active(void);

int set_memory_encrypted(unsigned long addr, int numpages);
int set_memory_decrypted(unsigned long addr, int numpages);
Expand Down
7 changes: 1 addition & 6 deletions arch/s390/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,9 @@ int set_memory_decrypted(unsigned long addr, int numpages)
}

/* are we a protected virtualization guest? */
bool sev_active(void)
{
return is_prot_virt_guest();
}

bool force_dma_unencrypted(struct device *dev)
{
return sev_active();
return is_prot_virt_guest();
}

/* protected virtualization */
Expand Down

0 comments on commit 5cbdaee

Please sign in to comment.