+43
−16
Loading
LoongArch inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9BTWW ------------------------------------------ Instruction cpucfg can be used to get processor features. And there is trap exception when it is executed in VM mode, and also it is to provide cpu features to VM. On real hardware cpucfg area 0 - 20 is used. Here one specified area 0x40000000 -- 0x400000ff is used for KVM hypervisor to privide PV features, and the area can be extended for other hypervisors in future. This area will never be used for real HW, it is only used by software. Signed-off-by:Bibo Mao <maobibo@loongson.cn> Signed-off-by:
Xianglai Li <lixianglai@loongson.cn>