diff options
author | Avi Kivity <avi@qumranet.com> | 2008-02-24 04:20:43 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 04:53:26 -0400 |
commit | 2d3ad1f40c841bd3e97d30d423eea53915d085dc (patch) | |
tree | 39f4a5a7814cc306d002366e1af922d32b7713c5 /include/asm-x86/kvm_host.h | |
parent | 05da45583de9b383dc81dd695fe248431d6c9f2b (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.h | 12 |
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, | |||
470 | int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr, | 470 | int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr, |
471 | unsigned long value); | 471 | unsigned long value); |
472 | 472 | ||
473 | void set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0); | 473 | void kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0); |
474 | void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0); | 474 | void kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0); |
475 | void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0); | 475 | void kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0); |
476 | void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); | 476 | void kvm_set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); |
477 | unsigned long get_cr8(struct kvm_vcpu *vcpu); | 477 | unsigned long kvm_get_cr8(struct kvm_vcpu *vcpu); |
478 | void lmsw(struct kvm_vcpu *vcpu, unsigned long msw); | 478 | void kvm_lmsw(struct kvm_vcpu *vcpu, unsigned long msw); |
479 | void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l); | 479 | void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l); |
480 | 480 | ||
481 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); | 481 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); |