Merge tag 'mm-hotfixes-stable-2023-05-03-16-27' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / include / xen / features.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
5ead97c8
JF
2/******************************************************************************
3 * features.h
4 *
5 * Query the features reported by Xen.
6 *
7 * Copyright (c) 2006, Ian Campbell
8 */
9
10#ifndef __XEN_FEATURES_H__
11#define __XEN_FEATURES_H__
12
13#include <xen/interface/features.h>
14
15void xen_setup_features(void);
16
17extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32];
18
19static inline int xen_feature(int flag)
20{
21 return xen_features[flag];
22}
23
24#endif /* __ASM_XEN_FEATURES_H__ */