tree: git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: f38ddd2ff03e4ee11af36c9c8be373fc94b1cbcc
commit: 0fd71ef57c16e38cfed49d8d65b2f9c9b4881fb8 [25/26] KVM: x86: Add EOI exit
bitmap inference
reproduce:
# apt-get install sparse
git checkout 0fd71ef57c16e38cfed49d8d65b2f9c9b4881fb8
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> arch/x86/kvm/irq_comm.c:358:15: sparse: incorrect type in assignment
>> (different address spaces)
arch/x86/kvm/irq_comm.c:358:15: expected struct kvm_irq_routing_table
*table
arch/x86/kvm/irq_comm.c:358:15: got struct kvm_irq_routing_table
[noderef] <asn:4>*irq_routing
vim +358 arch/x86/kvm/irq_comm.c
342 return;
343 kvm_make_scan_ioapic_request(kvm);
344 }
345
346 void kvm_scan_ioapic_routes(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap)
347 {
348 struct kvm *kvm = vcpu->kvm;
349 struct kvm_kernel_irq_routing_entry *entry;
350 struct kvm_irq_routing_table *table;
351 u32 i, nr_ioapic_pins;
352 int idx;
353
354 /* kvm->irq_routing must be read after clearing
355 * KVM_SCAN_IOAPIC. */
356 smp_mb();
357 idx = srcu_read_lock(&kvm->irq_srcu);
> 358 table = kvm->irq_routing;
359 nr_ioapic_pins = min_t(u32, table->nr_rt_entries,
360 kvm->arch.nr_reserved_ioapic_pins);
361 for (i = 0; i < nr_ioapic_pins; ++i) {
362 hlist_for_each_entry(entry, &table->map[i], link) {
363 u32 dest_id, dest_mode;
364
365 if (entry->type != KVM_IRQ_ROUTING_MSI)
366 continue;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html