Hi Suzuki, On 10/19/18 10:49 AM, Suzuki K Poulose wrote: > Hi Eric, > > On 10/18/2018 03:30 PM, Eric Auger wrote: >> This is a header update against kvmarm next branch >> >> git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm kvmarm/next >> >> to get the KVM_ARM_GET_MAX_VM_PHYS_SHIFT ioctl. This allows to retrieve >> the IPA address range KVM supports. >> >> Signed-off-by: Eric Auger <eric.au...@redhat.com> >> >> --- >> >> v3 -> v4: >> - update against kvmarm next >> --- >> linux-headers/linux/kvm.h | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h >> index 83ba4eb571..9647ce4fcb 100644 >> --- a/linux-headers/linux/kvm.h >> +++ b/linux-headers/linux/kvm.h >> @@ -750,6 +750,15 @@ struct kvm_ppc_resize_hpt { >> #define KVM_S390_SIE_PAGE_OFFSET 1 >> +/* >> + * On arm64, machine type can be used to request the physical >> + * address size for the VM. Bits[7-0] are reserved for the guest >> + * PA size shift (i.e, log2(PA_Size)). For backward compatibility, >> + * value 0 implies the default IPA size, 40bits. >> + */ >> +#define KVM_VM_TYPE_ARM_IPA_SIZE_MASK 0xffULL >> +#define KVM_VM_TYPE_ARM_IPA_SIZE(x) \ >> + ((x) & KVM_VM_TYPE_ARM_IPA_SIZE_MASK) >> /* >> * ioctls for /dev/kvm fds: >> */ >> @@ -953,6 +962,7 @@ struct kvm_ppc_resize_hpt { >> #define KVM_CAP_NESTED_STATE 157 >> #define KVM_CAP_ARM_INJECT_SERROR_ESR 158 >> #define KVM_CAP_MSR_PLATFORM_INFO 159 >> +#define KVM_CAP_ARM_VM_IPA_SIZE 160 /* returns maximum IPA bits for a >> VM */ > > Please be aware that there have been multiple merge conflicts with > the kvmarm-tree onto kvm tree upstream and the numbers have changed. > I assume that you will be rebasing this to mainline anyways.
Thank you for the heads up. Yes I will respin this header update against the master branch later on. Thanks Eric > > Cheers > Suzuki >