summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/pvclock-abi.h
diff options
context:
space:
mode:
authorSteven Price <steven.price@arm.com>2019-10-21 16:28:16 +0100
committerMarc Zyngier <maz@kernel.org>2019-10-21 19:20:27 +0100
commitb48c1a45a190898103cec28771efc399fd65a05a (patch)
treeaeaa6b765b8d6a0c12de852832a0d73a51b1ac1f /arch/arm64/include/asm/pvclock-abi.h
parent55009c6ed2d24fc0f5521ab2482f145d269389ea (diff)
KVM: arm64: Implement PV_TIME_FEATURES call
This provides a mechanism for querying which paravirtualized time features are available in this hypervisor. Also add the header file which defines the ABI for the paravirtualized time features we're about to add. Signed-off-by: Steven Price <steven.price@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/pvclock-abi.h')
-rw-r--r--arch/arm64/include/asm/pvclock-abi.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/pvclock-abi.h b/arch/arm64/include/asm/pvclock-abi.h
new file mode 100644
index 000000000000..c4f1c0a0789c
--- /dev/null
+++ b/arch/arm64/include/asm/pvclock-abi.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* Copyright (C) 2019 Arm Ltd. */
+
+#ifndef __ASM_PVCLOCK_ABI_H
+#define __ASM_PVCLOCK_ABI_H
+
+/* The below structure is defined in ARM DEN0057A */
+
+struct pvclock_vcpu_stolen_time {
+ __le32 revision;
+ __le32 attributes;
+ __le64 stolen_time;
+ /* Structure must be 64 byte aligned, pad to that size */
+ u8 padding[48];
+} __packed;
+
+#endif