diff options
author | Dongjiu Geng <gengdongjiu@huawei.com> | 2018-07-19 16:24:22 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-07-21 16:02:30 +0100 |
commit | b7b27facc7b50a5fce0afaa3df56157136ce181a (patch) | |
tree | 16536d93e55ccbdc8561c78ffab9d69966859c61 /arch/arm64/kvm/reset.c | |
parent | 327432c2469e0069679009886556d15eeddeb0cc (diff) | |
download | linux-b7b27facc7b50a5fce0afaa3df56157136ce181a.tar.gz linux-b7b27facc7b50a5fce0afaa3df56157136ce181a.tar.bz2 linux-b7b27facc7b50a5fce0afaa3df56157136ce181a.zip |
arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS
For the migrating VMs, user space may need to know the exception
state. For example, in the machine A, KVM make an SError pending,
when migrate to B, KVM also needs to pend an SError.
This new IOCTL exports user-invisible states related to SError.
Together with appropriate user space changes, user space can get/set
the SError exception state to do migrate/snapshot/suspend.
Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Reviewed-by: James Morse <james.morse@arm.com>
[expanded documentation wording]
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/kvm/reset.c')
-rw-r--r-- | arch/arm64/kvm/reset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kvm/reset.c b/arch/arm64/kvm/reset.c index a74311beda35..a3db01a28062 100644 --- a/arch/arm64/kvm/reset.c +++ b/arch/arm64/kvm/reset.c @@ -79,6 +79,7 @@ int kvm_arch_dev_ioctl_check_extension(struct kvm *kvm, long ext) break; case KVM_CAP_SET_GUEST_DEBUG: case KVM_CAP_VCPU_ATTRIBUTES: + case KVM_CAP_VCPU_EVENTS: r = 1; break; default: |