Re: [Qemu-devel] [PATCH] target-arm: Check error conditions on kvm_arm_reset_vcpu

2014-12-04 Thread Christoffer Dall
On Thu, Dec 4, 2014 at 8:13 PM, Peter Maydell wrote: > On 3 December 2014 at 20:17, Christoffer Dall > wrote: >> When resetting a VCPU we currently call both kvm_arm_vcpu_init() and >> write_kvmstate_to_list(), both of which can fail, but we never check the >> return value. >> >> The only choice

Re: [Qemu-devel] [PATCH] target-arm: Check error conditions on kvm_arm_reset_vcpu

2014-12-04 Thread Peter Maydell
On 3 December 2014 at 20:17, Christoffer Dall wrote: > When resetting a VCPU we currently call both kvm_arm_vcpu_init() and > write_kvmstate_to_list(), both of which can fail, but we never check the > return value. > > The only choice here is to print an error an exit if the calls fail. I like th

[Qemu-devel] [PATCH] target-arm: Check error conditions on kvm_arm_reset_vcpu

2014-12-03 Thread Christoffer Dall
When resetting a VCPU we currently call both kvm_arm_vcpu_init() and write_kvmstate_to_list(), both of which can fail, but we never check the return value. The only choice here is to print an error an exit if the calls fail. Signed-off-by: Christoffer Dall --- target-arm/kvm32.c | 13 ++