From 170b5842225176d3fa981e7d8628c1dda4a4f504 Mon Sep 17 00:00:00 2001 From: Robin Luk Date: Tue, 17 Nov 2020 14:53:50 +0800 Subject: arm64 kvm: add the processing functions for all el0/el1 exceptions I added 2 unified processing functions for all exceptions of el/el0 Signed-off-by: Robin Luk --- pkg/sentry/platform/kvm/machine_arm64_unsafe.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'pkg/sentry/platform/kvm') diff --git a/pkg/sentry/platform/kvm/machine_arm64_unsafe.go b/pkg/sentry/platform/kvm/machine_arm64_unsafe.go index fd92c3873..3f5be276b 100644 --- a/pkg/sentry/platform/kvm/machine_arm64_unsafe.go +++ b/pkg/sentry/platform/kvm/machine_arm64_unsafe.go @@ -263,13 +263,6 @@ func (c *vCPU) SwitchToUser(switchOpts ring0.SwitchOpts, info *arch.SignalInfo) return usermem.NoAccess, platform.ErrContextInterrupt case ring0.El0SyncUndef: return c.fault(int32(syscall.SIGILL), info) - case ring0.El1SyncUndef: - *info = arch.SignalInfo{ - Signo: int32(syscall.SIGILL), - Code: 1, // ILL_ILLOPC (illegal opcode). - } - info.SetAddr(switchOpts.Registers.Pc) // Include address. - return usermem.AccessType{}, platform.ErrContextSignal default: panic(fmt.Sprintf("unexpected vector: 0x%x", vector)) } -- cgit v1.2.3