• M
    qemu: Enable secure boot · 9c1524a0
    Michal Privoznik 提交于
    In qemu, enabling this feature boils down to adding the following
    onto the command line:
    
      -global driver=cfi.pflash01,property=secure,value=on
    
    However, there are some constraints resulting from the
    implementation. For instance, System Management Mode (SMM) is
    required to be enabled, the machine type must be q35-2.4 or
    later, and the guest should be x86_64. While technically it is
    possible to have 32 bit guests with secure boot, some non-trivial
    CPU flags tuning is required (for instance lm and nx flags must
    be prohibited). Given complexity of our CPU driver, this is not
    trivial. Therefore I've chosen to forbid 32 bit guests for now.
    If there's ever need, we can refine the check later.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    9c1524a0
qemu_command.c 333.2 KB