[PATCH v4 0/4] KVM: arm64: Increase number of user memslots

2017-03-07 Thread linucherian
From: Linu Cherian v3 -> v4: - Add missing commit messages in patches 1 and 3 v2 -> v3: - Added documentation for KVM_CAP_NR_MEMSLOTS - Removed KVM_PRIVATE_MEM_SLOTS which is unused - KVM_USER_MEM_SLOTS changed to 512 from 508 v1 -> v2: - Enabling KVM_CAP_NR_MEMSLOTS

[PATCH v4 3/4] KVM: arm/arm64: Remove KVM_PRIVATE_MEM_SLOTS definition that are unused

2017-03-07 Thread linucherian
From: Linu Cherian arm/arm64 architecture doesnt use private memslots, hence removing KVM_PRIVATE_MEM_SLOTS macro definition. Signed-off-by: Linu Cherian --- arch/arm/include/asm/kvm_host.h | 1 - arch/arm64/include/asm/kvm_host.h | 1 - 2

[PATCH v4 4/4] KVM: arm64: Increase number of user memslots to 512

2017-03-07 Thread linucherian
From: Linu Cherian Having only 32 memslots is a real constraint for the maximum number of PCI devices that can be assigned to a single guest. Assuming each PCI device/virtual function having two memory BAR regions, we could assign only 15 devices/virtual functions to a

[PATCH v4 2/4] KVM: arm/arm64: Enable KVM_CAP_NR_MEMSLOTS on arm/arm64

2017-03-07 Thread linucherian
From: Linu Cherian Return KVM_USER_MEM_SLOTS for userspace capability query on NR_MEMSLOTS. Signed-off-by: Linu Cherian --- arch/arm/kvm/arm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index

[PATCH v4 1/4] KVM: Add documentation for KVM_CAP_NR_MEMSLOTS

2017-03-07 Thread linucherian
From: Linu Cherian Add documentation for KVM_CAP_NR_MEMSLOTS capability. Signed-off-by: Linu Cherian --- Documentation/virtual/kvm/api.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/virtual/kvm/api.txt

[PATCH V3 2/4] KVM: arm/arm64: Enable KVM_CAP_NR_MEMSLOTS on arm/arm64

2017-03-06 Thread linucherian
From: Linu Cherian Return KVM_USER_MEM_SLOTS for userspace capability query on NR_MEMSLOTS. Signed-off-by: Linu Cherian --- arch/arm/kvm/arm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index

[PATCH V3 3/4] KVM: arm/arm64: Remove KVM_PRIVATE_MEM_SLOTS definition that are unused

2017-03-06 Thread linucherian
From: Linu Cherian Signed-off-by: Linu Cherian --- arch/arm/include/asm/kvm_host.h | 1 - arch/arm64/include/asm/kvm_host.h | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h

[PATCH V3 1/4] KVM: Add documentation for KVM_CAP_NR_MEMSLOTS

2017-03-06 Thread linucherian
From: Linu Cherian Signed-off-by: Linu Cherian --- Documentation/virtual/kvm/api.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 03145b7..7b82f1c 100644

[PATCH V3 4/4] KVM: arm64: Increase number of user memslots to 512

2017-03-06 Thread linucherian
From: Linu Cherian Having only 32 memslots is a real constraint for the maximum number of PCI devices that can be assigned to a single guest. Assuming each PCI device/virtual function having two memory BAR regions, we could assign only 15 devices/virtual functions to a

[PATCH V3 0/4] KVM: arm64: Increase number of user memslots

2017-03-06 Thread linucherian
From: Linu Cherian v2 -> v3: - Added documentation for KVM_CAP_NR_MEMSLOTS - Removed KVM_PRIVATE_MEM_SLOTS which is unused - KVM_USER_MEM_SLOTS changed to 512 from 508 v1 -> v2: - Enabling KVM_CAP_NR_MEMSLOTS for arm/arm64 moved to separate patch. - Updated commit

[PATCH V2 2/2] KVM: arm64: Increase number of user memslots to 508

2017-02-07 Thread linucherian
From: Linu Cherian Having only 32 memslots is a real constraint for the maximum number of PCI devices that can be assigned to a single guest. Assuming each PCI device/virtual function having two memory BAR regions, we could assign only 15 devices/virtual functions to a

[PATCH V2 1/2] KVM: arm/arm64: Enable KVM_CAP_NR_MEMSLOTS on arm/arm64

2017-02-07 Thread linucherian
From: Linu Cherian Return KVM_USER_MEM_SLOTS for userspace capability query on NR_MEMSLOTS. Signed-off-by: Linu Cherian --- arch/arm/kvm/arm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index

[PATCH V2 0/2] KVM: arm64: Increase number of user memslots

2017-02-07 Thread linucherian
From: Linu Cherian v1 -> v2: - Enabling KVM_CAP_NR_MEMSLOTS for arm/arm64 moved to separate patch. - Updated commit message so that what is reported to userspace is explicit. Linu Cherian (2): KVM: arm/arm64: Enable KVM_CAP_NR_MEMSLOTS on arm/arm64 KVM: arm64:

[PATCH] KVM: arm64: Increase number of memslots to 512

2017-01-11 Thread linucherian
From: Linu Cherian Having only 32 memslots is a real constraint for the maximum number of PCI devices that can be assigned to a single guest. Assuming each PCI device/virtual function having two memory BAR regions, we could assign only 15 devices/virtual functions to a