History

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.

Steven Price committed 7 years ago

Commit b48c1a41 parent 55009c67 files · +67 −1Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/arm-smccc.h+14−0
@@ -45,6 +45,7 @@ · 44 unmodified lines
4545 #define ARM_SMCCC_OWNER_SIP 2
4646 #define ARM_SMCCC_OWNER_OEM 3
4747 #define ARM_SMCCC_OWNER_STANDARD 4
48+#define ARM_SMCCC_OWNER_STANDARD_HYP 5
4849 #define ARM_SMCCC_OWNER_TRUSTED_APP 48
4950 #define ARM_SMCCC_OWNER_TRUSTED_APP_END 49
5051 #define ARM_SMCCC_OWNER_TRUSTED_OS 50
@@ -318,5 +319,18 @@ asmlinkage void __arm_smccc_hvc(unsigned long a0, unsigned long a1, · 267 unmodified lines
318319 #define SMCCC_RET_NOT_SUPPORTED -1
319320 #define SMCCC_RET_NOT_REQUIRED -2
320321
322+/* Paravirtualised time calls (defined by ARM DEN0057A) */
323+#define ARM_SMCCC_HV_PV_TIME_FEATURES \
324+ ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \
325+ ARM_SMCCC_SMC_64, \
326+ ARM_SMCCC_OWNER_STANDARD_HYP, \
327+ 0x20)
328+
329+#define ARM_SMCCC_HV_PV_TIME_ST \
330+ ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \
331+ ARM_SMCCC_SMC_64, \
332+ ARM_SMCCC_OWNER_STANDARD_HYP, \
333+ 0x21)
334+
321335 #endif /*__ASSEMBLY__*/
322336 #endif /*__LINUX_ARM_SMCCC_H*/

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t