kvm-consts.h (6629bf78aac7e53f83fd0bcbdbe322e2302dfd1f) | kvm-consts.h (3d81e8cf0c81b8b63d7d7056c450dd94bfbfd038) |
---|---|
1/* 2 * KVM ARM ABI constant definitions 3 * 4 * Copyright (c) 2013 Linaro Limited 5 * 6 * Provide versions of KVM constant defines that can be used even 7 * when CONFIG_KVM is not set and we don't have access to the 8 * KVM headers. If CONFIG_KVM is set, we do a compile-time check 9 * that we haven't got out of sync somehow. 10 * 11 * This work is licensed under the terms of the GNU GPL, version 2 or later. 12 * See the COPYING file in the top-level directory. 13 */ 14#ifndef ARM_KVM_CONSTS_H 15#define ARM_KVM_CONSTS_H 16 | 1/* 2 * KVM ARM ABI constant definitions 3 * 4 * Copyright (c) 2013 Linaro Limited 5 * 6 * Provide versions of KVM constant defines that can be used even 7 * when CONFIG_KVM is not set and we don't have access to the 8 * KVM headers. If CONFIG_KVM is set, we do a compile-time check 9 * that we haven't got out of sync somehow. 10 * 11 * This work is licensed under the terms of the GNU GPL, version 2 or later. 12 * See the COPYING file in the top-level directory. 13 */ 14#ifndef ARM_KVM_CONSTS_H 15#define ARM_KVM_CONSTS_H 16 |
17#ifdef NEED_CPU_H |
|
17#ifdef CONFIG_KVM 18#include <linux/kvm.h> 19#include <linux/psci.h> | 18#ifdef CONFIG_KVM 19#include <linux/kvm.h> 20#include <linux/psci.h> |
20 | |
21#define MISMATCH_CHECK(X, Y) QEMU_BUILD_BUG_ON(X != Y) | 21#define MISMATCH_CHECK(X, Y) QEMU_BUILD_BUG_ON(X != Y) |
22#endif 23#endif |
|
22 | 24 |
23#else 24 | 25#ifndef MISMATCH_CHECK |
25#define MISMATCH_CHECK(X, Y) QEMU_BUILD_BUG_ON(0) | 26#define MISMATCH_CHECK(X, Y) QEMU_BUILD_BUG_ON(0) |
26 | |
27#endif 28 29#define CP_REG_SIZE_SHIFT 52 30#define CP_REG_SIZE_MASK 0x00f0000000000000ULL 31#define CP_REG_SIZE_U32 0x0020000000000000ULL 32#define CP_REG_SIZE_U64 0x0030000000000000ULL 33#define CP_REG_ARM 0x4000000000000000ULL 34#define CP_REG_ARCH_MASK 0xff00000000000000ULL --- 152 unchanged lines hidden --- | 27#endif 28 29#define CP_REG_SIZE_SHIFT 52 30#define CP_REG_SIZE_MASK 0x00f0000000000000ULL 31#define CP_REG_SIZE_U32 0x0020000000000000ULL 32#define CP_REG_SIZE_U64 0x0030000000000000ULL 33#define CP_REG_ARM 0x4000000000000000ULL 34#define CP_REG_ARCH_MASK 0xff00000000000000ULL --- 152 unchanged lines hidden --- |