Re: [PATCH v2 1/3] HV: Add the emulation of CPUID with 0x16 leaf
On Mon, Aug 13, 2018 at 10:18:24AM +0000, Zhao, Yakui wrote:
The vcpuid base on these assumption:-----Original Message-----
(1) if we don't plan to support this feature, we could filter it.
(2) if the leaf greater than the limit (base or enternal), we should return the value in the limit leaf.
(3) If we plan to emulate some feature, like the cpu frequency, we could add an emulate entry for it.
So init_vcpuid_entry only needs to take care the leaf which needs to emulate/fliter/disable
some features. I don't think what you did about leaf over 0x80000000U lie in this scope.
If it is physical out of ranger, returning what hardware returns is better thanOK. I will remove them.