diff options
author | Eddie Dong <eddie.dong@intel.com> | 2007-07-18 04:34:57 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:25 -0400 |
commit | 7017fc3d1a12e30ea7df4992152978a188433457 (patch) | |
tree | ebbe0e5852ddd58bddfed389412c86c7692d2724 /drivers/kvm/kvm.h | |
parent | 85f455f7ddbed403b34b4d54b1eaf0e14126a126 (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.h | 3 |
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); | |||
568 | void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0); | 568 | void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr0); |
569 | void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0); | 569 | void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0); |
570 | void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); | 570 | void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); |
571 | unsigned long get_cr8(struct kvm_vcpu *vcpu); | ||
572 | u64 kvm_get_apic_base(struct kvm_vcpu *vcpu); | ||
573 | void kvm_set_apic_base(struct kvm_vcpu *vcpu, u64 data); | ||
571 | void lmsw(struct kvm_vcpu *vcpu, unsigned long msw); | 574 | void lmsw(struct kvm_vcpu *vcpu, unsigned long msw); |
572 | 575 | ||
573 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); | 576 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); |