summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-06-27 13:41:00 -0700
committerRobert Mustacchi <rm@joyent.com>2011-06-27 13:41:00 -0700
commit12da86e0b4d22ba4a6ce96c7846bbd57589f52f2 (patch)
treed17c24df548ff231d757ec2a9fa03669c9775f89
parent6ece5a449f51b748e027ff7ccfede575a3d2fd8d (diff)
downloadillumos-kvm-12da86e0b4d22ba4a6ce96c7846bbd57589f52f2.tar.gz
HVM-422 kvm_cache_regs.h should be cstyle clean
-rw-r--r--Makefile1
-rw-r--r--kvm_cache_regs.h22
2 files changed, 12 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index f323925..26a91bb 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ all: kvm kvm.so
HEADERS= \
kvm.h \
kvm_bitops.h \
+ kvm_cache_regs.h \
kvm_x86.h
kvm: kvm.c kvm_x86.c kvm_emulate.c kvm.h kvm_x86host.h msr.h kvm_bitops.h kvm_irq.c kvm_i8254.c kvm_lapic.c kvm_mmu.c kvm_iodev.c kvm_ioapic.c kvm_vmx.c kvm_i8259.c kvm_coalesced_mmio.c kvm_irq_comm.c kvm_cache_regs.c kvm_bitops.c
diff --git a/kvm_cache_regs.h b/kvm_cache_regs.h
index b375e9a..9f39053 100644
--- a/kvm_cache_regs.h
+++ b/kvm_cache_regs.h
@@ -1,24 +1,24 @@
#ifndef ASM_KVM_CACHE_REGS_H
-#define ASM_KVM_CACHE_REGS_H
+#define ASM_KVM_CACHE_REGS_H
#include <sys/types.h>
#include "kvm_host.h"
#include "processor-flags.h"
-#define KVM_POSSIBLE_CR0_GUEST_BITS X86_CR0_TS
-#define KVM_POSSIBLE_CR4_GUEST_BITS \
+#define KVM_POSSIBLE_CR0_GUEST_BITS X86_CR0_TS
+#define KVM_POSSIBLE_CR4_GUEST_BITS \
(X86_CR4_PVI | X86_CR4_DE | X86_CR4_PCE | X86_CR4_OSFXSR \
- | X86_CR4_OSXMMEXCPT | X86_CR4_PGE)
+ | X86_CR4_OSXMMEXCPT | X86_CR4_PGE)
extern unsigned long kvm_register_read(struct kvm_vcpu *, enum kvm_reg);
extern void kvm_register_write(struct kvm_vcpu *, enum kvm_reg, unsigned long);
-extern unsigned long kvm_rip_read(struct kvm_vcpu *vcpu);
-extern void kvm_rip_write(struct kvm_vcpu *vcpu, unsigned long val);
-extern uint64_t kvm_pdptr_read(struct kvm_vcpu *vcpu, int index);
-extern ulong kvm_read_cr0_bits(struct kvm_vcpu *vcpu, ulong mask);
-extern ulong kvm_read_cr0(struct kvm_vcpu *vcpu);
-extern ulong kvm_read_cr4_bits(struct kvm_vcpu *vcpu, ulong mask);
-extern ulong kvm_read_cr4(struct kvm_vcpu *vcpu);
+extern unsigned long kvm_rip_read(struct kvm_vcpu *);
+extern void kvm_rip_write(struct kvm_vcpu *, unsigned long);
+extern uint64_t kvm_pdptr_read(struct kvm_vcpu *, int);
+extern ulong kvm_read_cr0_bits(struct kvm_vcpu *, ulong);
+extern ulong kvm_read_cr0(struct kvm_vcpu *);
+extern ulong kvm_read_cr4_bits(struct kvm_vcpu *, ulong);
+extern ulong kvm_read_cr4(struct kvm_vcpu *);
#endif