diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-17 22:35:07 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-18 19:15:18 +0200 |
commit | bb7176449f6da27534a0faf3a67997bf2c3172aa (patch) | |
tree | 87b81477ee655dafff97e8622cf5e9c06a75e7e2 /virt | |
parent | KVM: arm64: vgic-its: Add collection allocator/destructor (diff) | |
download | linux-bb7176449f6da27534a0faf3a67997bf2c3172aa.tar.xz linux-bb7176449f6da27534a0faf3a67997bf2c3172aa.zip |
KVM: arm64: vgic-its: Add pointer to corresponding kvm_device
Going from the ITS structure to the corresponding KVM structure
would be quite handy at times. The kvm_device pointer that is
passed at create time is quite convenient for this, so let's
keep a copy of it in the vgic_its structure.
This will be put to a good use in subsequent patches.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-its.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c index d6f68e9c946d..dcae567c522d 100644 --- a/virt/kvm/arm/vgic/vgic-its.c +++ b/virt/kvm/arm/vgic/vgic-its.c @@ -1368,6 +1368,7 @@ static int vgic_its_create(struct kvm_device *dev, u32 type) dev->kvm->arch.vgic.has_its = true; its->initialized = false; its->enabled = false; + its->dev = dev; its->baser_device_table = INITIAL_BASER_VALUE | ((u64)GITS_BASER_TYPE_DEVICE << GITS_BASER_TYPE_SHIFT); |