Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1979770rdb; Wed, 31 Jan 2024 15:38:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrvgg214VtX4Rycrk6WGVsm6jIywVgG+FMUp5Z5ihXTco3LCNBvKmIlg49NhfactuXglLg X-Received: by 2002:a05:620a:1666:b0:783:dfe5:3393 with SMTP id d6-20020a05620a166600b00783dfe53393mr848729qko.55.1706744287275; Wed, 31 Jan 2024 15:38:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706744287; cv=pass; d=google.com; s=arc-20160816; b=FA5s+zKHJHLHOLV0LZsc6vjCvPna98+9tApZu55hUuHq9gU01rpLrHNmSrG+XtapDn lH0ha8yAS1ir1IIk7ffOYf290VEycyLvQG0bi9CBLomlorCasUE/sgV///IFlX0ShjxZ JupLAP4w8oO7aBTzoX7lduGzFar8ZR554hit9bJRPUPxQfU8CdTWdZH/Bqtg4tiWT47r WmuA6f3pN9iW492BaEw8e6/Cow7cehympQVl24WAGk+ABuZLkcyRris6J36zMaAQZGv5 oWHO05M7gnkQN/aOFu5MSfrFIi6an7JWwvDI+F+vxZIV2TK0ZA/tgoP8LjX5H21xcPbb J1oA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=aEh+wFpUinJIaznT4QZk7JIQDrVHQazll8Aw7qFD9DI=; fh=DJOjM8AeivF1SNqEL9BimZ5tloBC4/8MUX+l2mzFJtQ=; b=LK8xUNvaJ+ZMwpeIvGh4veO4gXEwF4OG/qTxjFpa6sygGJr/2eV2U8AHatsCXIR5ZQ khbLng3bithGLsiDqPfkU1PbCaVk7u8bjJtMVtGammNhbfsoIH3Xg+SCpe/FJ3uqWW0e PlQKqcG40eUe9n4vVK2y0QWuGP9xNDlGFMWPxY+Y7gCBja+q6EJ3b/kbovw6it1XnbZi J9Nv1UNEC/BbWY0adsJsKd747xQl3lBz4RGFVtxu74bXWKxmTz1S/IoRiAK4Jfb06nSK vfvh6LVEO8Z9Y2Rb3a3WEuedgXvNST7b7uisUanGw6pU+hCID0vkBlS1HQYF1j7nBP0g Wd/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F+4V8kwc; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCXF90PAj8jF41UbQdvx6toL/NLpHJlF7b1u85euyAaOuVFz+l7XgMVkt1O+blYC+W/EXeollzihafaTmldFJT5a+jg9Syf/BX+yBjkl7w== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h14-20020a05620a13ee00b00783f40977a1si9686853qkl.258.2024.01.31.15.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 15:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F+4V8kwc; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CBDCF1C227CF for ; Wed, 31 Jan 2024 23:38:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C8343C487; Wed, 31 Jan 2024 23:31:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="F+4V8kwc" 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 4C8673BB53 for ; Wed, 31 Jan 2024 23:31:00 +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=1706743862; cv=none; b=ZUZ8S7eolkqMu5jnplgLru/ydedPOK/bKOBaQGByIJb5A1i8iu5Yh4rQcUt2V4tuUFXKYzyNRMBjJYIwKL9LzAotZ3xkLYFltxJlc7H3dk0IJ/xCaXKwqPlxHSagRGCwLng7xHzQfyJ1EHtK8yvKwFLhfjGoPp4JRm9N09O/ivc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743862; c=relaxed/simple; bh=BDJaHPvofpfiISPE/qEiQQf3zc6+15Xz8vueMizXKGs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=JQLZWiQ+3J/99rvzZU5THdhYuogFdjZaLxNT/87NoZIsl77UF/T+LqNTu3e4NLzplmGjfiQU1EGMY5mj2cqIYdauUWJkcFaSO8vtPAfSTTq0zHntEFXu/NlNpR+QPH4FCu0Ig5PDRzKZ5FTPhL5El4XodmzebU6CTHRj66Nkcx4= 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=F+4V8kwc; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706743859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aEh+wFpUinJIaznT4QZk7JIQDrVHQazll8Aw7qFD9DI=; b=F+4V8kwcmW1cist3BzLtFC9kyaCxE0J1PPoS2EBL6WLoxqcjAQEw0VMouJ3etDpjVvWMYf VDXwBfRwJt8ADvU3BzCO84ToFbadfkKVPvi2MCdf04o63TLE4BJEX83iw7NKDOxfZMiPKm SUw0KQ20+WszbqffJa53EGi7VZNx/F8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-682-wQOvrYrqMeeO4c6k-EyjNA-1; Wed, 31 Jan 2024 18:30:57 -0500 X-MC-Unique: wQOvrYrqMeeO4c6k-EyjNA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CEE213C0C102; Wed, 31 Jan 2024 23:30:56 +0000 (UTC) Received: from virtlab511.virt.lab.eng.bos.redhat.com (virtlab511.virt.lab.eng.bos.redhat.com [10.19.152.198]) by smtp.corp.redhat.com (Postfix) with ESMTP id B6F65C2590D; Wed, 31 Jan 2024 23:30:56 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH 1/8] KVM: remove more traces of device assignment UAPI Date: Wed, 31 Jan 2024 18:30:49 -0500 Message-Id: <20240131233056.10845-2-pbonzini@redhat.com> In-Reply-To: <20240131233056.10845-1-pbonzini@redhat.com> References: <20240131233056.10845-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-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 Signed-off-by: Paolo Bonzini --- include/uapi/linux/kvm.h | 50 ---------------------------------------- 1 file changed, 50 deletions(-) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index c3308536482b..e107ea953585 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1965,56 +1965,6 @@ struct kvm_sev_receive_update_data { __u32 trans_len; }; -#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) -#define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1) -#define KVM_DEV_ASSIGN_MASK_INTX (1 << 2) - -struct kvm_assigned_pci_dev { - __u32 assigned_dev_id; - __u32 busnr; - __u32 devfn; - __u32 flags; - __u32 segnr; - union { - __u32 reserved[11]; - }; -}; - -#define KVM_DEV_IRQ_HOST_INTX (1 << 0) -#define KVM_DEV_IRQ_HOST_MSI (1 << 1) -#define KVM_DEV_IRQ_HOST_MSIX (1 << 2) - -#define KVM_DEV_IRQ_GUEST_INTX (1 << 8) -#define KVM_DEV_IRQ_GUEST_MSI (1 << 9) -#define KVM_DEV_IRQ_GUEST_MSIX (1 << 10) - -#define KVM_DEV_IRQ_HOST_MASK 0x00ff -#define KVM_DEV_IRQ_GUEST_MASK 0xff00 - -struct kvm_assigned_irq { - __u32 assigned_dev_id; - __u32 host_irq; /* ignored (legacy field) */ - __u32 guest_irq; - __u32 flags; - union { - __u32 reserved[12]; - }; -}; - -struct kvm_assigned_msix_nr { - __u32 assigned_dev_id; - __u16 entry_nr; - __u16 padding; -}; - -#define KVM_MAX_MSIX_PER_DEV 256 -struct kvm_assigned_msix_entry { - __u32 assigned_dev_id; - __u32 gsi; - __u16 entry; /* The index of entry in the MSI-X table */ - __u16 padding[3]; -}; - #define KVM_X2APIC_API_USE_32BIT_IDS (1ULL << 0) #define KVM_X2APIC_API_DISABLE_BROADCAST_QUIRK (1ULL << 1) -- 2.39.0