]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/include/asm/vsyscall.h
KVM: x86: Use gpa_t for cr2/gpa to fix TDP support on 32-bit KVM
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / include / asm / vsyscall.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1965aae3
PA
2#ifndef _ASM_X86_VSYSCALL_H
3#define _ASM_X86_VSYSCALL_H
1da177e4 4
75da736f 5#include <linux/seqlock.h>
af170c50 6#include <uapi/asm/vsyscall.h>
1da177e4 7
1ad83c85 8#ifdef CONFIG_X86_VSYSCALL_EMULATION
e4026440 9extern void map_vsyscall(void);
85900ea5 10extern void set_vsyscall_pgtable_user_bits(pgd_t *root);
e4026440 11
3ae36655
AL
12/*
13 * Called on instruction fetch fault in vsyscall page.
14 * Returns true if handled.
15 */
16extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
1ad83c85
AL
17#else
18static inline void map_vsyscall(void) {}
19static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
20{
21 return false;
22}
23#endif
3ae36655 24
1965aae3 25#endif /* _ASM_X86_VSYSCALL_H */