]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: export kvm_lapic_set_tpr() to modules
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 16 Apr 2008 14:51:16 +0000 (16:51 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 15:21:41 +0000 (18:21 +0300)
This patch exports the kvm_lapic_set_tpr() function from the lapic code to
modules. It is required in the kvm-amd module to optimize CR8 intercepts.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/lapic.c

index 2ccf994dfc1600e5655ae918bc622a63a78505a9..57ac4e4c556a5a3ca5bc79a8acbd1e35f3f33d9d 100644 (file)
@@ -822,6 +822,7 @@ void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8)
        apic_set_tpr(apic, ((cr8 & 0x0f) << 4)
                     | (apic_get_reg(apic, APIC_TASKPRI) & 4));
 }
+EXPORT_SYMBOL_GPL(kvm_lapic_set_tpr);
 
 u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu)
 {