Lines Matching full:id
204 static void do_write_apic_id(void *id) in do_write_apic_id() argument
206 apic_write(APIC_ID, *(u32 *)id); in do_write_apic_id()
211 u32 id, newid; in __test_apic_id() local
219 id = apic_id(); in __test_apic_id()
220 report(initial_xapic_id == id, "xapic id matches cpuid"); in __test_apic_id()
222 newid = (id + 1) << 24; in __test_apic_id()
224 (id == apic_id() || id + 1 == apic_id()), in __test_apic_id()
225 "writeable xapic id"); in __test_apic_id()
231 "non-writeable x2apic id"); in __test_apic_id()
232 report(initial_xapic_id == (apic_id() & 0xff), "sane x2apic id"); in __test_apic_id()
234 /* old QEMUs do not set initial x2APIC ID */ in __test_apic_id()
237 "x2apic id matches cpuid"); in __test_apic_id()
242 report(initial_xapic_id == apic_id(), "correct xapic id after reset"); in __test_apic_id()
244 /* old KVMs do not reset xAPIC ID */ in __test_apic_id()
245 if (id != apic_id()) in __test_apic_id()
246 apic_write(APIC_ID, id << 24); in __test_apic_id()
866 * Handle the IPI after updating the APIC ID, as the IPI count acts as in handle_aliased_ipi()
901 * reaction of IPIs from APIC ID 0..255. Each vCPU will increment its in test_aliased_xapic_physical_ipi()
902 * APIC ID in the handler, and then "reset" to its original ID (using in test_aliased_xapic_physical_ipi()
903 * smp_id()) after the last IPI. Using on_cpu() to set vCPU1's ID in test_aliased_xapic_physical_ipi()
946 * KVM may disable APICv if the APIC ID and/or APIC_BASE is in main()