Gentoo Archives: gentoo-user

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

Replies

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