summaryrefslogtreecommitdiff
path: root/kvm_lapic.c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-06-04 16:18:31 -0700
committerRobert Mustacchi <rm@joyent.com>2011-06-04 16:18:31 -0700
commit5f01bcbe7f8f52141385456e99396485c224eec2 (patch)
tree7dfde065d5a241ee6d9d1f7f57fee768cfb6699f /kvm_lapic.c
parent518253a6f4b959ff830df42cb30e44e0da4836db (diff)
downloadillumos-kvm-5f01bcbe7f8f52141385456e99396485c224eec2.tar.gz
HVM-288 kvm.h and kvm_host.h should be similar to upstream in content (lint)
Diffstat (limited to 'kvm_lapic.c')
-rw-r--r--kvm_lapic.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/kvm_lapic.c b/kvm_lapic.c
index 3f9b3e9..86710ed 100644
--- a/kvm_lapic.c
+++ b/kvm_lapic.c
@@ -45,18 +45,18 @@ extern unsigned long kvm_rip_read(struct kvm_vcpu *);
extern struct kvm_cpuid_entry2 *kvm_find_cpuid_entry(struct kvm_vcpu *vcpu,
uint32_t function, uint32_t index);
-#define APIC_BUS_CYCLE_NS 1
+#define APIC_BUS_CYCLE_NS 1
#define APIC_LDR 0xD0
-#define APIC_LVT_NUM 6
-/* 14 is the version for Xeon and Pentium 8.4.8*/
-#define APIC_VERSION (0x14UL | ((APIC_LVT_NUM - 1) << 16))
-#define LAPIC_MMIO_LENGTH (1 << 12)
+#define APIC_LVT_NUM 6
+/* 14 is the version for Xeon and Pentium 8.4.8 */
+#define APIC_VERSION (0x14UL | ((APIC_LVT_NUM - 1) << 16))
+#define LAPIC_MMIO_LENGTH (1 << 12)
/* followed define is not in apicdef.h */
-#define APIC_SHORT_MASK 0xc0000
-#define APIC_DEST_NOSHORT 0x0
-#define APIC_DEST_MASK 0x800
-#define MAX_APIC_VECTOR 256
+#define APIC_SHORT_MASK 0xc0000
+#define APIC_DEST_NOSHORT 0x0
+#define APIC_DEST_MASK 0x800
+#define MAX_APIC_VECTOR 256
#define LVT_MASK \