]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: vgic: Fix error code in kvm_vgic_create()
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 6 Nov 2014 11:47:39 +0000 (11:47 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Nov 2014 13:40:44 +0000 (14:40 +0100)
commitff7d320b4743695e6768b06816fc9f67d68085fc
tree8fd347d96d760a81c9e866b999a534ac89627a0d
parent4318ddaf6e8eee8fc7f9b7089fea3781a3273a15
arm/arm64: KVM: vgic: Fix error code in kvm_vgic_create()

If we detect another vCPU is running we just exit and return 0 as if we
succesfully created the VGIC, but the VGIC wouldn't actual be created.

This shouldn't break in-kernel behavior because the kernel will not
observe the failed the attempt to create the VGIC, but userspace could
be rightfully confused.

Cc: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/arm/vgic.c