From patchwork Fri Dec 2 10:50:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 28865 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp763155wrr; Fri, 2 Dec 2022 02:56:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf79C5yXdV/3lHm7fcntRyLhQmAdQtcvc3vd2mnTJdqw7uaUDrGcXHFJelW0qMPPJEKQ1HM/ X-Received: by 2002:a17:902:7d94:b0:187:4920:3a7e with SMTP id a20-20020a1709027d9400b0018749203a7emr56102734plm.171.1669978617962; Fri, 02 Dec 2022 02:56:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669978617; cv=none; d=google.com; s=arc-20160816; b=uM4OwYCbawke9jl+AS17D2f3B8p9gybLG7R1IDWlf+BjDI/eI+LPkawzmNwn0W0FKF K6dLkUfjp111cO0gw2IXNRCJkaw8TXfFK+K4QBzWYQG8Y0AK4xndnrSaEgiVHcxj7nfi wMHErH+CxLkTmV7C4FJAOU10CvOJT/QDcVX43GbWEsrVuz9Z08+guxtpQwDj+YqTEv0D djocBSxBChV32uDxqUeieN4VPLpv+lorW9gxE7gpily4iXTmbWqbHgShmcQ8FTi6/mH6 CDIXdtjDTSW7KXUXgruC/eFS51m4fEAaMThNE+A2VUGSTcL+FAmCq/p17OfqpAdt6x5W onKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e/WSDhCff5cI0oKVC2xG/rXWZdwpVxH3SgK+Cp6160A=; b=mU0sy+g3xax1lFJKyLO1bFADWnXwI6X28BQupiR7HxJWmIWoHpVNALwA2Zwvu7ZeSk iz9E05BllLDfyHtnpsmPoOUgDLRfBNNUmThf3y3nJXsECEJacBvAed7j9wSKai/ZWWmO Kor2oPVieT2E0v8VKdgtoN4LHo0CwE1wRnsgMIapxvzAoJGJpU5nO1IjcyLq5xzpQjJd uT42zHeLwtxPZg3PdKOy5SxZbOCQxQ0YGKKq1jYhAkPJp7GdKQEDVSu8NHoNLryP4YhN GKuGIdV+KjXKB5gqpoBBS85wh317SFdULjDkHNJO8wO58m8DbNNvRCcmMN6wE3bnWs12 Ajlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XrynmiK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a056a000a8400b00575f86d63easi6813568pfl.170.2022.12.02.02.56.44; Fri, 02 Dec 2022 02:56:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XrynmiK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233356AbiLBKvg (ORCPT + 99 others); Fri, 2 Dec 2022 05:51:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233171AbiLBKv2 (ORCPT ); Fri, 2 Dec 2022 05:51:28 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16F2BC8D2D for ; Fri, 2 Dec 2022 02:50:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669978228; 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=e/WSDhCff5cI0oKVC2xG/rXWZdwpVxH3SgK+Cp6160A=; b=XrynmiK0wza+XQ3T3lCIYUWuee97+OOYwa2q/Q/9J0fkr6i+Tl6nJOw9MDHjbVRasqzoE+ vOjdrVond2KMUkhacDfGA7Ty3slAPpJwaKWDRTfxVIwl+wN+q3ZZM5k0j53gujPhG42VQ9 1CAX77zMZBAdGyB2NbjSFQr+z3NW4Ng= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-425-GUnHlLmOO7appM6gaIT2gQ-1; Fri, 02 Dec 2022 05:50:27 -0500 X-MC-Unique: GUnHlLmOO7appM6gaIT2gQ-1 Received: by mail-wr1-f69.google.com with SMTP id l8-20020adfc788000000b00241ef50e89eso983377wrg.0 for ; Fri, 02 Dec 2022 02:50:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=e/WSDhCff5cI0oKVC2xG/rXWZdwpVxH3SgK+Cp6160A=; b=hc3eG7OYaYek197CBj5eboDWbAEBh1nN+W16rcQ2+sLcBmPbVqU3fdmuRdcg59zETu BV6uYi94IUOFYwrR8o1Z1Pp0UMU2lRY4QzOcTSwfCb9UbhU0xne0IcbWjOz79lq10nL+ Zp1p0jicSBvLq3B0Kxkuj+kfGVQqIlgo8l9ym++/4Mu7SKXxeiimysXGumWI9+1vNJ5x 4FvWKfuVj5bgQvRPn3i4mPpk8PtR0ueHjYzAf+rzh4mMLRBd60WLCR5V9kOrWfZwyog8 J8LIW4LcMxvnvntEsBgdZU6prhA8KLl35yeFm1u0W538VYK+DQdbfPxwW/jwNaA7Pwmu jUTQ== X-Gm-Message-State: ANoB5pnppAd8V4nBcqh6MdTPVl3mkvNBePX5k7s+kiCwvbCEnpHyiEoc O+ceUMOIfk3EphYfJ7DfMF0rCBVSO9L87rOy5VmT3pzpxHdaNFFG7+J65zQkKU+F6wH1QLxQ4Fg vdQ0eyB0EOmeLJ4hiAhL3ol9HmHrkxRbRUedDC1ie0XNphgugQZCFuCKVfy5PY0GfD31OOg6/HS Y= X-Received: by 2002:a1c:f216:0:b0:3d0:70fd:92bb with SMTP id s22-20020a1cf216000000b003d070fd92bbmr8875631wmc.14.1669978225834; Fri, 02 Dec 2022 02:50:25 -0800 (PST) X-Received: by 2002:a1c:f216:0:b0:3d0:70fd:92bb with SMTP id s22-20020a1cf216000000b003d070fd92bbmr8875597wmc.14.1669978225479; Fri, 02 Dec 2022 02:50:25 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id bg2-20020a05600c3c8200b003a3170a7af9sm9728818wmb.4.2022.12.02.02.50.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 02:50:25 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Paolo Bonzini , Sergio Lopez Pascual , Sean Christopherson , Javier Martinez Canillas , Arnaldo Carvalho de Melo , Fabiano Rosas , Guang Zeng , "Gustavo A. R. Silva" , Jonathan Corbet , Nicholas Piggin , Wei Wang , kvm@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v2 1/4] KVM: Delete all references to removed KVM_SET_MEMORY_REGION ioctl Date: Fri, 2 Dec 2022 11:50:08 +0100 Message-Id: <20221202105011.185147-2-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221202105011.185147-1-javierm@redhat.com> References: <20221202105011.185147-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751099499546135818?= X-GMAIL-MSGID: =?utf-8?q?1751099499546135818?= The documentation says that the ioctl has been deprecated, but it has been actually removed and the remaining references are just left overs. Suggested-by: Sean Christopherson Signed-off-by: Javier Martinez Canillas --- (no changes since v1) Documentation/virt/kvm/api.rst | 16 ---------------- include/uapi/linux/kvm.h | 12 ------------ tools/include/uapi/linux/kvm.h | 12 ------------ 3 files changed, 40 deletions(-) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index eee9f857a986..54af33645df3 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -272,18 +272,6 @@ the VCPU file descriptor can be mmap-ed, including: KVM_CAP_DIRTY_LOG_RING, see section 8.3. -4.6 KVM_SET_MEMORY_REGION -------------------------- - -:Capability: basic -:Architectures: all -:Type: vm ioctl -:Parameters: struct kvm_memory_region (in) -:Returns: 0 on success, -1 on error - -This ioctl is obsolete and has been removed. - - 4.7 KVM_CREATE_VCPU ------------------- @@ -1377,10 +1365,6 @@ the memory region are automatically reflected into the guest. For example, an mmap() that affects the region will be made visible immediately. Another example is madvise(MADV_DROP). -It is recommended to use this API instead of the KVM_SET_MEMORY_REGION ioctl. -The KVM_SET_MEMORY_REGION does not allow fine grained control over memory -allocation and is deprecated. - 4.36 KVM_SET_TSS_ADDR --------------------- diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 0d5d4419139a..8899201d5964 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -86,14 +86,6 @@ struct kvm_debug_guest { /* *** End of deprecated interfaces *** */ -/* for KVM_CREATE_MEMORY_REGION */ -struct kvm_memory_region { - __u32 slot; - __u32 flags; - __u64 guest_phys_addr; - __u64 memory_size; /* bytes */ -}; - /* for KVM_SET_USER_MEMORY_REGION */ struct kvm_userspace_memory_region { __u32 slot; @@ -1437,10 +1429,6 @@ struct kvm_vfio_spapr_tce { __s32 tablefd; }; -/* - * ioctls for VM fds - */ -#define KVM_SET_MEMORY_REGION _IOW(KVMIO, 0x40, struct kvm_memory_region) /* * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns * a vcpu fd. diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index 0d5d4419139a..8899201d5964 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h @@ -86,14 +86,6 @@ struct kvm_debug_guest { /* *** End of deprecated interfaces *** */ -/* for KVM_CREATE_MEMORY_REGION */ -struct kvm_memory_region { - __u32 slot; - __u32 flags; - __u64 guest_phys_addr; - __u64 memory_size; /* bytes */ -}; - /* for KVM_SET_USER_MEMORY_REGION */ struct kvm_userspace_memory_region { __u32 slot; @@ -1437,10 +1429,6 @@ struct kvm_vfio_spapr_tce { __s32 tablefd; }; -/* - * ioctls for VM fds - */ -#define KVM_SET_MEMORY_REGION _IOW(KVMIO, 0x40, struct kvm_memory_region) /* * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns * a vcpu fd. From patchwork Fri Dec 2 10:50:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 28862 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp762956wrr; Fri, 2 Dec 2022 02:56:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf54PlDTRqCVu+wsW8WQ/zLMIMtUj7WqrFz0hpn/Tyt2KC+1EcVoRhQvqxiBHrRgXbHSk9vd X-Received: by 2002:a63:1965:0:b0:464:a9a6:5717 with SMTP id 37-20020a631965000000b00464a9a65717mr47164322pgz.584.1669978575321; Fri, 02 Dec 2022 02:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669978575; cv=none; d=google.com; s=arc-20160816; b=LjxtPI4DaRSkwA4+QqJfkpSQhFPKX6nVmLM02fUWrVr7CGc4ijRviEhZZg5n8y1EEI vd8wgAYGAzZ7R4pKJdYPR7qWD4oax4co93ItVjxhJsHfjD5URGDtuxy9Bd8N8gxOljP6 EuJMsDbplPSERByngkna+LsF2EnHGBPQXoudFdjgz3SqaZBUR3RXk122AoUpFRnMgSFj 3KhG/cJonG3/pXKFqwsUon/7gE1UyCwesub7tBHyPhPsdVkCcYUU2t2ZMVv08OWhxuSp qulCh4GyJTcFzQC9vxxvyoqC/RvJRiNmXMaJknN6s7ePRIdUsKHu4/cKcHOIfcQargm7 CLPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+/LEkekaTEo+dH48I9BDoWLnS9MzBRMjobxYQkKyym4=; b=i3IfEuGvLU2GV/SUz0i1fBylpkzhuehNWSAlzEh5jyhlAcP2YC9tOYh7k3pP95tb2s 93gfnCnyt/VfelfPv0dIyMrsxMoXrvEuHAAy7IzoP/igFw495kvhVUGbLdunXYFt5Tzd LH3dr14fqLDhwFLshUIqwfO+QMBkTXVDvaRCVvb74sanu7Tv/PUaSj6nErw8feMTdVWe slLM4wgxYCFKVDjKKtPmZrCruYNngj+qfiHuz02ELCvERVwKsj1CghEfpqcHUcaEn7SH iJMRgUMTL6AKpHvyztD+6wD4LQi5uuL1okzvvDdrWUCfnEqpPYqunpt7duufdkCGb8w5 Er7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fP9WQb7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a63e014000000b0046fd05d55e0si6825317pgh.567.2022.12.02.02.56.02; Fri, 02 Dec 2022 02:56:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fP9WQb7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233034AbiLBKvk (ORCPT + 99 others); Fri, 2 Dec 2022 05:51:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233174AbiLBKv2 (ORCPT ); Fri, 2 Dec 2022 05:51:28 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0295CD038C for ; Fri, 2 Dec 2022 02:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669978230; 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=+/LEkekaTEo+dH48I9BDoWLnS9MzBRMjobxYQkKyym4=; b=fP9WQb7rAsmiUFRtHvgCrUtel4UX2bUjpAo5/oFO2JadiGwh5uWyEvxB3YawQk3vZNtLnl ULnbSeJvN+t+acSBtynA/Ow3mwcbS2+rh8b9M6aMwb9v6oOHVSpvn6fUMs8yMFJyD7f8Dr iROAd4axaMERiQBEzFT5fnsXJTmEemc= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-518-U4G6Uh5bNQe5XT-AVLsTKw-1; Fri, 02 Dec 2022 05:50:29 -0500 X-MC-Unique: U4G6Uh5bNQe5XT-AVLsTKw-1 Received: by mail-wm1-f72.google.com with SMTP id v125-20020a1cac83000000b003cfa148576dso2324609wme.3 for ; Fri, 02 Dec 2022 02:50:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=+/LEkekaTEo+dH48I9BDoWLnS9MzBRMjobxYQkKyym4=; b=XHHc8MBQrdE44P+oaTYuQBIDQ5mKOO2bjf/Zv3+X0RiruuNLfU+dLVQjBibrfFPkdq 77mFQHKHdxPxKPN5Zaqc942TF/TXQ7keKKQbcci01G89bCyAToqOKR90OLhuHdyXS81i zk9g9o0R95CMYz3eAcYf0dwBY38A0Y2+qb/pkdL4nLBodZR2+i80kEFE6z/GXnqCwSoK CVt3cYakEs/ZC3qlg3oYEXh0W+Z2nI0opqlbYpAeHhm9ObuQ9bXR6JrxCiKqT4oreorS Qak9TY+meBfrMIv6Yqyx5Q5GtmHq89nRXisdEGV27S5LXR4xNmq5tgoRjGuXD8GrPIxr kq/g== X-Gm-Message-State: ANoB5pkWGiHzIO1lEnd/8GIzJujRScGFC8I6BDr0SHXN7Z4qsSYRscRz dNL+Zh/BI2oXCGm0qtnSnuCYzMu8ArBmT7FLmZNpdWVzoyLJAJ/tHjdobUICdUAsG1B4924gU2G wAbT9QGXHZX6kNR+P0GhN9jrHOzIPeZZEDv20VeujskdmLUL6YAbd67oKmEEWdUh+Z2ht8XQCHm o= X-Received: by 2002:a1c:2743:0:b0:3c6:e471:7400 with SMTP id n64-20020a1c2743000000b003c6e4717400mr38026484wmn.98.1669978227586; Fri, 02 Dec 2022 02:50:27 -0800 (PST) X-Received: by 2002:a1c:2743:0:b0:3c6:e471:7400 with SMTP id n64-20020a1c2743000000b003c6e4717400mr38026452wmn.98.1669978227323; Fri, 02 Dec 2022 02:50:27 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id bg2-20020a05600c3c8200b003a3170a7af9sm9728818wmb.4.2022.12.02.02.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 02:50:26 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Paolo Bonzini , Sergio Lopez Pascual , Sean Christopherson , Javier Martinez Canillas , Arnaldo Carvalho de Melo , Borislav Petkov , Dan Williams , Dave Hansen , "Gustavo A. R. Silva" , "H. Peter Anvin" , Ingo Molnar , Jing Liu , Jonathan Corbet , Nicholas Piggin , Thomas Gleixner , Wei Wang , Yang Zhong , kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org Subject: [PATCH v2 2/4] KVM: Delete all references to removed KVM_SET_MEMORY_ALIAS ioctl Date: Fri, 2 Dec 2022 11:50:09 +0100 Message-Id: <20221202105011.185147-3-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221202105011.185147-1-javierm@redhat.com> References: <20221202105011.185147-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751099454257300931?= X-GMAIL-MSGID: =?utf-8?q?1751099454257300931?= The documentation says that the ioctl has been deprecated, but it has been actually removed and the remaining references are just left overs. Suggested-by: Sean Christopherson Signed-off-by: Javier Martinez Canillas --- (no changes since v1) Documentation/virt/kvm/api.rst | 11 ----------- arch/x86/include/uapi/asm/kvm.h | 8 -------- include/uapi/linux/kvm.h | 2 -- tools/arch/x86/include/uapi/asm/kvm.h | 8 -------- tools/include/uapi/linux/kvm.h | 2 -- 5 files changed, 31 deletions(-) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index 54af33645df3..85a5b12eb017 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -356,17 +356,6 @@ see the description of the capability. Note that the Xen shared info page, if configured, shall always be assumed to be dirty. KVM will not explicitly mark it such. -4.9 KVM_SET_MEMORY_ALIAS ------------------------- - -:Capability: basic -:Architectures: x86 -:Type: vm ioctl -:Parameters: struct kvm_memory_alias (in) -:Returns: 0 (success), -1 (error) - -This ioctl is obsolete and has been removed. - 4.10 KVM_RUN ------------ diff --git a/arch/x86/include/uapi/asm/kvm.h b/arch/x86/include/uapi/asm/kvm.h index 46de10a809ec..649e50a8f9dd 100644 --- a/arch/x86/include/uapi/asm/kvm.h +++ b/arch/x86/include/uapi/asm/kvm.h @@ -53,14 +53,6 @@ /* Architectural interrupt line count. */ #define KVM_NR_INTERRUPTS 256 -struct kvm_memory_alias { - __u32 slot; /* this has a different namespace than memory slots */ - __u32 flags; - __u64 guest_phys_addr; - __u64 memory_size; - __u64 target_phys_addr; -}; - /* for KVM_GET_IRQCHIP and KVM_SET_IRQCHIP */ struct kvm_pic_state { __u8 last_irr; /* edge detection */ diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 8899201d5964..6ba2928f8f18 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1435,8 +1435,6 @@ struct kvm_vfio_spapr_tce { */ #define KVM_CREATE_VCPU _IO(KVMIO, 0x41) #define KVM_GET_DIRTY_LOG _IOW(KVMIO, 0x42, struct kvm_dirty_log) -/* KVM_SET_MEMORY_ALIAS is obsolete: */ -#define KVM_SET_MEMORY_ALIAS _IOW(KVMIO, 0x43, struct kvm_memory_alias) #define KVM_SET_NR_MMU_PAGES _IO(KVMIO, 0x44) #define KVM_GET_NR_MMU_PAGES _IO(KVMIO, 0x45) #define KVM_SET_USER_MEMORY_REGION _IOW(KVMIO, 0x46, \ diff --git a/tools/arch/x86/include/uapi/asm/kvm.h b/tools/arch/x86/include/uapi/asm/kvm.h index 46de10a809ec..649e50a8f9dd 100644 --- a/tools/arch/x86/include/uapi/asm/kvm.h +++ b/tools/arch/x86/include/uapi/asm/kvm.h @@ -53,14 +53,6 @@ /* Architectural interrupt line count. */ #define KVM_NR_INTERRUPTS 256 -struct kvm_memory_alias { - __u32 slot; /* this has a different namespace than memory slots */ - __u32 flags; - __u64 guest_phys_addr; - __u64 memory_size; - __u64 target_phys_addr; -}; - /* for KVM_GET_IRQCHIP and KVM_SET_IRQCHIP */ struct kvm_pic_state { __u8 last_irr; /* edge detection */ diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index 8899201d5964..6ba2928f8f18 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h @@ -1435,8 +1435,6 @@ struct kvm_vfio_spapr_tce { */ #define KVM_CREATE_VCPU _IO(KVMIO, 0x41) #define KVM_GET_DIRTY_LOG _IOW(KVMIO, 0x42, struct kvm_dirty_log) -/* KVM_SET_MEMORY_ALIAS is obsolete: */ -#define KVM_SET_MEMORY_ALIAS _IOW(KVMIO, 0x43, struct kvm_memory_alias) #define KVM_SET_NR_MMU_PAGES _IO(KVMIO, 0x44) #define KVM_GET_NR_MMU_PAGES _IO(KVMIO, 0x45) #define KVM_SET_USER_MEMORY_REGION _IOW(KVMIO, 0x46, \ From patchwork Fri Dec 2 10:50:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 28863 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp763121wrr; Fri, 2 Dec 2022 02:56:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xnVFxcjqW6GrCCGG6ByK5KRgHyg8F0yTukuznffam9mQRY+sIwZ9r9UrzhFrz68PO+DSV X-Received: by 2002:a17:907:8d1a:b0:7ae:6ffe:a118 with SMTP id tc26-20020a1709078d1a00b007ae6ffea118mr59295385ejc.250.1669978609170; Fri, 02 Dec 2022 02:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669978609; cv=none; d=google.com; s=arc-20160816; b=tPEQ1AcoI3UwlrAt+mVOhgID6di6oo53LIHggAGxfZbdp9R9gBzsmkxCxgAKTUU9uw vBg0QcNkXFvyOJJsZnKTyyEAUCxROXkatxV2mPOqmxb+NKhvdxP0XSeF/1FWx8VxEMOG gFMmc6XHMuW8x+6YTEvOlbCNuPIDzKEOith9rPSuSw2yqEQyoGA5FSr8OiHPtwzT6Xwc +uqshaP4XPASTdpB3YAXw9CE09AfluVN6V4UzGv9q9v2CG5BNm8Jwc/U/xhwHAUfSJb5 biZ4RWyoytctejnadjRMZii1186IeUKz1q6na8KI2i9GhEnuAYNyWhCU91RvNH4mBpBM 6F7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1ZiLhwAB4T5DlsifWPEOUp55KcHRF76jPNns8olDBLs=; b=1K4tBmTV5n0EYkVdz3nftGCgE0rFh9RLmbUaxmBxBahyX5Xi2KL3HYWEqRuwKz0ryp ZPRyWPZX6z/3DfPuSJTqQYUzXqXQMBT9PcD/OESDRmTNOt4bPoNRp5T4Tp7W7uFuzP3J WPqsrgqshXIV7ZvlHH29aeSu/7t8UBOtu0/lw4vOHMGHLbTWjVqlJrmpyvHUB34Kbhei PwBJWIjy00+UKfrYfz9SzFOLd7IWCiGGiiKzsh6/yD6KnaKF1LQgw9+n+OOh6GX7wer7 8uvEd6e3NPoZIKO5VeJc6PW437OBCVH0EX1PeRH3YPb/+R9pz1Z/erVdAl+S7Z2U7T80 gozQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hc4NLD78; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc9-20020a1709071c0900b007bc5528a4d7si6769639ejc.47.2022.12.02.02.56.25; Fri, 02 Dec 2022 02:56:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hc4NLD78; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233242AbiLBKvo (ORCPT + 99 others); Fri, 2 Dec 2022 05:51:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232941AbiLBKv3 (ORCPT ); Fri, 2 Dec 2022 05:51:29 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7583ED0382 for ; Fri, 2 Dec 2022 02:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669978231; 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=1ZiLhwAB4T5DlsifWPEOUp55KcHRF76jPNns8olDBLs=; b=Hc4NLD78+J6CD/ItmgTJgM2ITujoOJl44UrVS2ORnwjbqr6lR5k9B4HyljCz95d+P9xuWm mhUbFKYadcF/qwhAqAYATiYP/A8wbFscVucdZDa7Su/hY5v40QTR06Uc4FNidV2jMoUsdn zogq9cPOCVREkrPjN0EXFubUtBnn5X8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-502-hjBjK3HyOQe7N1ccMe4EzA-1; Fri, 02 Dec 2022 05:50:30 -0500 X-MC-Unique: hjBjK3HyOQe7N1ccMe4EzA-1 Received: by mail-wm1-f72.google.com with SMTP id 8-20020a05600c228800b003d0376e42deso1742456wmf.4 for ; Fri, 02 Dec 2022 02:50:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=1ZiLhwAB4T5DlsifWPEOUp55KcHRF76jPNns8olDBLs=; b=q/iGZ0zFjC9o20rCOxfHzPbjdobaANiekutkWiGeMg643GsJAnDiBlalysxFfDX5Jm XwGzgAhHjsDO4YyogsdrYip3v97Cdoepdj2mEoGqB7Pk69BmEVSBu7QHyKx7hWqCWG3t XjfIcn6bNCKsRgqk9eUT1bOSpDxPy3qDEr1aYPGVujhfvDa8wM79fICDLkMZstL8lx1M 96+EUxIDa/TBogmuKrfh4i33au7XUEj/7w4GhJGe7OqaCWXtSoAKtZcp9ae8AoGKFxj0 cpYWVjObalSJghW9DyAzNj/3lvOeTQ+JgBX2mLytAUDlWwshDIrh7F+8heklxVzrDlv4 Aqxw== X-Gm-Message-State: ANoB5pm6amVwu95V12XV2s5mIF4AfeGJgHUERweFRSH7WL8iz9DB86cJ kri19WtRlOCXI9pmT2WmZteIc836MyWIzIC7WFjFnSe5nULeSmn8d+OOIbAou71g4kNOMZlJYTR UcuEd6QEo4VgnsW1FazjVOr8gifwVHR9xWZeOwNwXRzupvDJzpkiTEYdi/xUq5HwqeSUhVl7zYF 0= X-Received: by 2002:a05:6000:983:b0:236:aacc:ea07 with SMTP id by3-20020a056000098300b00236aaccea07mr45038558wrb.36.1669978229135; Fri, 02 Dec 2022 02:50:29 -0800 (PST) X-Received: by 2002:a05:6000:983:b0:236:aacc:ea07 with SMTP id by3-20020a056000098300b00236aaccea07mr45038533wrb.36.1669978228835; Fri, 02 Dec 2022 02:50:28 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id bg2-20020a05600c3c8200b003a3170a7af9sm9728818wmb.4.2022.12.02.02.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 02:50:28 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Paolo Bonzini , Sergio Lopez Pascual , Sean Christopherson , Javier Martinez Canillas , Arnaldo Carvalho de Melo , Guang Zeng , "Gustavo A. R. Silva" , Jing Liu , Jonathan Corbet , Nicholas Piggin , Wei Wang , kvm@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v2 3/4] KVM: Reference to kvm_userspace_memory_region in doc and comments Date: Fri, 2 Dec 2022 11:50:10 +0100 Message-Id: <20221202105011.185147-4-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221202105011.185147-1-javierm@redhat.com> References: <20221202105011.185147-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751099490426883091?= X-GMAIL-MSGID: =?utf-8?q?1751099490426883091?= There are still references to the removed kvm_memory_region data structure but the doc and comments should mention struct kvm_userspace_memory_region instead, since that is what's used by the ioctl that replaced the old one and this data structure support the same set of flags. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) Documentation/virt/kvm/api.rst | 2 +- include/linux/kvm_host.h | 4 ++-- include/uapi/linux/kvm.h | 6 +++--- tools/include/uapi/linux/kvm.h | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index 85a5b12eb017..b15ea129f9cf 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -1309,7 +1309,7 @@ yet and must be cleared on entry. __u64 userspace_addr; /* start of the userspace allocated memory */ }; - /* for kvm_memory_region::flags */ + /* for kvm_userspace_memory_region::flags */ #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) #define KVM_MEM_READONLY (1UL << 1) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 18592bdf4c1b..759ed18dabb7 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -50,8 +50,8 @@ #endif /* - * The bit 16 ~ bit 31 of kvm_memory_region::flags are internally used - * in kvm, other bits are visible for userspace which are defined in + * The bit 16 ~ bit 31 of kvm_userspace_memory_region::flags are internally + * used in kvm, other bits are visible for userspace which are defined in * include/linux/kvm_h. */ #define KVM_MEMSLOT_INVALID (1UL << 16) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 6ba2928f8f18..e42be6b45b9b 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -96,9 +96,9 @@ struct kvm_userspace_memory_region { }; /* - * The bit 0 ~ bit 15 of kvm_memory_region::flags are visible for userspace, - * other bits are reserved for kvm internal use which are defined in - * include/linux/kvm_host.h. + * The bit 0 ~ bit 15 of kvm_userspace_memory_region::flags are visible for + * userspace, other bits are reserved for kvm internal use which are defined + * in include/linux/kvm_host.h. */ #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) #define KVM_MEM_READONLY (1UL << 1) diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index 6ba2928f8f18..21d6d29502e4 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h @@ -96,9 +96,9 @@ struct kvm_userspace_memory_region { }; /* - * The bit 0 ~ bit 15 of kvm_memory_region::flags are visible for userspace, - * other bits are reserved for kvm internal use which are defined in - * include/linux/kvm_host.h. + * The bit 0 ~ bit 15 of kvm_userspace_memory_region::flags are visible for + * userspace, other bits are reserved for kvm internal use which are defined + *in include/linux/kvm_host.h. */ #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) #define KVM_MEM_READONLY (1UL << 1) From patchwork Fri Dec 2 10:50:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 28864 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp763145wrr; Fri, 2 Dec 2022 02:56:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jUILgri9UZMFqpU4zxmTnSjwKhnnom7DkRIK1D1YSktAuYMdEDO+sKCXKJ586/JGxyFkJ X-Received: by 2002:a17:906:3810:b0:7b5:cab5:2ea8 with SMTP id v16-20020a170906381000b007b5cab52ea8mr43747330ejc.222.1669978615811; Fri, 02 Dec 2022 02:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669978615; cv=none; d=google.com; s=arc-20160816; b=pP3nVcptJjPbmFAXdOwsbqvAw9OvXxbjG6O+woDlZLhpK8tjCm+24cKK4wGnIa73ru ak8vt0p4Wh7qXWbmxSPkUvvruc9hXGhnFs5vt0ZiUN8FIzyjMrTDEVTmQMU4wDLeQzDG kzUP/ifTOnkUC7kkSaQrE3OXiKlFQZMia37DKZWlzdyXEPQ8VKsvdYPtacx94FTxpW0d hTlJYUIRKCN248OqNnUQEfGlwv4k5V+iqDG42F8t4u6nl5+Hdhi2eXg/Kz/ofSIuxnU8 wN6wehCEFBV06gbzdxGaaoYVPLdIdXrlZRYCYKWUYjh8P6C1kp08i1gNEOqyAluHI1bt V7Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=01EVu86F03ZVkaisaIA8aOhxapK6bD5iJUUbcQRNmys=; b=Yu4jjBgmjrXH6MS1cVn5P/Q/ooa5WOYbR2Us/EemtuOS3bgaOTZVOg0YWxTQOAQmMR rX6l+NFC2jyfpIubwIorrgjoIPf9fg0xq9wBAfiUKS9jgr8HIooveUSK0zFb70fNZZJY T9X9siQQ3GxUgAjZ+NVvgKLELDXlj6im7hPKRBJxiwh9gGdPnnIQpFO44HpajVyJYheu F9x9Q2W4SEuvJxW2NrdmlEC1brZ08TBpYhfhMZHWNS8fp9HQ8XWtR1SXPGew1mjCrZDH ywCSCW9CupmmWrqo6hFaliCi+JC8qOYJIha7K2gCILnx39O27/IrPX1LvsEbKhoeVl8H Zq+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gRBpVn4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a056402254b00b00461d2ed78acsi6368834edb.378.2022.12.02.02.56.31; Fri, 02 Dec 2022 02:56:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gRBpVn4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233122AbiLBKvs (ORCPT + 99 others); Fri, 2 Dec 2022 05:51:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232315AbiLBKvb (ORCPT ); Fri, 2 Dec 2022 05:51:31 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48FE8D0391 for ; Fri, 2 Dec 2022 02:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669978233; 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=01EVu86F03ZVkaisaIA8aOhxapK6bD5iJUUbcQRNmys=; b=gRBpVn4XFihIn5sMWZ7vHPj7PrTqcPk7f3MON2lpeIUdwZDH/iz1Zp1x2Rx6qagylD8apH jj/4jxKXIM+n0hu4onVD7EoxT0wcrykZ2IOaLze5fo44iNwf4gLwW6ziBSjZpN/MB/+yz7 gi/YUlstB6B/dNnINKtWBpK/A9f8Bvk= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-221-RHzUfQalMWCr7IQNpp64HQ-1; Fri, 02 Dec 2022 05:50:32 -0500 X-MC-Unique: RHzUfQalMWCr7IQNpp64HQ-1 Received: by mail-wr1-f71.google.com with SMTP id d6-20020adfa346000000b0024211c0f988so972651wrb.9 for ; Fri, 02 Dec 2022 02:50:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=01EVu86F03ZVkaisaIA8aOhxapK6bD5iJUUbcQRNmys=; b=Kagl/86lgZyTjuVJiPq13W4Fj/2iNdBQxby9IOt/Nmv5568v118ym8jlrbMt1WMfYa Uxel41PANXqvLiPY+W1x8DiItSPJIZqnIUShV0oeh08dxz+ljXQSKXvxxrETpy9G5WVr w237G8zDeWg1aRIXHbSORAZY8+GLQKLQCBIlrux/6Yjf1nyaf7IHd3YDeHaHC/qfpaOF U03OjhTACydC8L7sZo6reTXJUhocbYmzgftXECfaw46HkA07H5UdocEuZ/sTD481o9YP nuICUYC4veYeHYCcZXhJUV4Bcq9fbjpEiM3DKBw6MLRcFKL/wHcD9QvfYvM4RV6zyz0Y n9Ag== X-Gm-Message-State: ANoB5pnw1I3yKUMLqpvsEAqzZ0u88XqDwfNpK7xRP7dFm5ghlEGBN+i2 rr56EpC6NQ/7ThX9NA5FkGBDK2BR8FjCl3VQ6Voscj/EiqYwgVvEksmjugAOmzN+5cjMcAe3Nui e4MsAT0ecYQWLb4jb36rBU5reiW5sYBDJbbKCdh3VgALaaLjojlF+3Rpe73qGvt6+MlbxTOK1aH g= X-Received: by 2002:adf:e105:0:b0:236:73af:f9ad with SMTP id t5-20020adfe105000000b0023673aff9admr42046594wrz.225.1669978230908; Fri, 02 Dec 2022 02:50:30 -0800 (PST) X-Received: by 2002:adf:e105:0:b0:236:73af:f9ad with SMTP id t5-20020adfe105000000b0023673aff9admr42046575wrz.225.1669978230635; Fri, 02 Dec 2022 02:50:30 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id bg2-20020a05600c3c8200b003a3170a7af9sm9728818wmb.4.2022.12.02.02.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 02:50:29 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Paolo Bonzini , Sergio Lopez Pascual , Sean Christopherson , Javier Martinez Canillas , Jonathan Corbet , kvm@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v2 4/4] KVM: Add missing arch for KVM_CREATE_DEVICE and KVM_{SET,GET}_DEVICE_ATTR Date: Fri, 2 Dec 2022 11:50:11 +0100 Message-Id: <20221202105011.185147-5-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221202105011.185147-1-javierm@redhat.com> References: <20221202105011.185147-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751099496895949752?= X-GMAIL-MSGID: =?utf-8?q?1751099496895949752?= The ioctls are missing an architecture property that is present in others. Suggested-by: Sergio Lopez Pascual Signed-off-by: Javier Martinez Canillas --- (no changes since v1) Documentation/virt/kvm/api.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index b15ea129f9cf..1db60cd9e1ba 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -3266,6 +3266,7 @@ valid entries found. ---------------------- :Capability: KVM_CAP_DEVICE_CTRL +:Architectures: all :Type: vm ioctl :Parameters: struct kvm_create_device (in/out) :Returns: 0 on success, -1 on error @@ -3306,6 +3307,7 @@ number. :Capability: KVM_CAP_DEVICE_CTRL, KVM_CAP_VM_ATTRIBUTES for vm device, KVM_CAP_VCPU_ATTRIBUTES for vcpu device KVM_CAP_SYS_ATTRIBUTES for system (/dev/kvm) device (no set) +:Architectures: x86, arm64, s390 :Type: device ioctl, vm ioctl, vcpu ioctl :Parameters: struct kvm_device_attr :Returns: 0 on success, -1 on error