diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2014-12-09 08:28:09 -0500 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-12-13 08:17:05 -0500 |
commit | c52edf5f8caff878afc93c1b1e9a3d9490a9932f (patch) | |
tree | 839b74bd118672950321f2d8cd8e6c7d90dbb80e /arch/arm | |
parent | 6d3cfbe21bef5b66530b50ad16c88fdc71a04c35 (diff) |
arm/arm64: KVM: Rename vgic_initialized to vgic_ready
The vgic_initialized() macro currently returns the state of the
vgic->ready flag, which indicates if the vgic is ready to be used when
running a VM, not specifically if its internal state has been
initialized.
Rename the macro accordingly in preparation for a more nuanced
initialization flow.
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kvm/arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index fa4b97c5746c..c5a05f2c28ac 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c | |||
@@ -431,7 +431,7 @@ static int kvm_vcpu_first_run_init(struct kvm_vcpu *vcpu) | |||
431 | * Map the VGIC hardware resources before running a vcpu the first | 431 | * Map the VGIC hardware resources before running a vcpu the first |
432 | * time on this VM. | 432 | * time on this VM. |
433 | */ | 433 | */ |
434 | if (unlikely(!vgic_initialized(vcpu->kvm))) { | 434 | if (unlikely(!vgic_ready(vcpu->kvm))) { |
435 | ret = kvm_vgic_map_resources(vcpu->kvm); | 435 | ret = kvm_vgic_map_resources(vcpu->kvm); |
436 | if (ret) | 436 | if (ret) |
437 | return ret; | 437 | return ret; |