aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/kvm_host.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-02-24 04:20:43 -0500
committerAvi Kivity <avi@qumranet.com>2008-04-27 04:53:26 -0400
commit2d3ad1f40c841bd3e97d30d423eea53915d085dc (patch)
tree39f4a5a7814cc306d002366e1af922d32b7713c5 /include/asm-x86/kvm_host.h
parent05da45583de9b383dc81dd695fe248431d6c9f2b (diff)
KVM: Prefix control register accessors with kvm_ to avoid namespace pollution
Names like 'set_cr3()' look dangerously close to affecting the host. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/asm-x86/kvm_host.h')
-rw-r--r--include/asm-x86/kvm_host.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h
index 95473ef5a906..49ced21e0290 100644
--- a/include/asm-x86/kvm_host.h
+++ b/include/asm-x86/kvm_host.h
@@ -470,12 +470,12 @@ int emulator_get_dr(struct x86_emulate_ctxt *ctxt, int dr,
470int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr, 470int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr,
471 unsigned long value); 471 unsigned long value);
472 472
473void set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0); 473void kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0);
474void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0); 474void kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0);
475void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0); 475void kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0);
476void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); 476void kvm_set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0);
477unsigned long get_cr8(struct kvm_vcpu *vcpu); 477unsigned long kvm_get_cr8(struct kvm_vcpu *vcpu);
478void lmsw(struct kvm_vcpu *vcpu, unsigned long msw); 478void kvm_lmsw(struct kvm_vcpu *vcpu, unsigned long msw);
479void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l); 479void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l);
480 480
481int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); 481int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata);