summary refs log tree commit diff stats
path: root/scripts/update-linux-headers.sh
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-09-18 16:23:15 +0800
committerSong Gao <gaosong@loongson.cn>2024-11-02 15:20:41 +0800
commit6edd2a9bec902bf8c4f7a7a819bf5a9a7ae0948b (patch)
tree57e84b137a3db38ebc2f84f15fa5375728b15c33 /scripts/update-linux-headers.sh
parenta45df286013270868e6d6e94c287dff19339a4b4 (diff)
downloadfocaccia-qemu-6edd2a9bec902bf8c4f7a7a819bf5a9a7ae0948b.tar.gz
focaccia-qemu-6edd2a9bec902bf8c4f7a7a819bf5a9a7ae0948b.zip
target/loongarch/kvm: Implement LoongArch PMU extension
Implement PMU extension for LoongArch kvm mode. Use OnOffAuto type
variable pmu to check the PMU feature. If the PMU Feature is not supported
with KVM host, it reports error if there is pmu=on command line.

If there is no any command line about pmu parameter, it checks whether
KVM host supports the PMU Feature and set the corresponding value in cpucfg.

This patch is based on lbt patch located at
  https://lore.kernel.org/qemu-devel/20240904061859.86615-1-maobibo@loongson.cn

Co-developed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240918082315.2345034-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'scripts/update-linux-headers.sh')
0 files changed, 0 insertions, 0 deletions