From nobody Tue Nov 26 01:45:02 2024 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B0871B4F1F for ; Wed, 23 Oct 2024 12:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729687524; cv=none; b=Xd/SBkXUJuVMU8nzi/nsVbnX+uW2bfikJiY6Gk2ZqVgRltx2aRJ4/aMIXFhRq/oGheJMI+QhyHlk2rBwSBabyz7xgjFU4tAPKupDkw1ztiDSqHfU7ruE+HWqRDc4d2331zhjcT0zn28SIX5iDx7ufvVADLtNs2Johux9hK4c+A4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729687524; c=relaxed/simple; bh=wcnFMlPKB38pGPmcyUweJksVVSBd1q5ySa95xBfPZro=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=t8FIPrh4QMF66iUFcBasbaV9xA1mIdKfb2v5OqajAfF3sO7BPSAkUjx5yPcPL/ljmzFLhihkTZOLryPUTpO1A+dDLvNsXPG/BifoSL0Galqh/teEWh+DYHhq4VU+r/FqO3pf15kQxCGbPTc+ytgpkhGvs2KJoOqYGEVTMMcNuiQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZZAMUAfz; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZZAMUAfz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1729687521; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JkyMAXuhji9sRwJ3VwBSUd2i/Ce99Dz+9EW9yh0eKi0=; b=ZZAMUAfzvi1waNjU7u9ym3AxKzJu0Qz6eaDpZ1MTVhbaVqBTzmjPtIy2qpV3jfkRjPT8jk Gw7/2an4ghSrOhQTxVj2718QioqUnduKmxzgn7l8aoS7ZEZu01FI1AoYzk+Ta7Z9Umcexl dx5nInDPA/biUKaOerx0zxtuVJJHcKg= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-278-BQNNqu2vOdWnL9qSV4SDjw-1; Wed, 23 Oct 2024 08:45:19 -0400 X-MC-Unique: BQNNqu2vOdWnL9qSV4SDjw-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4316138aff6so44435605e9.1 for ; Wed, 23 Oct 2024 05:45:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729687515; x=1730292315; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JkyMAXuhji9sRwJ3VwBSUd2i/Ce99Dz+9EW9yh0eKi0=; b=fPMWt7a+Up2D5K/M5+OrzNn3G8DWssfqwsZNeucxNN5xJU4bFNW7epMQDZCCis2MFc Vi46Qfcky3/vNFGUELU0Ocgc+he5Kk3Ktr0aL8GomNmV4JIaurxLv/o/rIc/ZJc/LaJO vldjJc9MfzgGCACtdMGsGWbMa8jcfIB/YN9NDHdynlaL2oVghwB8F3eYL5lDfId4AY8h 1Botfdt9ddgMOAi88Hd/rh1Q9uTEeQ9S74PTCpCJNy+JDh+hcl3XwlVmaOP9qKYkcrhi NzDF0c3fCMsu0ADzzOv9AfFShHwpfq73l4SuTjrhQa1m9LluIUy980K63CrTrGp99eFS Fd/A== X-Gm-Message-State: AOJu0YxHvudkEEx3WJQBpH96XvaQ6cbV1t+ybd8Aq0Omk4qXXCNUMRD/ 9M2kdKQmNUQq/Z7xge0nQyw6jiQBvSgJEfYCDqL1PJ4AXWXArZ5ZePonlgGUvPN5oRYj/sivXTC 0WwAq0pVdhK4WjUfT0bQUyNJM8LnvTCuOXi+vxU9Kn2ocV8/yDRRpeBPene2M2WQRG/Zqu1Bdwt NPchA2NFE7IbivU9FDEgw75UtF1HPbK6NA5hnqdqwtLN6PpJ25 X-Received: by 2002:a5d:58e9:0:b0:37d:5359:1ec1 with SMTP id ffacd0b85a97d-37efcfb1491mr1473832f8f.57.1729687515424; Wed, 23 Oct 2024 05:45:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtbNqS0ecvkDcNz7iJe7I/riHjsiQTeDSmBGIhAHtlSe5BNLZ7H2o+AIOEiWX20qdI1B3+xg== X-Received: by 2002:a5d:58e9:0:b0:37d:5359:1ec1 with SMTP id ffacd0b85a97d-37efcfb1491mr1473800f8f.57.1729687514946; Wed, 23 Oct 2024 05:45:14 -0700 (PDT) Received: from avogadro.local ([151.95.144.54]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ee0b9432fsm8825149f8f.83.2024.10.23.05.45.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 05:45:13 -0700 (PDT) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: roy.hopkins@suse.com, seanjc@google.com, michael.roth@amd.com, ashish.kalra@amd.com, jroedel@suse.de, thomas.lendacky@amd.com, nsaenz@amazon.com, anelkz@amazon.de, oliver.upton@linux.dev, isaku.yamahata@intel.com, maz@kernel.org, steven.price@arm.com, kai.huang@intel.com, rick.p.edgecombe@intel.com, James.Bottomley@HansenPartnership.com Subject: [RFC PATCH 1/5] KVM: powerpc: remove remaining traces of KVM_CAP_PPC_RMA Date: Wed, 23 Oct 2024 14:45:03 +0200 Message-ID: <20241023124507.280382-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241023124507.280382-1-pbonzini@redhat.com> References: <20241023124507.280382-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This was only needed for PPC970 support, which is long gone: the implementation was removed in 2014. Signed-off-by: Paolo Bonzini --- Documentation/virt/kvm/api.rst | 36 ---------------------------------- arch/powerpc/kvm/powerpc.c | 3 --- 2 files changed, 39 deletions(-) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index 8e5dad80b337..85dc04bfad3b 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -2170,42 +2170,6 @@ userspace update the TCE table directly which is use= ful in some circumstances. =20 =20 -4.63 KVM_ALLOCATE_RMA ---------------------- - -:Capability: KVM_CAP_PPC_RMA -:Architectures: powerpc -:Type: vm ioctl -:Parameters: struct kvm_allocate_rma (out) -:Returns: file descriptor for mapping the allocated RMA - -This allocates a Real Mode Area (RMA) from the pool allocated at boot -time by the kernel. An RMA is a physically-contiguous, aligned region -of memory used on older POWER processors to provide the memory which -will be accessed by real-mode (MMU off) accesses in a KVM guest. -POWER processors support a set of sizes for the RMA that usually -includes 64MB, 128MB, 256MB and some larger powers of two. - -:: - - /* for KVM_ALLOCATE_RMA */ - struct kvm_allocate_rma { - __u64 rma_size; - }; - -The return value is a file descriptor which can be passed to mmap(2) -to map the allocated RMA into userspace. The mapped area can then be -passed to the KVM_SET_USER_MEMORY_REGION ioctl to establish it as the -RMA for a virtual machine. The size of the RMA in bytes (which is -fixed at host kernel boot time) is returned in the rma_size field of -the argument structure. - -The KVM_CAP_PPC_RMA capability is 1 or 2 if the KVM_ALLOCATE_RMA ioctl -is supported; 2 if the processor requires all virtual machines to have -an RMA, or 1 if the processor can use an RMA but doesn't require it, -because it supports the Virtual RMA (VRMA) facility. - - 4.64 KVM_NMI ------------ =20 diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 961aadc71de2..a7e5bc0d969f 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -612,9 +612,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long = ext) r =3D 8 | 4 | 2 | 1; } break; - case KVM_CAP_PPC_RMA: - r =3D 0; - break; case KVM_CAP_PPC_HWRNG: r =3D kvmppc_hwrng_present(); break; --=20 2.46.2