OSDN Git Service

arm64/sve: KVM: Treat guest SVE use as undefined instruction execution
authorDave Martin <Dave.Martin@arm.com>
Tue, 31 Oct 2017 15:51:17 +0000 (15:51 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 3 Nov 2017 15:24:20 +0000 (15:24 +0000)
commitaac45ffd1f8eff7b919df3deaa06d872b665eb09
tree4d5c01485825e901423b24562d3dcb57b1a68979
parent17eed27b02da88560b4592390952b9a71042ab8b
arm64/sve: KVM: Treat guest SVE use as undefined instruction execution

When trapping forbidden attempts by a guest to use SVE, we want the
guest to see a trap consistent with SVE not being implemented.

This patch injects an undefined instruction exception into the
guest in response to such an exception.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kvm/handle_exit.c