On 02/24/16 17:06, Laszlo Ersek wrote:

> (2) Build OVMF as you always do, but pass "-D SMM_REQUIRE".

> (4) The QEMU command line you want (on Windows, i.e., for software
> emulation) is:
> 
>   qemu-system-x86_64 \
>     -machine pc-q35-2.5,smm=on,accel=tcg \
>     -m 2048 \
>     -smp 4 \
>     -global driver=cfi.pflash01,property=secure,value=on \
>     -drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly=on \
>     -drive if=pflash,format=raw,unit=1,file=ray1.vars \
>     ...
> 
> This virtual machine will have software emulation (accel=tcg), 2 GB of
> RAM (-m 2048), 4 VCPUs (-smp 4), and it will use, as variable store, the
> "ray1.vars" file.

Another note: because S3Resume2Pei does not support the

  SMM + X64 PEI

combination, you will have to do one of the following, in addition to
the above:

(a) in step (2), build the Ia32X64 variant of OVMF, rather than the X64
variant. This will make for a 32-bit PEI.

(b) alternatively, in step (4), append the following option, to disable S3:

  -global ICH9-LPC.disable_s3=1

>From these two, I recommend (a).

Thanks
Laszlo
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to