xref: /kvmtool/include/kvm/apic.h (revision 503483d203200f2c3d447d8c4eed769b734dd40b)
1 #ifndef KVM_APIC_H_
2 #define KVM_APIC_H_
3 
4 #include <asm/apicdef.h>
5 
6 /*
7  * APIC, IOAPIC stuff
8  */
9 #define APIC_BASE_ADDR_STEP	0x00400000
10 #define IOAPIC_BASE_ADDR_STEP	0x00100000
11 
12 #define APIC_ADDR(apic)		(APIC_DEFAULT_PHYS_BASE + apic * APIC_BASE_ADDR_STEP)
13 #define IOAPIC_ADDR(ioapic)	(IO_APIC_DEFAULT_PHYS_BASE + ioapic * IOAPIC_BASE_ADDR_STEP)
14 
15 #define KVM_APIC_VERSION	0x14 /* xAPIC */
16 
17 #endif /* KVM_APIC_H_ */
18