Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp403748pxb; Thu, 30 Sep 2021 08:28:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylpsevSAeuY2kMK5idvn4BFw6EoU76RIconrl9dUcGWVP0DcqOAj/5AGxkCo2iRthVynFx X-Received: by 2002:a17:90a:4414:: with SMTP id s20mr7116560pjg.144.1633015735166; Thu, 30 Sep 2021 08:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633015735; cv=none; d=google.com; s=arc-20160816; b=ITwrEM4mS3xtdalSeU6pCeoXLP2eIul+bPkkjltfqp+qQ+30V3yIWylq9MC3YYOxez HP4gczRVao4Wu9+5BrWEUC+ImtRmwDJMwBpcr36nNxz9McZhbUa5Hjh4DXbIH/l58Rm7 UyhoUNNJelS/11X9vtTlDFgKZ+dWDdvzklY5Y3JDo9cRMIBclISbTnJ+lfGOHYzHOin5 1cVVer4m8pW+BSvSQGbYAB/8oUb/LmU1nG7eYNJ0/Kkt4SfF0XOV2sPwWddi6vf4eAs6 kC2sZJ1UkLoNaDwUZdHI528f8NJP6iMphvypOdD6DcKATbMotRzMOK1iLSa8Brf445H9 n04w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=XT3bZNk+BsCltCnehrOBPVIxgJC3UhCu7tNPSZj9SxE=; b=A7qt/b099Gr82+IYSYjON4zs26QCvFl2Jx6uV9mpliYRgNpbdIJVT9TnvXhIINeMHA pt/RE6VnoVewMIiSXjefRz15820cuW85NvWVnuWeL5eHlQKLOi2cxz3cQAWHr352wEoB B2UDu+GiPvusc/YPXokkg37ljofd7GrasvRD2r5NI2otR+VXyPoRgqHZ0ZWWGPXIK000 WVqCsWCWS/srYOaVCaEot+Gvy5dzJqX7RWb9DuMi0cPQTnnSMMUarYfjlpKKBJLxhkau 8B3K9uqq4G4SumZNuslCS4Tb3Yeq2qTtSmn6jCBO3qCyY8+jz5wLq9aaNC0PtF7xZH8t 57fg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g187si3716473pfb.309.2021.09.30.08.28.37; Thu, 30 Sep 2021 08:28:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343539AbhI3PZ3 (ORCPT + 99 others); Thu, 30 Sep 2021 11:25:29 -0400 Received: from mga11.intel.com ([192.55.52.93]:29059 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233612AbhI3PZ3 (ORCPT ); Thu, 30 Sep 2021 11:25:29 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10123"; a="222006740" X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="222006740" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 08:23:41 -0700 X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="479980395" Received: from rnmathur-mobl1.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.212.105.173]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 08:23:40 -0700 Subject: Re: [PATCH v2 4/6] virtio: Initialize authorized attribute for confidential guest To: "Michael S. Tsirkin" 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 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> <20210930112029-mutt-send-email-mst@kernel.org> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <2cc78624-b2ef-523a-5feb-064fdfd06a9a@linux.intel.com> Date: Thu, 30 Sep 2021 08:23:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210930112029-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/21 8:20 AM, Michael S. Tsirkin wrote: > 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? You mean IDs in range 104x right? If yes, we also allow them for above mentioned types. > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer