diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-08 05:29:16 -0500 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-08 05:30:48 -0500 |
| commit | 93b350f884c451d3cb75e6e3814266cf2d2afab1 (patch) | |
| tree | 4fc17bfc4e31b6348df3c36117bd64a0b4520f88 /include/linux/cacheflush.h | |
| parent | adbfb12d4c4517a8adde23a7fc46538953d56eea (diff) | |
| parent | 250552b925ce400c17d166422fde9bb215958481 (diff) | |
Merge branch 'kvm-on-hv-msrbm-fix' into HEAD
Merge bugfix for enlightened MSR Bitmap, before adding support
to KVM for exposing the feature to nested guests.
Diffstat (limited to 'include/linux/cacheflush.h')
| -rw-r--r-- | include/linux/cacheflush.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/cacheflush.h b/include/linux/cacheflush.h new file mode 100644 index 000000000000..fef8b607f97e --- /dev/null +++ b/include/linux/cacheflush.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_CACHEFLUSH_H +#define _LINUX_CACHEFLUSH_H + +#include <asm/cacheflush.h> + +#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE +#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO +void flush_dcache_folio(struct folio *folio); +#endif +#else +static inline void flush_dcache_folio(struct folio *folio) +{ +} +#define ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 0 +#endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */ + +#endif /* _LINUX_CACHEFLUSH_H */ |
