Skip to content

Commit e16e018

Browse files
committed
KVM: powerpc: remove remaining traces of KVM_CAP_PPC_RMA
This was only needed for PPC970 support, which is long gone: the implementation was removed in 2014. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20241023124507.280382-2-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent aa0d42c commit e16e018

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

Documentation/virt/kvm/api.rst

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,42 +2170,6 @@ userspace update the TCE table directly which is useful in some
21702170
circumstances.
21712171

21722172

2173-
4.63 KVM_ALLOCATE_RMA
2174-
---------------------
2175-
2176-
:Capability: KVM_CAP_PPC_RMA
2177-
:Architectures: powerpc
2178-
:Type: vm ioctl
2179-
:Parameters: struct kvm_allocate_rma (out)
2180-
:Returns: file descriptor for mapping the allocated RMA
2181-
2182-
This allocates a Real Mode Area (RMA) from the pool allocated at boot
2183-
time by the kernel. An RMA is a physically-contiguous, aligned region
2184-
of memory used on older POWER processors to provide the memory which
2185-
will be accessed by real-mode (MMU off) accesses in a KVM guest.
2186-
POWER processors support a set of sizes for the RMA that usually
2187-
includes 64MB, 128MB, 256MB and some larger powers of two.
2188-
2189-
::
2190-
2191-
/* for KVM_ALLOCATE_RMA */
2192-
struct kvm_allocate_rma {
2193-
__u64 rma_size;
2194-
};
2195-
2196-
The return value is a file descriptor which can be passed to mmap(2)
2197-
to map the allocated RMA into userspace. The mapped area can then be
2198-
passed to the KVM_SET_USER_MEMORY_REGION ioctl to establish it as the
2199-
RMA for a virtual machine. The size of the RMA in bytes (which is
2200-
fixed at host kernel boot time) is returned in the rma_size field of
2201-
the argument structure.
2202-
2203-
The KVM_CAP_PPC_RMA capability is 1 or 2 if the KVM_ALLOCATE_RMA ioctl
2204-
is supported; 2 if the processor requires all virtual machines to have
2205-
an RMA, or 1 if the processor can use an RMA but doesn't require it,
2206-
because it supports the Virtual RMA (VRMA) facility.
2207-
2208-
22092173
4.64 KVM_NMI
22102174
------------
22112175

arch/powerpc/kvm/powerpc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
612612
r = 8 | 4 | 2 | 1;
613613
}
614614
break;
615-
case KVM_CAP_PPC_RMA:
616-
r = 0;
617-
break;
618615
case KVM_CAP_PPC_HWRNG:
619616
r = kvmppc_hwrng_present();
620617
break;

0 commit comments

Comments
 (0)