Re: [PATCH v4 03/11] KVM: arm/arm64: vgic-its: Improve error reporting on device table save

2017-10-17 Thread Christoffer Dall
On Tue, Oct 17, 2017 at 09:10:01AM +0200, Eric Auger wrote: > At the moment the device table save() returns -EINVAL if > vgic_its_check_id() fails to return the gpa of the entry > associated to the device/collection id. Let vgic_its_check_id() > return an int instead of a bool and return a more pre

[PATCH v4 03/11] KVM: arm/arm64: vgic-its: Improve error reporting on device table save

2017-10-17 Thread Eric Auger
At the moment the device table save() returns -EINVAL if vgic_its_check_id() fails to return the gpa of the entry associated to the device/collection id. Let vgic_its_check_id() return an int instead of a bool and return a more precised error value: - EINVAL in case the id is out of range - EFAULT