1
0

kbase: sev: Provide more details on virtio-net configuration

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 <dgilbert@redhat.com>
Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Erik Skultety 2020-08-07 13:13:39 +02:00
parent 551d1aa1fd
commit 61e56729ff

View File

@ -291,8 +291,9 @@ can still perform DoS on each other.
Virtio Virtio
------ ------
In order to make virtio devices work, we need to enable emulated IOMMU In order to make virtio devices work, we need to use
on the devices so that virtual DMA can work. ``<driver iommu='on'/>`` 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.
... ...
</domain> </domain>
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:
::
<domain>
...
<interface type='network'>
...
<model type='virtio'/>
<driver iommu='on'/>
<rom enabled='no'/>
</interface>
...
<domain>
Checking SEV from within the guest Checking SEV from within the guest
================================== ==================================
@ -424,6 +445,7 @@ Q35 machine
<source network='default'/> <source network='default'/>
<model type='virtio'/> <model type='virtio'/>
<driver iommu='on'/> <driver iommu='on'/>
<rom enabled='no'/>
</interface> </interface>
<graphics type='spice' autoport='yes'> <graphics type='spice' autoport='yes'>
<listen type='address'/> <listen type='address'/>
@ -496,6 +518,8 @@ PC-i440fx machine
<mac address='52:54:00:d8:96:c8'/> <mac address='52:54:00:d8:96:c8'/>
<source network='default'/> <source network='default'/>
<model type='virtio-non-transitional'/> <model type='virtio-non-transitional'/>
<driver iommu='on'/>
<rom enabled='no'/>
</interface> </interface>
<serial type='pty'> <serial type='pty'>
<target type='isa-serial' port='0'> <target type='isa-serial' port='0'>