Gentoo Archives: gentoo-user

From: Kerin Millar <kerframil@×××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] KVM on AMD ... why doesn't it just work?
Date: Wed, 02 Oct 2013 13:54:59
Message-Id: 524C25A2.5070000@fastmail.co.uk
In Reply to: [gentoo-user] KVM on AMD ... why doesn't it just work? by "Stefan G. Weichinger"
1 On 02/10/2013 13:27, Stefan G. Weichinger wrote:
2 >
3 > I try to set up KVM/QEMU on that new and shiny AMD server
4 >
5 > 24 cores of Opteron:
6 >
7 > processor : 23
8 > vendor_id : AuthenticAMD
9 > cpu family : 21
10 > model : 2
11 > model name : AMD Opteron(tm) Processor 6344
12 >
13 > nice
14 >
15 > I want gentoo-sources-3.10.7 (stable and long term supported) or
16 > 3.10.7-r1 (not yet on the machine).
17 >
18 > I don't get /dev/kvm :-(
19 >
20 > Right now I want this as a module "kvm_amd" or so.
21 >
22 > # zgrep -i kvm /proc/config.gz
23 > CONFIG_HAVE_KVM=y
24 > CONFIG_HAVE_KVM_IRQCHIP=y
25 > CONFIG_HAVE_KVM_IRQ_ROUTING=y
26 > CONFIG_HAVE_KVM_EVENTFD=y
27 > CONFIG_KVM_APIC_ARCHITECTURE=y
28 > CONFIG_KVM_MMIO=y
29 > CONFIG_KVM_ASYNC_PF=y
30 > CONFIG_HAVE_KVM_MSI=y
31 > CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
32 > CONFIG_KVM=m
33 > CONFIG_KVM_INTEL=m
34 > CONFIG_KVM_AMD=m
35 >
36 > I compile the kernel with Canek's kerninst-script (see other thread).
37 >
38 > kvm_amd does not load and gives me dozens of:
39 >
40 > # dmesg | grep kvm | head
41 > [ 13.460423] kvm_amd: Unknown symbol kvm_rdpmc (err 0)
42 > [ 13.460429] kvm_amd: Unknown symbol kvm_read_guest_page (err 0)
43 > [ 13.460437] kvm_amd: Unknown symbol kvm_requeue_exception (err 0)
44 > [ 13.460439] kvm_amd: Unknown symbol kvm_exit (err 0)
45 > [ 13.460441] kvm_amd: Unknown symbol kvm_init (err 0)
46 > [ 13.460444] kvm_amd: Unknown symbol kvm_enable_efer_bits (err 0)
47 > [ 13.460448] kvm_amd: Unknown symbol kvm_fast_pio_out (err 0)
48 > [ 13.460453] kvm_amd: Unknown symbol gfn_to_page (err 0)
49
50 Run "modinfo kvm kvm-amd" and check for discrepancies between the
51 details of the two, especially regarding the vermagic field.
52
53 >
54 > *sigh*
55 >
56 > With the kernel booted I now do:
57 >
58 > cd /usr/src/linux
59 > make clean modules modules_install
60
61 I would suggest "make mrproper" to clean the source tree. Ensure that
62 the .config has been backed up because it will be deleted as a result.
63
64 >
65 > and see if I can load the module(s) then.
66 >
67 > In general I am rather disappointed by the performance of this server. I
68 > expected way more *bang* for the bucks ...
69 >
70 > still unsure if that clocksource-topic might be relevant or if my kernel
71 > config is somehow stupid.
72 >
73 > Stefan
74
75 --Kerin

Replies

Subject Author
Re: [gentoo-user] KVM on AMD ... why doesn't it just work? "Stefan G. Weichinger" <lists@×××××.at>