From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sterling Windmill Subject: Re: installing kvm-76 on 2.6.24 Date: Mon, 29 Sep 2008 11:18:36 -0400 (EDT) Message-ID: <954964851.611222701516113.JavaMail.root@mail.ampx.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm To: Sheng Yang Return-path: Received: from mail.ampx.net ([208.64.38.105]:59539 "EHLO mail.ampx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbYI2PSh (ORCPT ); Mon, 29 Sep 2008 11:18:37 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: It seems as though I need to insert vtd.o instead of vtd.c My Kbuild file now looks like this: # trick to get the kvm-specific CONFIG_KVM_* definitions, # because the kernel source tree won't have them include $(obj)/../config.kbuild obj-m := kvm.o kvm-intel.o kvm-amd.o kvm-objs := vtd.o kvm_main.o x86.o mmu.o x86_emulate.o ../anon_inodes.o irq.o i8 259.o \ lapic.o ioapic.o preempt.o i8254.o coalesced_mmio.o \ ../external-module-compat.o ifeq ($(EXT_CONFIG_KVM_TRACE),y) kvm-objs += kvm_trace.o endif kvm-intel-objs := vmx.o vmx-debug.o ../external-module-compat.o kvm-amd-objs := svm.o ../external-module-compat.o CFLAGS_kvm_main.o = -DKVM_MAIN The modules do compile with this option specified. Unfortunately, the error inserting the modules still persists. Any other ideas? ----- Original Message ----- From: "Sheng Yang" To: "Sterling Windmill" Cc: "kvm" Sent: Monday, September 29, 2008 10:51:53 AM GMT -05:00 US/Canada Eastern Subject: Re: installing kvm-76 on 2.6.24 On Mon, Sep 29, 2008 at 10:42 PM, Sterling Windmill wrote: > Thank you for the information. I apologize for posting twice to the mailing list on the same issue. I was just trying to add some additional information. > > Could you tell me how to edit the Kbuild file for this purpose? I can also recompile my kernel, but that's a bit more difficult. Add vtd.c to kvm-userspace/kernel/x86/Kbuild kvm-objs item should get it done. -- regards, Yang, Sheng > > Thanks in advance, > Sterling Windmill > > ----- Original Message ----- > From: "Sheng Yang" > To: "Sterling Windmill" > Cc: "kvm" > Sent: Monday, September 29, 2008 10:21:10 AM GMT -05:00 US/Canada Eastern > Subject: Re: installing kvm-76 on 2.6.24 > > On Mon, Sep 29, 2008 at 1:09 PM, Sterling Windmill wrote: >> I am running a custom compiled 2.6.24 kernel on a 64-bit Intel system and had no issues compling and running kvm-75. >> >> I downloaded kvm-76 and compiled and installed it, but I cannot get the modules to load properly. >> >> I have temporarily gone back to kvm-75. >> >> I am seeing this output in dmesg: >> >> kvm: Unknown symbol kvm_iommu_map_pages >> kvm: Unknown symbol kvm_iommu_map_guest >> kvm: Unknown symbol kvm_iommu_unmap_guest > > Seems you enabled CONFIG_DMAR in host kernel side? In theory, we > should use CONFIG_DMAR with newly VT-d support in KVM, but the problem > now is that userspace including compile option is not ready, so here > comes compile problem. > > If you want to try kvm-76, you may try to disable CONFIG_DMAR in host > kernel. Or just wait to userspace VT-d support merge (of course you > can add vtd.c manually in Kbuild to overcome this compile issue). :) > > -- > regards, > Yang, Sheng >