KVM/arm updates for 4.20 - Improved guest IPA space support (32 to 52 bits) - RAS event delivery for 32bit - PMU fixes - Guest entry hardening - Various cleanups
Showing the changes to include/uapi/linux (1 of 65 files). Show all
Unified · Split
| @@ -757,6 +757,15 @@ struct kvm_ppc_resize_hpt { · 756 unmodified lines | ||
| 757 | 757 | |
| 758 | 758 | #define KVM_S390_SIE_PAGE_OFFSET 1 |
| 759 | 759 | |
| 760 | +/* | |
| 761 | + * On arm64, machine type can be used to request the physical | |
| 762 | + * address size for the VM. Bits[7-0] are reserved for the guest | |
| 763 | + * PA size shift (i.e, log2(PA_Size)). For backward compatibility, | |
| 764 | + * value 0 implies the default IPA size, 40bits. | |
| 765 | + */ | |
| 766 | +#define KVM_VM_TYPE_ARM_IPA_SIZE_MASK 0xffULL | |
| 767 | +#define KVM_VM_TYPE_ARM_IPA_SIZE(x) \ | |
| 768 | + ((x) & KVM_VM_TYPE_ARM_IPA_SIZE_MASK) | |
| 760 | 769 | /* |
| 761 | 770 | * ioctls for /dev/kvm fds: |
| 762 | 771 | */ |
| @@ -965,6 +974,7 @@ struct kvm_ppc_resize_hpt { · 202 unmodified lines | ||
| 965 | 974 | #define KVM_CAP_COALESCED_PIO 162 |
| 966 | 975 | #define KVM_CAP_HYPERV_ENLIGHTENED_VMCS 163 |
| 967 | 976 | #define KVM_CAP_EXCEPTION_PAYLOAD 164 |
| 977 | +#define KVM_CAP_ARM_VM_IPA_SIZE 165 | |
| 968 | 978 | |
| 969 | 979 | #ifdef KVM_CAP_IRQ_ROUTING |
| 970 | 980 | |