aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorEddie Dong <eddie.dong@intel.com>2007-07-18 04:34:57 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:25 -0400
commit7017fc3d1a12e30ea7df4992152978a188433457 (patch)
treeebbe0e5852ddd58bddfed389412c86c7692d2724 /drivers/kvm/kvm.h
parent85f455f7ddbed403b34b4d54b1eaf0e14126a126 (diff)
KVM: Define and use cr8 access functions
This patch is to wrap APIC base register and CR8 operation which can provide a unique API for user level irqchip and kernel irqchip. This is a preparation of merging lapic/ioapic patch. Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index d71712ddebee..e0a2f13faf8b 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -568,6 +568,9 @@ void set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0);
568void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0); 568void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0);
569void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0); 569void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0);
570void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); 570void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0);
571unsigned long get_cr8(struct kvm_vcpu *vcpu);
572u64 kvm_get_apic_base(struct kvm_vcpu *vcpu);
573void kvm_set_apic_base(struct kvm_vcpu *vcpu, u64 data);
571void lmsw(struct kvm_vcpu *vcpu, unsigned long msw); 574void lmsw(struct kvm_vcpu *vcpu, unsigned long msw);
572 575
573int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); 576int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata);