qemu-patch-raspberry4/accel/kvm
Dongjiu Geng 6b552b9bc8 KVM: Move hwpoison page related functions into kvm-all.c
kvm_hwpoison_page_add() and kvm_unpoison_all() will both
be used by X86 and ARM platforms, so moving them into
"accel/kvm/kvm-all.c" to avoid duplicate code.

For architectures that don't use the poison-list functionality
the reset handler will harmlessly do nothing, so let's register
the kvm_unpoison_all() function in the generic kvm_init() function.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Signed-off-by: Xiang Zheng <zhengxiang9@huawei.com>
Acked-by: Xiang Zheng <zhengxiang9@huawei.com>
Message-id: 20200512030609.19593-8-gengdongjiu@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-05-14 15:03:09 +01:00
..
kvm-all.c KVM: Move hwpoison page related functions into kvm-all.c 2020-05-14 15:03:09 +01:00
Makefile.objs kvm: add memory encryption context 2018-03-13 12:04:03 +01:00
sev-stub.c kvm: introduce memory encryption APIs 2018-03-13 12:04:03 +01:00
trace-events kvm: Support KVM_CLEAR_DIRTY_LOG 2019-07-15 15:39:03 +02:00