tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.54k stars 2.45k forks source link

RFE: OvmfPkg: Set MSR_IA32_FEATURE_CONTROL by following QEMU fw_cfg file #97

Closed ghost closed 8 years ago

ghost commented 8 years ago

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].

lersek commented 8 years ago

Thanks, the description looks good. A few more questions:

ghost commented 8 years ago
lersek commented 8 years ago

Design discussion started at http://thread.gmane.org/gmane.comp.bios.edk2.devel/14049

lersek commented 8 years ago

@hzzhan9: can you recommend a simple QEMU command line, and give guest kernel (or userspace) instructions for verifying the feature?

Thanks!

lersek commented 8 years ago

The S3 requirement needs clarification: http://www.seabios.org/pipermail/seabios/2016-July/010761.html

lersek commented 8 years ago

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

lersek commented 8 years ago

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

lersek commented 8 years ago

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

lersek commented 8 years ago

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

lersek commented 8 years ago

(Commit range 51773d49de84..dbab994991c7.)

lersek commented 8 years ago

This (closed) item has been manually migrated to https://tianocore.acgmultimedia.com/show_bug.cgi?id=86