Closed ghost closed 8 years ago
Thanks, the description looks good. A few more questions:
Design discussion started at http://thread.gmane.org/gmane.comp.bios.edk2.devel/14049
@hzzhan9: can you recommend a simple QEMU command line, and give guest kernel (or userspace) instructions for verifying the feature?
Thanks!
The S3 requirement needs clarification: http://www.seabios.org/pipermail/seabios/2016-July/010761.html
Apparently S3 is required.
I'm also attaching a minimal kernel module that can be used for reading any MSR on any CPU, for testing this feature. Just create any empty git repo with git init
, then apply the patch with git am
. The commit message contains the build and run instructions.
... Sigh, github is stupid, it doesn't allow me to attach *.patch
. I have to zip it just to make github happy. Sorry.
tester.zip
Posted series:
[PATCH 0/4] OvmfPkg: program MSR_IA32_FEATURE_CONTROL from fw_cfg on all processors
http://thread.gmane.org/gmane.comp.bios.edk2.devel/14214
Posted series
[PATCH v2 0/5] OvmfPkg: program MSR_IA32_FEATURE_CONTROL from fw_cfg on all processors
http://thread.gmane.org/gmane.comp.bios.edk2.devel/14471
Posted series
[PATCH v3 0/5] OvmfPkg: program MSR_IA32_FEATURE_CONTROL from fw_cfg on all processors
http://thread.gmane.org/gmane.comp.bios.edk2.devel/14529
(Commit range 51773d49de84..dbab994991c7.)
This (closed) item has been manually migrated to https://tianocore.acgmultimedia.com/show_bug.cgi?id=86
Hi,
A recent QEMU patch series [1] adds a new fw_cfg file "etc/msr_feature_control" to publish the value that the guest firmware is advised to write to MSR_IA32_FEATURE_CONTROL (MSR 0x3a). This should be supported by OVMF as well [2].
./configure --enable-kvm
).qemu-system-x86_64 -enable-kvm -smp 4 -cpu qemu64,+vmx -hda PATH_TO_GUEST_IMAGE -m 512
rdmsr -a 0x3a
It's expected to get 4 lines of '5', which means MSR_IA32_FEATURE_CONTROL on all CPUs are set to 5.