From patchwork Sat Nov 19 08:56:31 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: 13049656 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A09EC4332F for ; Sat, 19 Nov 2022 08:57:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233620AbiKSI5o (ORCPT ); Sat, 19 Nov 2022 03:57:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbiKSI5k (ORCPT ); Sat, 19 Nov 2022 03:57:40 -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 A7D329DBA1 for ; Sat, 19 Nov 2022 00:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668848203; 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; bh=mH+aNM2CVMwH3fEpJlA6Odig9WHLu4rdFuKDTlmn9xw=; b=L3QTLpmlYzgqA0rH6bQNF2uRYhGycwoEvwAVAC0vvcKi11gvATQDWdvIZsXEuq/DrK5UfM VTN59vVcMuRpAOd8OlzVDklaEn+e7ODTu49C1sFwDhwNzpIBMnyV3xFL8MLhgTWO+f4oo3 ZBdvL7TOQC7AMAWg1PgdnyPFkLDvFA4= 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_128_GCM_SHA256) id us-mta-44-cMFdFgJCMRaGBqOi1RN7Mw-1; Sat, 19 Nov 2022 03:56:41 -0500 X-MC-Unique: cMFdFgJCMRaGBqOi1RN7Mw-1 Received: by mail-wm1-f71.google.com with SMTP id o5-20020a05600c510500b003cfca1a327fso3540414wms.8 for ; Sat, 19 Nov 2022 00:56:41 -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:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mH+aNM2CVMwH3fEpJlA6Odig9WHLu4rdFuKDTlmn9xw=; b=VKsT5FOKUrXs8/jWGFrDnCXxwq32yHtCjcPchyEGInV3CVDCVEUwyc93l0mUeiw+wu 7o8l4gHu7EA9iz6vbWCfKtmMeAh0m4yJzVnSt+ME/OjmsUbb1+JX1o3q8kmrsS3NAJMa RtzXseF0w9Esnx2kIuB7ak1NQBjaN576RChnoSFCgV5jB35iJ0W6c9hzTDmiQ4pz9br4 LdXlh/UHlrryYyZM9SvrSFHEpYrvpiPyJtcsPU90UOIutsaz8OmxINV51yBsTvXxlx/l yjj/fY5szQjCmMs2YYv+qJoFP9CnsffnQ9lLwZ6d94PYcrbUYF4GjjKJqPd1zkzFUMGf s+sA== X-Gm-Message-State: ANoB5plwuhripyEjcjEQeN8KL3I06/S+q3STlyZWJid6gMVL3rU/Ddqs jnSZyjlwLIhN+d1DQtOQmy7hJl3GtW6jIrKAqt+Ron1tDepQWUFXtX+Ns9neDClh2Cd9JCJ4T1Z z/4feadouv2Ng X-Received: by 2002:a05:600c:688:b0:3cf:a18d:39a4 with SMTP id a8-20020a05600c068800b003cfa18d39a4mr6918245wmn.125.1668848200628; Sat, 19 Nov 2022 00:56:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qupPcZoq50xJgdSZoP+qL0pA/oAKL+yADqU3RoWWkP/e/BZHdbrcFH9iAJ2xEEvIoj2TvWg== X-Received: by 2002:a05:600c:688:b0:3cf:a18d:39a4 with SMTP id a8-20020a05600c068800b003cfa18d39a4mr6918229wmn.125.1668848200359; Sat, 19 Nov 2022 00:56:40 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id fc10-20020a05600c524a00b003cf9bf5208esm12708160wmb.19.2022.11.19.00.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 00:56:39 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Sergio Lopez Pascual , Javier Martinez Canillas , Jonathan Corbet , Paolo Bonzini , kvm@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 1/2] KVM: Mark KVM_SET_MEMORY_REGION and KVM_SET_MEMORY_ALIAS as obsoleted Date: Sat, 19 Nov 2022 09:56:31 +0100 Message-Id: <20221119085632.1018994-1-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Other ioctl such as KVM_ARM_SET_DEVICE_ADDR have a (deprecated) next to it which makes it easier to determine that is deprecated. Do the same for the ioctls that have been obsoleted. Suggested-by: Sergio Lopez Pascual Signed-off-by: Javier Martinez Canillas --- Documentation/virt/kvm/api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index eee9f857a986..c17bac32d25c 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -272,7 +272,7 @@ the VCPU file descriptor can be mmap-ed, including: KVM_CAP_DIRTY_LOG_RING, see section 8.3. -4.6 KVM_SET_MEMORY_REGION +4.6 KVM_SET_MEMORY_REGION (obsoleted) ------------------------- :Capability: basic @@ -368,7 +368,7 @@ 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 +4.9 KVM_SET_MEMORY_ALIAS (obsoleted) ------------------------ :Capability: basic From patchwork Sat Nov 19 08:56:32 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: 13049657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 518E7C433FE for ; Sat, 19 Nov 2022 08:57:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233651AbiKSI5q (ORCPT ); Sat, 19 Nov 2022 03:57:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232651AbiKSI5k (ORCPT ); Sat, 19 Nov 2022 03:57:40 -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 68D0E9CF4E for ; Sat, 19 Nov 2022 00:56:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668848204; 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=dTnMAWMcXOaxFIQpcfG6YUPgYRs3mGJmNnh2pJlkTaQ=; b=UHqgSfWYgXt0U/3I4CYydlCLHA2FE7ysirZGwCVv5r7+GFuhlEe4RbZiYo38MnUIxBi6UH djIVKZ6AUNbHQ2swQnx9qqjK7zHVv9/aOPMYAYWdMzoXBjqF55Ol6G9ngpVajax2LkKG7p 3idMQUT3YrSqBAWslwBYa+uCIKQRutk= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-583-JjexKDE4OjSKbdNN6Kc6yQ-1; Sat, 19 Nov 2022 03:56:42 -0500 X-MC-Unique: JjexKDE4OjSKbdNN6Kc6yQ-1 Received: by mail-wm1-f70.google.com with SMTP id p14-20020a05600c204e00b003cf4cce4da5so1744809wmg.0 for ; Sat, 19 Nov 2022 00:56:42 -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=dTnMAWMcXOaxFIQpcfG6YUPgYRs3mGJmNnh2pJlkTaQ=; b=CuCfCqPKFUhU2lfn5rGvLCZXp8LhvaZ7rl8jkQMncwG280q8F5AT8poJEw1N9Z79vK 96ecRT/KPvhyLk/dtfP+PflT3ny/jwK6xP4pvmELt1tOXh6+KdbN8Y4m7gsRBWkSnYqb +unlFhoev0zNm/poAZQN5y0WQAHnH8OGAqEDplDs5387yMqjom44bRoz4/IhFLOtt1yL /5YY7m0SUob1QHDv3n1Wo59tw4ezkpgbS7bD8wGg8ati3JmcooXNsdy2z6atfYTmQgZi 7NPC9jBZag1Y04L5c1Xy/pu/tVJ/P4t/aBnrUvRZfho5OiqGsW6DuAMhw4LZV7l6idn5 Yhbw== X-Gm-Message-State: ANoB5pmGJRE+u86Gd2UxcIN9WAALHSN77qtttmBn6Wxor496yT+AMBDK nQlJKKZC5JRtt/k06oWH7Q+nJIo2BI6xvWHnYtap2sCIT6p4EYOmVfSwwKq/UlHv4VCvFKlL+Zc ncGi1GrdD18DY X-Received: by 2002:a05:6000:1148:b0:236:71cd:1a71 with SMTP id d8-20020a056000114800b0023671cd1a71mr6301108wrx.712.1668848201868; Sat, 19 Nov 2022 00:56:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iKlUjoSLuaU2OKOfUuMzVhcXhG2yCg6tTKCVerM+oZOqj7tj2WHCkqX1bb1HYERiD2HMfAA== X-Received: by 2002:a05:6000:1148:b0:236:71cd:1a71 with SMTP id d8-20020a056000114800b0023671cd1a71mr6301094wrx.712.1668848201599; Sat, 19 Nov 2022 00:56:41 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id fc10-20020a05600c524a00b003cf9bf5208esm12708160wmb.19.2022.11.19.00.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 00:56:41 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Sergio Lopez Pascual , Javier Martinez Canillas , Jonathan Corbet , Paolo Bonzini , kvm@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 2/2] KVM: Add missing arch for KVM_CREATE_DEVICE and KVM_{SET,GET}_DEVICE_ATTR Date: Sat, 19 Nov 2022 09:56:32 +0100 Message-Id: <20221119085632.1018994-2-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221119085632.1018994-1-javierm@redhat.com> References: <20221119085632.1018994-1-javierm@redhat.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The ioctls are missing an architecture property that is present in others. Suggested-by: Sergio Lopez Pascual Signed-off-by: Javier Martinez Canillas --- 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 c17bac32d25c..0a99858d6d03 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -3293,6 +3293,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 @@ -3333,6 +3334,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