mem_relinquish.h 555 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2022 Google LLC
  4. * Author: Keir Fraser <[email protected]>
  5. */
  6. #ifndef __MEM_RELINQUISH_H__
  7. #define __MEM_RELINQUISH_H__
  8. #ifdef CONFIG_MEMORY_RELINQUISH
  9. #include <asm/mem_relinquish.h>
  10. #else /* !CONFIG_MEMORY_RELINQUISH */
  11. static inline bool kvm_has_memrelinquish_services(void) { return false; }
  12. static inline void page_relinquish(struct page *page) { }
  13. static inline void post_page_relinquish_tlb_inv(void) { }
  14. #endif /* CONFIG_MEMORY_RELINQUISH */
  15. #endif /* __MEM_RELINQUISH_H__ */