Skip to content

Commit 61e5672

Browse files
committed
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 <[email protected]> Signed-off-by: Erik Skultety <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]>
1 parent 551d1aa commit 61e5672

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

docs/kbase/launch_security_sev.rst

+26-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,9 @@ can still perform DoS on each other.
291291
Virtio
292292
------
293293

294-
In order to make virtio devices work, we need to enable emulated IOMMU
295-
on the devices so that virtual DMA can work.
294+
In order to make virtio devices work, we need to use
295+
``<driver iommu='on'/>`` inside the given device XML element in order
296+
to enable DMA API in the virtio driver.
296297

297298
::
298299

@@ -337,6 +338,26 @@ model, which means that virtio GPU cannot be used.
337338
...
338339
</domain>
339340

341+
Virtio-net
342+
~~~~~~~~~~
343+
With virtio-net it's also necessary to disable the iPXE option ROM as
344+
iPXE is not aware of SEV (at the time of this writing). This translates to the
345+
following XML:
346+
347+
::
348+
349+
<domain>
350+
...
351+
<interface type='network'>
352+
...
353+
<model type='virtio'/>
354+
<driver iommu='on'/>
355+
<rom enabled='no'/>
356+
</interface>
357+
...
358+
<domain>
359+
360+
340361
Checking SEV from within the guest
341362
==================================
342363

@@ -424,6 +445,7 @@ Q35 machine
424445
<source network='default'/>
425446
<model type='virtio'/>
426447
<driver iommu='on'/>
448+
<rom enabled='no'/>
427449
</interface>
428450
<graphics type='spice' autoport='yes'>
429451
<listen type='address'/>
@@ -496,6 +518,8 @@ PC-i440fx machine
496518
<mac address='52:54:00:d8:96:c8'/>
497519
<source network='default'/>
498520
<model type='virtio-non-transitional'/>
521+
<driver iommu='on'/>
522+
<rom enabled='no'/>
499523
</interface>
500524
<serial type='pty'>
501525
<target type='isa-serial' port='0'>

0 commit comments

Comments
 (0)