Skip to content

Commit b6cf878

Browse files
borntraegerheicarst
authored andcommitted
[S390] kvm: extension capability for new address space layout
598841c ([S390] use gmap address spaces for kvm guest images) changed kvm on s390 to use a separate address space for kvm guests. We can now put KVM guests anywhere in the user address mode with a size up to 8PB - as long as the memory is 1MB-aligned. This change was done without KVM extension capability bit. The change was added after 3.0, but we still have a chance to add a feature bit before 3.1 (keeping the releases in a sane state). We use number 71 to avoid collisions with other pending kvm patches as requested by Alexander Graf. Signed-off-by: Christian Borntraeger <[email protected]> Acked-by: Avi Kivity <[email protected]> Cc: Alexander Graf <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 480e592 commit b6cf878

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

arch/s390/kvm/kvm-s390.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ int kvm_dev_ioctl_check_extension(long ext)
123123

124124
switch (ext) {
125125
case KVM_CAP_S390_PSW:
126+
case KVM_CAP_S390_GMAP:
126127
r = 1;
127128
break;
128129
default:

include/linux/kvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ struct kvm_ppc_pvinfo {
553553
#define KVM_CAP_SPAPR_TCE 63
554554
#define KVM_CAP_PPC_SMT 64
555555
#define KVM_CAP_PPC_RMA 65
556+
#define KVM_CAP_S390_GMAP 71
556557

557558
#ifdef KVM_CAP_IRQ_ROUTING
558559

0 commit comments

Comments
 (0)