From: Sterling Windmill <sterling@ampx.net>
To: Sheng Yang <yasker@gmail.com>
Cc: kvm <kvm@vger.kernel.org>
Subject: Re: installing kvm-76 on 2.6.24
Date: Tue, 30 Sep 2008 20:29:34 -0400 (EDT) [thread overview]
Message-ID: <113235058.831222820974165.JavaMail.root@mail.ampx.net> (raw)
In-Reply-To: <e19ef1be0809290829x54d7bc76xce5ff0dbc04b3f56@mail.gmail.com>
I am able to run kvm-76 after recompiling my kernel with DMAR unset.
Thanks for the help!
----- Original Message -----
From: "Sheng Yang" <yasker@gmail.com>
To: "Sterling Windmill" <sterling@ampx.net>
Cc: "kvm" <kvm@vger.kernel.org>
Sent: Monday, September 29, 2008 11:29:56 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24
On Mon, Sep 29, 2008 at 11:18 PM, Sterling Windmill <sterling@ampx.net> wrote:
> It seems as though I need to insert vtd.o instead of vtd.c
Yeah... That's vtd.o :)
And I forgot, if you want to compile vtd.c, you need compile kvm
kernel space rather than other kernel version for we modified host
kernel side.
Sorry for I don't have a box by hand so that I can't check every detail...
I suppose you want to keep your kernel? Maybe disable CONFIG_DMAR is
more easy...
--
regards,
Yang, Sheng
>
> 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" <yasker@gmail.com>
> To: "Sterling Windmill" <sterling@ampx.net>
> Cc: "kvm" <kvm@vger.kernel.org>
> 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 <sterling@ampx.net> 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" <yasker@gmail.com>
>> To: "Sterling Windmill" <sterling@ampx.net>
>> Cc: "kvm" <kvm@vger.kernel.org>
>> 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 <sterling@ampx.net> 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
>>
>
prev parent reply other threads:[~2008-10-01 0:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 5:09 installing kvm-76 on 2.6.24 Sterling Windmill
2008-09-29 14:21 ` Sheng Yang
2008-09-29 14:42 ` Sterling Windmill
2008-09-29 14:51 ` Sheng Yang
2008-09-29 15:18 ` Sterling Windmill
2008-09-29 15:29 ` Sheng Yang
2008-09-29 16:37 ` Amit Shah
2008-09-30 1:55 ` Sheng Yang
2008-10-01 0:29 ` Sterling Windmill [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=113235058.831222820974165.JavaMail.root@mail.ampx.net \
--to=sterling@ampx.net \
--cc=kvm@vger.kernel.org \
--cc=yasker@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).