>> >> Zhao, Yunfeng wrote: >>> I can compile latest kvm.git as external modules of 2.6.22 kernel >>> successfully. But I cannot insert kvm.ko. >>> It failed with the error: >>> kvm: Unknown symbol genapic >>> >>> >> >> Is this on i386 or x86_64? >> >>
GET_APIC_ID may use genapic instance for some machine configuration in i386 architecture, but it is not exported for outside usage. This patch remove this reference. Signed-off-by: Yaozu(Eddie) Dong <[EMAIL PROTECTED]> diff --git a/drivers/kvm/lapic.c b/drivers/kvm/lapic.c index a894dee..84bc4e3 100644 --- a/drivers/kvm/lapic.c +++ b/drivers/kvm/lapic.c @@ -110,7 +110,7 @@ static inline int apic_enabled(struct kvm_lapic *apic) static inline int kvm_apic_id(struct kvm_lapic *apic) { - return GET_APIC_ID(apic_get_reg(apic, APIC_ID)); + return (apic_get_reg(apic, APIC_ID) >> 24) & 0xf; } static inline int apic_lvt_enabled(struct kvm_lapic *apic, int lvt_type)
genapic.patch
Description: genapic.patch
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel