[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [RFC v4 02/16] linux-headers: header update
From: |
Auger Eric |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [RFC v4 02/16] linux-headers: header update for KVM/ARM KVM_ARM_GET_MAX_VM_PHYS_SHIFT |
Date: |
Fri, 19 Oct 2018 16:02:05 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
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 <address@hidden>
>>
>> ---
>>
>> 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
>
- [Qemu-arm] [RFC v4 00/16] ARM virt: PCDIMM/NVDIMM at 2TB, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 01/16] hw/arm/boot: introduce fdt_add_memory_node helper, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 02/16] linux-headers: header update for KVM/ARM KVM_ARM_GET_MAX_VM_PHYS_SHIFT, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 03/16] hw/boards: Add a MachineState parameter to kvm_type callback, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 06/16] hw/arm/virt: Add virt-3.2 machine type, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 07/16] hw/arm/virt: Implement kvm_type function for 3.2 machine, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 04/16] kvm: add kvm_arm_get_max_vm_phys_shift, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 08/16] hw/arm/virt: Allocate device_memory, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 05/16] vl: Set machine ram_size, maxram_size and ram_slots earlier, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 10/16] hw/arm/boot: Expose the PC-DIMM nodes in the DT, Eric Auger, 2018/10/18
- [Qemu-arm] [RFC v4 09/16] hw/arm/virt: Add memory hotplug framework, Eric Auger, 2018/10/18