]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Add steal time support on migration
authorBibo Mao <maobibo@loongson.cn>
Mon, 30 Sep 2024 06:40:40 +0000 (14:40 +0800)
committerSong Gao <gaosong@loongson.cn>
Sat, 2 Nov 2024 07:45:45 +0000 (15:45 +0800)
commit47b54e15bbe78722c62dfafc3e04deded820c05e
treec313f9236f5f7e17b67ed1e13fe0d5622c72c02e
parent6495c577bd7edf53bd89e9f26c1f6263fcf7e71a
target/loongarch: Add steal time support on migration

With pv steal time supported, VM machine needs get physical address
of each vcpu and notify new host during migration. Here two
functions kvm_get_stealtime/kvm_set_stealtime, and guest steal time
physical address is only updated on KVM_PUT_FULL_STATE stage.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240930064040.753929-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/cpu.h
target/loongarch/kvm/kvm.c
target/loongarch/machine.c