Skip to contentSkip to conversation

installing kvm-76 on 2.6.24

DISCUSSION Sterling Windmill 3 participants 9 messages Sep 29, 2008 – Oct 1, 2008 KVM

lore
Share & tools
lore
#0 lore raw

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
kvm_intel: Unknown symbol kvm_clear_guest_page
kvm_intel: Unknown symbol kvm_exit
kvm_intel: Unknown symbol kvm_init
kvm_intel: Unknown symbol kvm_enable_efer_bits
kvm_intel: Unknown symbol kvm_timer_intr_post
kvm_intel: Unknown symbol kvm_mmu_set_nonpresent_ptes
kvm_intel: Unknown symbol gfn_to_page
kvm_intel: Unknown symbol segment_base
kvm_intel: Unknown symbol kvm_get_msr_common
kvm_intel: Unknown symbol __kvm_set_memory_region
kvm_intel: Unknown symbol kvm_vcpu_uninit
kvm_intel: Unknown symbol kvm_emulate_halt
kvm_intel: Unknown symbol kvm_set_apic_base
kvm_intel: Unknown symbol kvm_report_emulation_failure
kvm_intel: Unknown symbol kvm_lapic_find_highest_irr
kvm_intel: Unknown symbol kvm_task_switch
kvm_intel: Unknown symbol kvm_enable_tdp
kvm_intel: Unknown symbol kvm_disable_tdp
kvm_intel: Unknown symbol kvm_lmsw
kvm_intel: Unknown symbol kvm_set_memory_region
kvm_intel: Unknown symbol kvm_queue_exception
kvm_intel: Unknown symbol emulate_instruction
kvm_intel: Unknown symbol kvm_write_guest_page
kvm_intel: Unknown symbol fx_init
kvm_intel: Unknown symbol kvm_cpu_has_interrupt
kvm_intel: Unknown symbol kvm_lapic_get_cr8
kvm_intel: Unknown symbol kvm_set_cr3
kvm_intel: Unknown symbol kvm_get_cr8
kvm_intel: Unknown symbol kvm_x86_ops
kvm_intel: Unknown symbol kvm_vcpu_cache
kvm_intel: Unknown symbol kvm_emulate_hypercall
kvm_intel: Unknown symbol load_pdptrs
kvm_intel: Unknown symbol kvm_handle_fault_on_reboot
kvm_intel: Unknown symbol kvm_mmu_unprotect_page_virt
kvm_intel: Unknown symbol kvm_set_cr4
kvm_intel: Unknown symbol kvm_set_cr0
kvm_intel: Unknown symbol kvm_set_cr8
kvm_intel: Unknown symbol kvm_lapic_enabled
kvm_intel: Unknown symbol kvm_mmu_page_fault
kvm_intel: Unknown symbol kvm_mmu_reset_context
kvm_intel: Unknown symbol kvm_queue_exception_e
kvm_intel: Unknown symbol kvm_emulate_cpuid
kvm_intel: Unknown symbol kvm_vcpu_init
kvm_intel: Unknown symbol gfn_to_hva
kvm_intel: Unknown symbol kvm_mmu_invlpg
kvm_intel: Unknown symbol kvm_set_msr_common
kvm_intel: Unknown symbol kvm_mmu_set_base_ptes
kvm_intel: Unknown symbol kvm_cpu_get_interrupt
kvm_intel: Unknown symbol kvm_emulate_pio
kvm_intel: Unknown symbol kvm_mmu_set_mask_ptes
kvm_intel: Unknown symbol kvm_is_error_hva

#1 lore raw
Quoted 11 lines · Sterling Windmill

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). :)

Signature · 2 lines
regards,
Yang, Sheng
#2 lore raw

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.

Thanks in advance,
Sterling Windmill

----- Original Message -----
From: "Sheng Yang" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:21:10 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 11 lines · Sterling Windmill

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). :)

Signature · 2 lines
regards, 
Yang, Sheng 
#3 lore raw
Quoted 3 lines · Sterling Windmill

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.

Signature · 2 lines
regards,
Yang, Sheng
Quoted 37 lines

Thanks in advance,
Sterling Windmill

----- Original Message -----
From: "Sheng Yang" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:21:10 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 11 lines · Sterling Windmill

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

#4 lore raw

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" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:51:53 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 3 lines · Sterling Windmill

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.

Signature · 2 lines
regards, 
Yang, Sheng 
Quoted 37 lines

Thanks in advance,
Sterling Windmill

----- Original Message -----
From: "Sheng Yang" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:21:10 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 11 lines · Sterling Windmill

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). :)

Signature · 2 lines
regards, 
Yang, Sheng 
#5 lore raw
Quoted 1 line · Sterling Windmill

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...

Signature · 2 lines
regards,
Yang, Sheng
Quoted 80 lines

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" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:51:53 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 3 lines · Sterling Windmill

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

Quoted 37 lines

Thanks in advance,
Sterling Windmill

----- Original Message -----
From: "Sheng Yang" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:21:10 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 11 lines · Sterling Windmill

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

#6 lore raw
Quoted 1 line · * On Monday 29 Sep 2008 20:59:56 Sheng Yang wrote:

On Mon, Sep 29, 2008 at 11:18 PM, Sterling Windmill <[email protected]>

Quoted 4 lines · wrote:
Quoted 1 line

It seems as though I need to insert vtd.o instead of vtd.c

Yeah... That's vtd.o :)

Quoted 8 lines

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...

But that's just three messages of the several undefined symbols he's getting.

#7 lore raw
Quoted 11 lines · Amit Shah
Quoted 1 line · * On Monday 29 Sep 2008 20:59:56 Sheng Yang wrote:

On Mon, Sep 29, 2008 at 11:18 PM, Sterling Windmill <[email protected]>

Quoted 8 lines · wrote:
Quoted 1 line

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.

Quoted 7 lines
Quoted 4 lines

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...

But that's just three messages of the several undefined symbols he's getting.

I believe the following ones just because kvm.ko modules can't be insert in...

Signature · 2 lines
regards,
Yang, Sheng
#8 lore raw
In reply to Sheng Yang

I am able to run kvm-76 after recompiling my kernel with DMAR unset.

Thanks for the help!

----- Original Message -----
From: "Sheng Yang" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 11:29:56 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 1 line · Sterling Windmill

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...

Signature · 2 lines
regards, 
Yang, Sheng 
Quoted 80 lines

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" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:51:53 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 3 lines · Sterling Windmill

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.

Signature · 2 lines
regards, 
Yang, Sheng 
Quoted 37 lines

Thanks in advance,
Sterling Windmill

----- Original Message -----
From: "Sheng Yang" <[email protected]>
To: "Sterling Windmill" <[email protected]>
Cc: "kvm" <[email protected]>
Sent: Monday, September 29, 2008 10:21:10 AM GMT -05:00 US/Canada Eastern
Subject: Re: installing kvm-76 on 2.6.24

Quoted 11 lines · Sterling Windmill

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). :)

Signature · 2 lines
regards, 
Yang, Sheng