confidential-guest-support.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Confidential Guest Support
  2. ==========================
  3. Traditionally, hypervisors such as QEMU have complete access to a
  4. guest's memory and other state, meaning that a compromised hypervisor
  5. can compromise any of its guests. A number of platforms have added
  6. mechanisms in hardware and/or firmware which give guests at least some
  7. protection from a compromised hypervisor. This is obviously
  8. especially desirable for public cloud environments.
  9. These mechanisms have different names and different modes of
  10. operation, but are often referred to as Secure Guests or Confidential
  11. Guests. We use the term "Confidential Guest Support" to distinguish
  12. this from other aspects of guest security (such as security against
  13. attacks from other guests, or from network sources).
  14. Running a Confidential Guest
  15. ----------------------------
  16. To run a confidential guest you need to add two command line parameters:
  17. 1. Use ``-object`` to create a "confidential guest support" object. The
  18. type and parameters will vary with the specific mechanism to be
  19. used
  20. 2. Set the ``confidential-guest-support`` machine parameter to the ID of
  21. the object from (1).
  22. Example (for AMD SEV)::
  23. qemu-system-x86_64 \
  24. <other parameters> \
  25. -machine ...,confidential-guest-support=sev0 \
  26. -object sev-guest,id=sev0,cbitpos=47,reduced-phys-bits=1
  27. Supported mechanisms
  28. --------------------
  29. Currently supported confidential guest mechanisms are:
  30. * AMD Secure Encrypted Virtualization (SEV) (see :doc:`i386/amd-memory-encryption`)
  31. * POWER Protected Execution Facility (PEF) (see :ref:`power-papr-protected-execution-facility-pef`)
  32. * s390x Protected Virtualization (PV) (see :doc:`s390x/protvirt`)
  33. Other mechanisms may be supported in future.