Advertisement
Guest User

debug

a guest
Jul 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. + printk("ipi_bitmap before = %llx, min = %d, max = %d\n", ipi_bitmap, min, max);
  2. + for_each_cpu(cpu, mask) {
  3. + apic_id = per_cpu(x86_cpu_to_apicid, cpu);
  4. + printk("apic id = %d\n", apic_id);
  5. + if (!ipi_bitmap) {
  6. + min = max = apic_id;
  7. + printk("!ipibitmap\n");
  8. + } else if (apic_id < min && max - apic_id < cluster_size) {
  9. + ipi_bitmap <<= min - apic_id;
  10. + min = apic_id;
  11. + printk("apic_id < min\n");
  12. + } else if (apic_id < min + cluster_size) {
  13. + max = apic_id < max ? max : apic_id;
  14. + printk("apic id < min + cluster");
  15. + } else {
  16. + ret = kvm_hypercall3(KVM_HC_SEND_IPI, (unsigned long)&ipi_bitmap, min, icr);
  17. + min = max = apic_id;
  18. + ipi_bitmap = 0;
  19. + printk("hmm\n");
  20. + }
  21. + __set_bit(apic_id - min, (unsigned long *)&ipi_bitmap);
  22. + printk("set = %d, ipi_bitmap = %llx\n", apic_id - min, ipi_bitmap);
  23. +
  24. + }
  25. + printk("ipi_bitmap after = %llx, min = %d, max = %d\n", ipi_bitmap, min, max);
  26. +
  27. + if (ipi_bitmap) {
  28. + ret = kvm_hypercall3(KVM_HC_SEND_IPI, (unsigned long)&ipi_bitmap, min, icr);
  29. + }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement