]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Add support for VCPU event states
authorDongjiu Geng <gengdongjiu@huawei.com>
Wed, 24 Oct 2018 06:50:16 +0000 (07:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 24 Oct 2018 06:50:16 +0000 (07:50 +0100)
commit202ccb6bab5fe26bca2c82bff23302f7acfd1940
treee2cbe6029211d7c06a3d7f01acdd7b58d1eb192c
parent61e9e3cb45c378c1e705d67ff66e5936249539c8
target/arm: Add support for VCPU event states

This patch extends the qemu-kvm state sync logic with support for
KVM_GET/SET_VCPU_EVENTS, giving access to yet missing SError exception.
And also it can support the exception state migration.

The SError exception states include SError pending state and ESR value,
the kvm_put/get_vcpu_events() will be called when set or get system
registers. When do migration, if source machine has SError pending,
QEMU will do this migration regardless whether the target machine supports
to specify guest ESR value, because if target machine does not support that,
it can also inject the SError with zero ESR value.

Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1538067351-23931-3-git-send-email-gengdongjiu@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.h
target/arm/kvm.c
target/arm/kvm32.c
target/arm/kvm64.c
target/arm/kvm_arm.h
target/arm/machine.c