Thanks,
Ray

> 在 2016年3月15日,下午5:33,Paolo Bonzini <pbonz...@redhat.com> 写道:
> 
> 
> 
>> On 15/03/2016 10:10, Ni, Ruiyu wrote:
>> Paolo, Laszlo,
>> As I mentioned in previous mail, the EAX I got from CpuSaveState
>> is different from what I set before entering SMM.
>> Because the failure was seen in a QEMU launched in Windows
>> using the following command:
>> qemu-system-x86_64.exe \
>>  -machine q35,smm=on,accel=tcg \
>>  -smp 1 \
>>  -drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly=on \
>>  -drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd \
>>  --serial COM5
>> 
>> 
>> I guess you should use Linux to run QEMU. So I switched to Ubuntu 14.04.
> 
> There should be no difference between Linux and Windows (only between
> TCG and KVM).
> 
>> 1. Upgraded the kernel to 4.4.1.
>> 2. Download the QEMU 2.5 source and make
>> 3. run the following command:
>> qemu-system-x86_64 \
>>   -display none \
>>   -machine q35,smm=on,accel=kvm \
>>   -global driver=cfi.pflash01,property=secure,value=on \
>>   -drive 
>> if=pflash,format=raw,unit=0,file=Build/Ovmf3264/DEBUG_GCC49/FV/OVMF_CODE.fd,readonly=on
>>  \
>>   -drive 
>> if=pflash,format=raw,unit=1,file=Build/Ovmf3264/DEBUG_GCC49/FV/OVMF_VARS.fd \
>>   --serial file:ovmf.log
> 
> I'm not sure.  The above command line works for me after building OVMF
> like this:
> 
>    build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -b DEBUG -t GCC49 -n 4
> 
> I'm using commit 89a8115 ("BaseTools: Support recent versions of cx_freeze.",
> 2016-03-15) of OVMF.

I supplied additional flag when build: 
-D CSM_ENABLE=TRUE 
-D SMM_REQUIRE=TRUE
I guess the second flag matters.
> 
> Paolo
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to