From nobody Thu May 2 18:03:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1597147968; cv=none; d=zohomail.com; s=zohoarc; b=ZefnQxkBJJXvFyHUOzYABv4wIoa529KsNjgaH7m4cDnMAE09KiLjCZiSY68ubzJ8EDaw6Itc8L2dNDIta+vnNR7QKz8qp60ptxGEKI2/eebrryjN4JQvFNdO02gCovk9ucXTwzaE21ofGlCrZTSxWBDlqGtynziKCpe6SrtN0TU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1597147968; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=B6S4AKmb6yOMBD0qhonOvArxt8sbMP0xN50tS+aJDRc=; b=lW5hffipVcceijSBtiz5VL1/wqx67W0nQqk0J78PF+vBSHs6l6JIT53b/fQzm6c/phJgtfhmK9rTqdYnpls+bo3MAYZKz1pV7otdPaBJs0k34ueMtdECKIq27QovE1M70pY08Kh0YQsVXlSEUSlVcNvWPIsLqEzhdmOG1BIsj8A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1597147968330944.8605340770952; Tue, 11 Aug 2020 05:12:48 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-220-nv-sZQk8NIu60ZsorV1WRA-1; Tue, 11 Aug 2020 08:12:45 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 29999100A8FE; Tue, 11 Aug 2020 12:12:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 32EEB10013D5; Tue, 11 Aug 2020 12:12:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A7FB0A553C; Tue, 11 Aug 2020 12:12:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 07BCCVnB032444 for ; Tue, 11 Aug 2020 08:12:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3A9D51001B07; Tue, 11 Aug 2020 12:12:31 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.193.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2D99D10013D5; Tue, 11 Aug 2020 12:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597147967; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=B6S4AKmb6yOMBD0qhonOvArxt8sbMP0xN50tS+aJDRc=; b=NnUFawcOXRdLDOqtgI1guMZxTQHmYe2BRsd9wdmBvmtqh1auGHsWQT9viGkGeseEOsRckF DFQswdNCAFs4kiM183oVpd/07OmPTz7ar2hUv9j/k441Vq9AsXNNl4/S29Ogugp31HIxzb 75EwaJMprE8fgZEnc3HfgpesZ7ikqks= X-MC-Unique: nv-sZQk8NIu60ZsorV1WRA-1 From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH v2] kbase: sev: Provide more details on virtio-net configuration Date: Tue, 11 Aug 2020 14:12:25 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: lersek@redhat.com, "Dr . David Alan Gilbert" , Erik Skultety X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" With virtio-net we also need to disable the iPXE option ROM otherwise a SEV-enabled guest would not boot. While at it, fix the full machine XML examples accordingly. Reported-by: Dr. David Alan Gilbert Signed-off-by: Erik Skultety Reviewed-by: Laszlo Ersek --- since v1: - ditched any mentions of vhost, since we can assume all the supported distros to have the latest QEMU-2.12 build containing the bugfix to m= ake vhost work with SEV docs/kbase/launch_security_sev.rst | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/docs/kbase/launch_security_sev.rst b/docs/kbase/launch_securit= y_sev.rst index cfdc2a6120..4a37c0c379 100644 --- a/docs/kbase/launch_security_sev.rst +++ b/docs/kbase/launch_security_sev.rst @@ -291,8 +291,9 @@ can still perform DoS on each other. Virtio ------ -In order to make virtio devices work, we need to enable emulated IOMMU -on the devices so that virtual DMA can work. +In order to make virtio devices work, we need to use +```` inside the given device XML element in order +to enable DMA API in the virtio driver. :: @@ -337,6 +338,26 @@ model, which means that virtio GPU cannot be used. ... +Virtio-net +~~~~~~~~~~ +With virtio-net it's also necessary to disable the iPXE option ROM as +iPXE is not aware of SEV (at the time of this writing). This translates to= the +following XML: + +:: + + + ... + + ... + + + + + ... + + + Checking SEV from within the guest =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @@ -424,6 +445,7 @@ Q35 machine + @@ -496,6 +518,8 @@ PC-i440fx machine + + -- 2.26.2