Re: [PATCH 1/2] arm/kvm: survive unknown traps from guests

2017-03-06 Thread Marc Zyngier
On Mon, Mar 06 2017 at 5:33:30 pm GMT, Mark Rutland wrote: > On Mon, Mar 06, 2017 at 07:08:03AM -0800, Christoffer Dall wrote: >> On Mon, Feb 20, 2017 at 12:30:11PM +, Mark Rutland wrote: >> > static exit_handle_fn arm_exit_handlers[] = { >> > + [0 ... HSR_EC_MAX]

Re: [PATCH 1/2] arm/kvm: survive unknown traps from guests

2017-03-06 Thread Mark Rutland
On Mon, Mar 06, 2017 at 07:08:03AM -0800, Christoffer Dall wrote: > On Mon, Feb 20, 2017 at 12:30:11PM +, Mark Rutland wrote: > > static exit_handle_fn arm_exit_handlers[] = { > > + [0 ... HSR_EC_MAX] = kvm_handle_unknown_ec, > > Cool stuff, didn't know you could do this in C.

Re: [PATCH 1/2] arm/kvm: survive unknown traps from guests

2017-03-06 Thread Christoffer Dall
On Mon, Feb 20, 2017 at 12:30:11PM +, Mark Rutland wrote: > Currently we BUG() if we see a HSR.EC value we don't recognise. As > configurable disables/enables are added to the architecture (controlled > by RES1/RES0 bits respectively), with associated synchronous exceptions, > it may be