forked from rountree/msr-safe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msr_allowlist.h
33 lines (23 loc) · 887 Bytes
/
msr_allowlist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
/*
* Internal declarations for x86 MSR allowlist implementation functions.
*
* Thank you to everyone who has contributed and helped with this project:
*
* Kathleen Shoga, Peter Bailey, Trent D'Hooge, Jim Foraker, David Lowenthal
* Tapasya Patki, Barry Rountree, Kendrick Shaw, Marty McFadden
*/
#ifndef _ARCH_X68_KERNEL_MSR_ALLOWLIST_HEADER_INCLUDE
#define _ARCH_X68_KERNEL_MSR_ALLOWLIST_HEADER_INCLUDE
#include <linux/types.h>
int msr_allowlist_init(int *majordev);
int msr_allowlist_cleanup(int majordev);
int msr_allowlist_exists(void);
int msr_allowlist_maskexists(loff_t reg);
u64 msr_allowlist_readmask(loff_t reg);
u64 msr_allowlist_writemask(loff_t reg);
#endif