diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-05-08 18:15:40 +0100 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-05-09 12:19:37 +0200 |
commit | 6cc40f273b30ef8f7b37f95cd2e6456d652808c0 (patch) | |
tree | f50456c63801eed030446abcebcbe302743b4975 /virt/kvm/arm/vgic | |
parent | 1aab6f468c10a1ec3977fb6f7bc12869174d516e (diff) | |
download | linux-stable-6cc40f273b30ef8f7b37f95cd2e6456d652808c0.tar.gz linux-stable-6cc40f273b30ef8f7b37f95cd2e6456d652808c0.tar.bz2 linux-stable-6cc40f273b30ef8f7b37f95cd2e6456d652808c0.zip |
KVM: arm/arm64: Get rid of its->initialized field
The its->initialized doesn't bring much to the table, and creates
unnecessary ordering between setting the address and initializing it
(which amounts to exactly nothing).
Let's kill it altogether, making KVM_DEV_ARM_VGIC_CTRL_INIT the no-op
it deserves to be.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Diffstat (limited to 'virt/kvm/arm/vgic')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-its.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c index 9f7105c61ece..18318c67ed93 100644 --- a/virt/kvm/arm/vgic/vgic-its.c +++ b/virt/kvm/arm/vgic/vgic-its.c @@ -1545,9 +1545,6 @@ static int vgic_register_its_iodev(struct kvm *kvm, struct vgic_its *its) struct vgic_io_device *iodev = &its->iodev; int ret; - if (!its->initialized) - return -EBUSY; - if (IS_VGIC_ADDR_UNDEF(its->vgic_its_base)) return -ENXIO; @@ -1597,7 +1594,6 @@ static int vgic_its_create(struct kvm_device *dev, u32 type) INIT_LIST_HEAD(&its->collection_list); dev->kvm->arch.vgic.has_its = true; - its->initialized = false; its->enabled = false; its->dev = dev; @@ -2397,8 +2393,7 @@ static int vgic_its_set_attr(struct kvm_device *dev, switch (attr->attr) { case KVM_DEV_ARM_VGIC_CTRL_INIT: - its->initialized = true; - + /* Nothing to do */ return 0; case KVM_DEV_ARM_ITS_SAVE_TABLES: return abi->save_tables(its); |