[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v11 3/5] arm_kvm: Do not assume particular GIC type
From: |
Pavel Fedin |
Subject: |
[Qemu-devel] [PATCH v11 3/5] arm_kvm: Do not assume particular GIC type in kvm_arch_irqchip_create() |
Date: |
Wed, 19 Aug 2015 10:23:24 +0300 |
This allows to use different GIC types from v2. There are no kernels which
could advertise KVM_CAP_DEVICE_CTRL without the actual ability to create
GIC with it.
Signed-off-by: Pavel Fedin <address@hidden>
Reviewed-by: Eric Auger <address@hidden>
---
target-arm/kvm.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/target-arm/kvm.c b/target-arm/kvm.c
index b278542..22383c5 100644
--- a/target-arm/kvm.c
+++ b/target-arm/kvm.c
@@ -585,18 +585,10 @@ void kvm_arch_init_irq_routing(KVMState *s)
int kvm_arch_irqchip_create(KVMState *s)
{
- int ret;
-
/* If we can create the VGIC using the newer device control API, we
* let the device do this when it initializes itself, otherwise we
* fall back to the old API */
-
- ret = kvm_create_device(s, KVM_DEV_TYPE_ARM_VGIC_V2, true);
- if (ret == 0) {
- return 1;
- }
-
- return 0;
+ return kvm_check_extension(s, KVM_CAP_DEVICE_CTRL);
}
int kvm_arch_fixup_msi_route(struct kvm_irq_routing_entry *route,
--
1.9.5.msysgit.0
- [Qemu-devel] [PATCH v11 0/5] vGICv3 support, Pavel Fedin, 2015/08/19
- [Qemu-devel] [PATCH v11 3/5] arm_kvm: Do not assume particular GIC type in kvm_arch_irqchip_create(),
Pavel Fedin <=
- [Qemu-devel] [PATCH v11 1/5] hw/intc: Implement GIC-500 base class, Pavel Fedin, 2015/08/19
- [Qemu-devel] [PATCH v11 2/5] intc/gic: Extract some reusable vGIC code, Pavel Fedin, 2015/08/19
- [Qemu-devel] [PATCH v11 5/5] hw/arm/virt: Add gic-version option to virt machine, Pavel Fedin, 2015/08/19
- [Qemu-devel] [PATCH v11 4/5] hw/intc: Initial implementation of vGICv3, Pavel Fedin, 2015/08/19
- Re: [Qemu-devel] [PATCH v11 0/5] vGICv3 support, Ashok Kumar, 2015/08/25