Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp561319pxb; Thu, 30 Sep 2021 11:52:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYklj9IP9mTToi0cIpima3U7QOf2L0Kn2wrRDjijY2hOHExOrAl1GE1XBkotI/jCSbPIkJ X-Received: by 2002:a63:4f0d:: with SMTP id d13mr6137611pgb.169.1633027930110; Thu, 30 Sep 2021 11:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633027930; cv=none; d=google.com; s=arc-20160816; b=HI3CawnM3yKSSOfvtzemKEq4yqN7RSkBsb87lSxCNL92xrcRd+RvN9VTXv3apf+34Z a+yz6WDAYchl08kiGL9RX6S79EsnqFlUMoIcMdutRs0pL5HWe1geKYxIeqq2zEDkOVpT vCNRArzQkAxR/kmStoS1uLZASBxAiHQfz6/+bB82CVpKm4bhgTo7rvaheCgoewxp/U67 /tqiTEbTW0AmaYmK8aj4SSzlo6nvYYHyD6ts3xXFnmbUuR8nGihiBHpliC/2Ele7/W4m +AfnZYbNf+coiSLqxxH1PdNmlvXSUyvxze2QCxWVLoEilshmeitRuMU6DONPz88pdgnI 1ypA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0abga0D1u/IdQg9y3krLjrNSALXarJfiwXawsFlevdE=; b=igEucTzqGuwok8q4J1zQp2CkIEJr1K4rkpYf/ynO8JUVHSQ+CiqLvD0hNrYg06LNv8 a+LYDt0j4Tfoj+AZGbfXqGz+zdWdWYSZ6Lp1Wwd5l4CV3RwgW9K0QmptB+KFb54R54AK 3+6s6cXLmN74NEje1LZHW2FPUyJZKoFeS+f22npQI0mANMAjpzkD5Ixu3hQ07MB9kbub lOKZy+07Pa3KzDdmRGdJ+2eY5Tq0zIPl4Kpx+VHGjjFCu5gdI7MArdOKBCGAlDOmJF1A BzETWUSAIXT5LFOpxpwLyEO0PsAA1aU/erx+gefny6DpU5Tr16vw2ETnGcsGNTH/0Fh1 3cLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YKvgW0DW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si4528716pga.607.2021.09.30.11.51.56; Thu, 30 Sep 2021 11:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YKvgW0DW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S245715AbhI3PWs (ORCPT + 99 others); Thu, 30 Sep 2021 11:22:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25410 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245411AbhI3PWr (ORCPT ); Thu, 30 Sep 2021 11:22:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633015264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0abga0D1u/IdQg9y3krLjrNSALXarJfiwXawsFlevdE=; b=YKvgW0DWUCMgYS+Gr1kmGd05vFueryaRhz3gUj5F7LhyGxGn3sMV6+7ki6FWmmnp5L+Eqs c7KZe82vNubLo/Cinxbuv0kwLva4j3qdlTxgICKA7VN3vPkKuoU5ItMiEqae41xH11FvyN 1rcfDb1F5DPJkkT2RJxmzhme7YPT6k8= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-562-XQV2Gj7fOJaYhTwUnpVxsQ-1; Thu, 30 Sep 2021 11:21:03 -0400 X-MC-Unique: XQV2Gj7fOJaYhTwUnpVxsQ-1 Received: by mail-wr1-f70.google.com with SMTP id k16-20020a5d6290000000b00160753b430fso1795074wru.11 for ; Thu, 30 Sep 2021 08:21:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0abga0D1u/IdQg9y3krLjrNSALXarJfiwXawsFlevdE=; b=T1bZ/hbpbiN3oHfi1T6D6rxgODJhNSDXQw2xrw6LwWvQ1glQPHBH3/zK9cwgTuHmqV GopOFoFRBy71xAVAqJuITUOYOwVDNZqOwd1LmybMVwMJXsOS8d3t61vc4EIoreDwo1Ru ChZiEcl2dXBE7ZWbM2oIIfAiKqZKuQZX2Exxzx55bm2YJdQ4MQHY0yI1jaROMcWd1oMg Hd+YzK+1AUoSAAo0WSyetlPnqeRzyDXQ0U1kanZf6gY0mVvLXHd5Naz4nU1CG3hIp9He 9UZLAQ+AmZ0gf7GVrLF7qfS5NpylITXlgjE1j2Ph3MAzsBkjVqGzJroE2TonfYVFyY2b 7lOw== X-Gm-Message-State: AOAM531rIlF5dDEUAzevWzgL5QMC/2FNwLV1ItqyN8fMlodAI45UTjmt qVecYbQewkzGCVDQpKzhj44CrMiLJng2UbvOzHAFFgmpe00m21x/cgrkIffFu6c059KFv5jmTop HqmWfTNQj0md1VNWNm5jLl+tO X-Received: by 2002:adf:8b47:: with SMTP id v7mr6750093wra.321.1633015261084; Thu, 30 Sep 2021 08:21:01 -0700 (PDT) X-Received: by 2002:adf:8b47:: with SMTP id v7mr6749726wra.321.1633015257068; Thu, 30 Sep 2021 08:20:57 -0700 (PDT) Received: from redhat.com ([2.55.134.220]) by smtp.gmail.com with ESMTPSA id z79sm3332530wmc.17.2021.09.30.08.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 08:20:56 -0700 (PDT) Date: Thu, 30 Sep 2021 11:20:52 -0400 From: "Michael S. Tsirkin" To: "Kuppuswamy, Sathyanarayanan" Cc: Dan Williams , Greg Kroah-Hartman , Borislav Petkov , X86 ML , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Andreas Noever , Michael Jamet , Yehezkel Bernat , "Rafael J . Wysocki" , Mika Westerberg , Jonathan Corbet , Jason Wang , Andi Kleen , Kuppuswamy Sathyanarayanan , Linux Kernel Mailing List , Linux PCI , USB list , virtualization@lists.linux-foundation.org Subject: Re: [PATCH v2 4/6] virtio: Initialize authorized attribute for confidential guest Message-ID: <20210930112029-mutt-send-email-mst@kernel.org> References: <20210930010511.3387967-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210930010511.3387967-5-sathyanarayanan.kuppuswamy@linux.intel.com> <20210930065953-mutt-send-email-mst@kernel.org> <6d1e2701-5095-d110-3b0a-2697abd0c489@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6d1e2701-5095-d110-3b0a-2697abd0c489@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 08:18:18AM -0700, Kuppuswamy, Sathyanarayanan wrote: > > > On 9/30/21 6:36 AM, Dan Williams wrote: > > > And in particular, not all virtio drivers are hardened - > > > I think at this point blk and scsi drivers have been hardened - so > > > treating them all the same looks wrong. > > My understanding was that they have been audited, Sathya? > > Yes, AFAIK, it has been audited. Andi also submitted some patches > related to it. Andi, can you confirm. > > We also authorize the virtio at PCI ID level. And currently we allow > console, block and net virtio PCI devices. > > { PCI_DEVICE(PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_TRANS_ID_NET) }, > { PCI_DEVICE(PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_TRANS_ID_BLOCK) }, > { PCI_DEVICE(PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_TRANS_ID_CONSOLE) }, Presumably modern IDs should be allowed too? -- MST